pwn 0.4.655 → 0.4.656
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/lib/pwn/plugins/jira_server.rb +35 -1
- data/lib/pwn/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7467e6919286163bf5a06d165744365376f60350676a5f3e8cd3536321b70426
|
4
|
+
data.tar.gz: e5336eae0eff19b8791e0ec559505a449eec7db3a13dee1fba2b6e18867e0bdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 493124cddad1d2a45b8f99572d3f856daaa6bbeec66cd3e932125ab6576c8485484b856c58b38f1c53f3ce6b9245bbddd311838db93b0910c3febcd1c62ddfcc
|
7
|
+
data.tar.gz: c76a07fd7090ca844deb686a10d77b8ea732aa538fbae5fcffefad7ef5914e70a7a783ca1acf8054346b294e3f033737cd9bdc4ab34aac2bf5ed88251a093ce3
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
37
37
|
$ rvm list gemsets
|
38
38
|
$ gem install --verbose pwn
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.4.
|
40
|
+
pwn[v0.4.656]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
53
53
|
$ gem install --verbose pwn
|
54
54
|
$ pwn
|
55
|
-
pwn[v0.4.
|
55
|
+
pwn[v0.4.656]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
|
@@ -112,6 +112,34 @@ module PWN
|
|
112
112
|
raise e
|
113
113
|
end
|
114
114
|
|
115
|
+
# Supported Method Parameters::
|
116
|
+
# jira_resp = PWN::Plugins::JiraServer.manual_call(
|
117
|
+
# base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
|
118
|
+
# token: 'required - bearer token',
|
119
|
+
# path: 'required - API path to call, without beginning forward slash'
|
120
|
+
# )
|
121
|
+
|
122
|
+
public_class_method def self.manual_call(opts = {})
|
123
|
+
base_api_uri = opts[:base_api_uri]
|
124
|
+
|
125
|
+
token = opts[:token]
|
126
|
+
token ||= PWN::Plugins::AuthenticationHelper.mask_password(
|
127
|
+
prompt: 'Personal Access Token'
|
128
|
+
)
|
129
|
+
|
130
|
+
path = opts[:path]
|
131
|
+
|
132
|
+
raise 'ERROR: path cannot be nil.' if path.nil?
|
133
|
+
|
134
|
+
rest_call(
|
135
|
+
base_api_uri: base_api_uri,
|
136
|
+
token: token,
|
137
|
+
rest_call: path
|
138
|
+
)
|
139
|
+
rescue StandardError => e
|
140
|
+
raise e
|
141
|
+
end
|
142
|
+
|
115
143
|
# Author(s):: 0day Inc. <request.pentest@0dayinc.com>
|
116
144
|
|
117
145
|
public_class_method def self.authors
|
@@ -124,12 +152,18 @@ module PWN
|
|
124
152
|
|
125
153
|
public_class_method def self.help
|
126
154
|
puts "USAGE:
|
127
|
-
issue_resp =
|
155
|
+
issue_resp = #{self}.get_issue(
|
128
156
|
base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
|
129
157
|
token: 'required - bearer token',
|
130
158
|
issue: 'required - issue to lookup'
|
131
159
|
)
|
132
160
|
|
161
|
+
jira_resp = #{self}.manual_call(
|
162
|
+
base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
|
163
|
+
token: 'required - bearer token',
|
164
|
+
path: 'required - API path to call, without beginning forward slash'
|
165
|
+
)
|
166
|
+
|
133
167
|
#{self}.authors
|
134
168
|
"
|
135
169
|
end
|
data/lib/pwn/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.656
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -590,14 +590,14 @@ dependencies:
|
|
590
590
|
requirements:
|
591
591
|
- - '='
|
592
592
|
- !ruby/object:Gem::Version
|
593
|
-
version: 1.5.
|
593
|
+
version: 1.5.1
|
594
594
|
type: :runtime
|
595
595
|
prerelease: false
|
596
596
|
version_requirements: !ruby/object:Gem::Requirement
|
597
597
|
requirements:
|
598
598
|
- - '='
|
599
599
|
- !ruby/object:Gem::Version
|
600
|
-
version: 1.5.
|
600
|
+
version: 1.5.1
|
601
601
|
- !ruby/object:Gem::Dependency
|
602
602
|
name: pry
|
603
603
|
requirement: !ruby/object:Gem::Requirement
|