pwn 0.5.281 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ba982a7ef65899a3890968ee2de122438de8a5f00603ce3ee459363817215a80
4
- data.tar.gz: 9661c49cdc6b7b2da9d2829ee5a106664f38f571ca5bac7f3ef544c281cbcacb
3
+ metadata.gz: afc266c928e187eab8d5e15d2b0c8b1c23ecd6999df9fbcd0ae4c9f7bfd5b1d0
4
+ data.tar.gz: 02e936edec17fdd0ce8f9e296c7f2809d5ceb8adb894440252729c5c2f906e2c
5
5
  SHA512:
6
- metadata.gz: 6adefbe7e4c2893b8ca60127e1a0d12fcd03857db0833434bbcac974775fbfe74a9378cda50598010c521ec5a7b7c87c911ae85db3a44ed55411dbdeffb77a1a
7
- data.tar.gz: 53f8ec360d2ea00381623a8e8c6b5b780eaa18533e6e42b26266b787d9ef3486392e87aa163a1e5ff1e54cfebb2ef44ae475c9e776ed1ac53f80e6dbf408d138
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.281]:001 >>> PWN.help
40
+ pwn[v0.5.282]: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.4.4@pwn
52
52
  $ gem uninstall --all --executables pwn
53
53
  $ gem install --verbose pwn
54
54
  $ pwn
55
- pwn[v0.5.281]:001 >>> PWN.help
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.281]:001 >>> PWN.help
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:
@@ -90,7 +90,8 @@ module PWN
90
90
  # issue_resp = PWN::Plugins::JiraServer.get_issue(
91
91
  # base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
92
92
  # token: 'required - bearer token',
93
- # issue: 'required - issue to lookup'
93
+ # issue: 'required - issue to lookup',
94
+ # params: 'optional - additional parameters to pass in the URI'
94
95
  # )
95
96
 
96
97
  public_class_method def self.get_issue(opts = {})
@@ -102,13 +103,15 @@ module PWN
102
103
  )
103
104
 
104
105
  issue = opts[:issue]
106
+ params = opts[:params]
105
107
 
106
108
  raise 'ERROR: issue cannot be nil.' if issue.nil?
107
109
 
108
110
  rest_call(
109
111
  base_api_uri: base_api_uri,
110
112
  token: token,
111
- rest_call: "issue/#{issue}"
113
+ rest_call: "issue/#{issue}",
114
+ params: params
112
115
  )
113
116
  rescue StandardError => e
114
117
  raise e
@@ -118,7 +121,8 @@ module PWN
118
121
  # jira_resp = PWN::Plugins::JiraServer.manual_call(
119
122
  # base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
120
123
  # token: 'required - bearer token',
121
- # 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'
122
126
  # )
123
127
 
124
128
  public_class_method def self.manual_call(opts = {})
@@ -130,13 +134,15 @@ module PWN
130
134
  )
131
135
 
132
136
  path = opts[:path]
137
+ params = opts[:params]
133
138
 
134
139
  raise 'ERROR: path cannot be nil.' if path.nil?
135
140
 
136
141
  rest_call(
137
142
  base_api_uri: base_api_uri,
138
143
  token: token,
139
- rest_call: path
144
+ rest_call: path,
145
+ params: params
140
146
  )
141
147
  rescue StandardError => e
142
148
  raise e
@@ -157,13 +163,15 @@ module PWN
157
163
  issue_resp = #{self}.get_issue(
158
164
  base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
159
165
  token: 'required - bearer token',
160
- issue: 'required - issue to lookup'
166
+ issue: 'required - issue to lookup',
167
+ params: 'optional - additional parameters to pass in the URI'
161
168
  )
162
169
 
163
170
  jira_resp = #{self}.manual_call(
164
171
  base_api_uri: 'required - base URI for Jira (e.g. https:/corp.jira.com/rest/api/latest)',
165
172
  token: 'required - bearer token',
166
- 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'
167
175
  )
168
176
 
169
177
  **********************************************************************
data/lib/pwn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.5.281'
4
+ VERSION = '0.5.282'
5
5
  end
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.5.281
4
+ version: 0.5.282
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.