pwn 0.4.655 → 0.4.656

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: 4f7af8cb18c8f36419c44dd3b4617bf3b61565e48fc03d7801fb1b6530c6800b
4
- data.tar.gz: 3fe307e7bc617016528cbc1f8c9c3abdcb10f47339d654f43f9bc21328484563
3
+ metadata.gz: 7467e6919286163bf5a06d165744365376f60350676a5f3e8cd3536321b70426
4
+ data.tar.gz: e5336eae0eff19b8791e0ec559505a449eec7db3a13dee1fba2b6e18867e0bdf
5
5
  SHA512:
6
- metadata.gz: c13a613a2ec71b311b819660911bafdc98c54f5d09aea269ef3f88b22a22b6af0446d172bd3fa988f38a51bb74ab2998d198b5a8ae7260b28a168cd7b5693826
7
- data.tar.gz: 4326ba050a6572591520c5394576a2a8e3f00b996c523d313d8cf88c98a57a32754ade72bd1822b49e2ef1a3915f0ac46998015d45806812d2b2e5beeb18e199
6
+ metadata.gz: 493124cddad1d2a45b8f99572d3f856daaa6bbeec66cd3e932125ab6576c8485484b856c58b38f1c53f3ce6b9245bbddd311838db93b0910c3febcd1c62ddfcc
7
+ data.tar.gz: c76a07fd7090ca844deb686a10d77b8ea732aa538fbae5fcffefad7ef5914e70a7a783ca1acf8054346b294e3f033737cd9bdc4ab34aac2bf5ed88251a093ce3
data/Gemfile CHANGED
@@ -52,7 +52,7 @@ gem 'oily_png', '1.2.1'
52
52
  gem 'os', '1.1.4'
53
53
  gem 'packetfu', '1.1.13'
54
54
  gem 'pdf-reader', '2.11.0'
55
- gem 'pg', '1.5.0'
55
+ gem 'pg', '1.5.1'
56
56
  gem 'pry', '0.14.2'
57
57
  gem 'pry-doc', '1.4.0'
58
58
  gem 'rake', '13.0.6'
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.655]:001 >>> PWN.help
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.655]:001 >>> PWN.help
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 = PWN::Plugins::JiraServer.get_issue(
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PWN
4
- VERSION = '0.4.655'
4
+ VERSION = '0.4.656'
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.4.655
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.0
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.0
600
+ version: 1.5.1
601
601
  - !ruby/object:Gem::Dependency
602
602
  name: pry
603
603
  requirement: !ruby/object:Gem::Requirement