pwn 0.5.280 → 0.5.282
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pwn/plugins/jira_server.rb +20 -11
- data/lib/pwn/version.rb +1 -1
- data/third_party/pwn_rdoc.jsonl +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afc266c928e187eab8d5e15d2b0c8b1c23ecd6999df9fbcd0ae4c9f7bfd5b1d0
|
4
|
+
data.tar.gz: 02e936edec17fdd0ce8f9e296c7f2809d5ceb8adb894440252729c5c2f906e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edbbbe9fb9c09b1b70a4cdc29d3ab60920818e81a2e28a8ac6ab079bda8c80e4808a9329ac9f11263619fc1b71fc02ecdcbed9f7b6e9c9cd916814ad614de07a
|
7
|
+
data.tar.gz: 3d974f01e5f449d3d5d050451a63b995e00025b7fdee7ef379113e2d67b09dece54305eacf4b5c8c267fc7cd42818856ef904c1c21013aa76a1e07394c3aceaa
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ $ cd /opt/pwn
|
|
37
37
|
$ ./install.sh
|
38
38
|
$ ./install.sh ruby-gem
|
39
39
|
$ pwn
|
40
|
-
pwn[v0.5.
|
40
|
+
pwn[v0.5.282]:001 >>> PWN.help
|
41
41
|
```
|
42
42
|
|
43
43
|
[](https://youtu.be/G7iLUY4FzsI)
|
@@ -52,7 +52,7 @@ $ rvm use ruby-3.4.4@pwn
|
|
52
52
|
$ gem uninstall --all --executables pwn
|
53
53
|
$ gem install --verbose pwn
|
54
54
|
$ pwn
|
55
|
-
pwn[v0.5.
|
55
|
+
pwn[v0.5.282]:001 >>> PWN.help
|
56
56
|
```
|
57
57
|
|
58
58
|
If you're using a multi-user install of RVM do:
|
@@ -62,7 +62,7 @@ $ rvm use ruby-3.4.4@pwn
|
|
62
62
|
$ rvmsudo gem uninstall --all --executables pwn
|
63
63
|
$ rvmsudo gem install --verbose pwn
|
64
64
|
$ pwn
|
65
|
-
pwn[v0.5.
|
65
|
+
pwn[v0.5.282]:001 >>> PWN.help
|
66
66
|
```
|
67
67
|
|
68
68
|
PWN periodically upgrades to the latest version of Ruby which is reflected in `/opt/pwn/.ruby-version`. The easiest way to upgrade to the latest version of Ruby from a previous PWN installation is to run the following script:
|
@@ -73,11 +73,12 @@ module PWN
|
|
73
73
|
|
74
74
|
JSON.parse(response, symbolize_names: true)
|
75
75
|
rescue RestClient::ExceptionWithResponse => e
|
76
|
-
|
77
|
-
|
78
|
-
"
|
79
|
-
|
80
|
-
|
76
|
+
if e.response
|
77
|
+
puts "HTTP BASE URL: #{base_api_uri}"
|
78
|
+
puts "HTTP PATH: #{rest_call}"
|
79
|
+
puts "HTTP RESPONSE CODE: #{e.response.code}"
|
80
|
+
puts "HTTP RESPONSE HEADERS: #{e.response.headers}"
|
81
|
+
puts "HTTP RESPONSE BODY:\n#{e.response.body}\n\n\n"
|
81
82
|
end
|
82
83
|
rescue StandardError => e
|
83
84
|
raise e
|
@@ -89,7 +90,8 @@ module PWN
|
|
89
90
|
# issue_resp = PWN::Plugins::JiraServer.get_issue(
|
90
91
|
# base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
|
91
92
|
# token: 'required - bearer token',
|
92
|
-
# issue: 'required - issue to lookup'
|
93
|
+
# issue: 'required - issue to lookup',
|
94
|
+
# params: 'optional - additional parameters to pass in the URI'
|
93
95
|
# )
|
94
96
|
|
95
97
|
public_class_method def self.get_issue(opts = {})
|
@@ -101,13 +103,15 @@ module PWN
|
|
101
103
|
)
|
102
104
|
|
103
105
|
issue = opts[:issue]
|
106
|
+
params = opts[:params]
|
104
107
|
|
105
108
|
raise 'ERROR: issue cannot be nil.' if issue.nil?
|
106
109
|
|
107
110
|
rest_call(
|
108
111
|
base_api_uri: base_api_uri,
|
109
112
|
token: token,
|
110
|
-
rest_call: "issue/#{issue}"
|
113
|
+
rest_call: "issue/#{issue}",
|
114
|
+
params: params
|
111
115
|
)
|
112
116
|
rescue StandardError => e
|
113
117
|
raise e
|
@@ -117,7 +121,8 @@ module PWN
|
|
117
121
|
# jira_resp = PWN::Plugins::JiraServer.manual_call(
|
118
122
|
# base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
|
119
123
|
# token: 'required - bearer token',
|
120
|
-
# path: 'required - API path to call, without beginning forward slash'
|
124
|
+
# path: 'required - API path to call, without beginning forward slash',
|
125
|
+
# params: 'optional - additional parameters to pass in the URI'
|
121
126
|
# )
|
122
127
|
|
123
128
|
public_class_method def self.manual_call(opts = {})
|
@@ -129,13 +134,15 @@ module PWN
|
|
129
134
|
)
|
130
135
|
|
131
136
|
path = opts[:path]
|
137
|
+
params = opts[:params]
|
132
138
|
|
133
139
|
raise 'ERROR: path cannot be nil.' if path.nil?
|
134
140
|
|
135
141
|
rest_call(
|
136
142
|
base_api_uri: base_api_uri,
|
137
143
|
token: token,
|
138
|
-
rest_call: path
|
144
|
+
rest_call: path,
|
145
|
+
params: params
|
139
146
|
)
|
140
147
|
rescue StandardError => e
|
141
148
|
raise e
|
@@ -156,13 +163,15 @@ module PWN
|
|
156
163
|
issue_resp = #{self}.get_issue(
|
157
164
|
base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
|
158
165
|
token: 'required - bearer token',
|
159
|
-
issue: 'required - issue to lookup'
|
166
|
+
issue: 'required - issue to lookup',
|
167
|
+
params: 'optional - additional parameters to pass in the URI'
|
160
168
|
)
|
161
169
|
|
162
170
|
jira_resp = #{self}.manual_call(
|
163
171
|
base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
|
164
172
|
token: 'required - bearer token',
|
165
|
-
path: 'required - API path to call, without beginning forward slash'
|
173
|
+
path: 'required - API path to call, without beginning forward slash',
|
174
|
+
params: 'optional - additional parameters to pass in the URI'
|
166
175
|
)
|
167
176
|
|
168
177
|
**********************************************************************
|
data/lib/pwn/version.rb
CHANGED
data/third_party/pwn_rdoc.jsonl
CHANGED
@@ -1313,6 +1313,12 @@
|
|
1313
1313
|
{"messages":[{"role":"user","content":"PWN::WWW::Upwork.login Usage"},{"role":"assistant","content":"`PWN::WWW::Upwork.login`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Upwork.login(\n\nbrowser_obj: 'required - browser_obj returned from #open method',\nusername: 'required - username',\npassword: 'optional - passwd (will prompt if blank)'\n\n)\n"}]}
|
1314
1314
|
{"messages":[{"role":"user","content":"PWN::WWW::Upwork.logout Usage"},{"role":"assistant","content":"`PWN::WWW::Upwork.logout`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Upwork.logout(\n\nbrowser_obj: 'required - browser_obj returned from #open method'\n\n)\n"}]}
|
1315
1315
|
{"messages":[{"role":"user","content":"PWN::WWW::Upwork.open Usage"},{"role":"assistant","content":"`PWN::WWW::Upwork.open`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Upwork.open(\n\nbrowser_type: 'optional - :firefox|:chrome|:ie|:headless (Defaults to :firefox)',\nproxy: 'optional - scheme://proxy_host:port || tor'\n\n)\n"}]}
|
1316
|
+
{"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.authors Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.authors`: Author(s)\n\n0day Inc. <support@0dayinc.com>\n"}]}
|
1317
|
+
{"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.close Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.close`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.close(\n\nbrowser_obj: 'required - browser_obj returned from #open method'\n\n)\n"}]}
|
1318
|
+
{"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.help Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.help`: "}]}
|
1319
|
+
{"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.open Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.open`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.open(\n\nbrowser_type: 'optional - :firefox|:chrome|:ie|:headless (Defaults to :firefox)',\nproxy: 'optional - scheme://proxy_host:port || tor'\n\n)\n"}]}
|
1320
|
+
{"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.search Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.search`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.search(\n\nbrowser_obj: 'required - browser_obj returned from #open method',\nq: 'required - search string'\n\n)\n"}]}
|
1321
|
+
{"messages":[{"role":"user","content":"PWN::WWW::WaybackMachine.timetravel Usage"},{"role":"assistant","content":"`PWN::WWW::WaybackMachine.timetravel`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::WaybackMachine.timetravel(\n\nbrowser_obj: 'required - browser_obj returned from #open method',\nuri: 'required - URI (e.g. https://example.com)',\ndate: 'optional - date in YYYYMMDD format (Defaults to today)'\n\n)\n"}]}
|
1316
1322
|
{"messages":[{"role":"user","content":"PWN::WWW::Youtube.authors Usage"},{"role":"assistant","content":"`PWN::WWW::Youtube.authors`: Author(s)\n\n0day Inc. <support@0dayinc.com>\n"}]}
|
1317
1323
|
{"messages":[{"role":"user","content":"PWN::WWW::Youtube.close Usage"},{"role":"assistant","content":"`PWN::WWW::Youtube.close`: Supported Method Parameters\n\nbrowser_obj = PWN::WWW::Youtube.close(\n\nbrowser_obj: 'required - browser_obj returned from #open method'\n\n)\n"}]}
|
1318
1324
|
{"messages":[{"role":"user","content":"PWN::WWW::Youtube.help Usage"},{"role":"assistant","content":"`PWN::WWW::Youtube.help`: "}]}
|