pwn 0.4.736 → 0.4.738

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: 7fa87d4cde380f39c1615a4a34496608c6634cb4971a8d0c1b94972669a5ed24
4
- data.tar.gz: ad164d84cf4d4b929af8fc32f01a255a753073060cad5d5f66c039a508221e0e
3
+ metadata.gz: e59d69a65aa936680ee95064a2157b021e85041da83d76ad2a221b2c76101b3c
4
+ data.tar.gz: 566196cc27083f6e1817172831cbd3cd6d7910f3909dc8e909e7f7895544d7f4
5
5
  SHA512:
6
- metadata.gz: 950ddc535f1a67c26e3fe805734da25982d743b025bd22c63fb368c4f48296c16e40520ebb8a8a53532a48039103b230b02f00b5796c5631d963796bd7e0352c
7
- data.tar.gz: e523580ad64849eb87f4da01ee96565a45fba96c976d4ad091bec5a9010aad324ba8a50fe2e7a745ba43a4282d095ba4609ed6c840efcb343b499a79ac18d94a
6
+ metadata.gz: d53cb8ed854493a49374922aab075e631a032cc3e411f64b800bc492fc8b7574c4665a5b2f1a7f8859181621b48dc2ac17f6deaac500a9d1dec413212774e733
7
+ data.tar.gz: 9052c161432f08efd9c9cb5d034dbd10e000fd586f347dc69c8da91aca10839fcb1c8c4b1b8dd6a7aff7110efda392284a9de9c73540d29683bd1273577bd1a7
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.736]:001 >>> PWN.help
40
+ pwn[v0.4.738]: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.736]:001 >>> PWN.help
55
+ pwn[v0.4.738]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -22,6 +22,7 @@ module PWN
22
22
  # )
23
23
 
24
24
  private_class_method def self.bd_bin_analysis_rest_call(opts = {})
25
+ token = opts[:token]
25
26
  http_method = if opts[:http_method].nil?
26
27
  :get
27
28
  else
@@ -32,15 +33,12 @@ module PWN
32
33
 
33
34
  headers = opts[:http_headers]
34
35
  headers ||= {
35
- content_type: content_type,
36
+ content_type: 'application/json; charset=UTF-8',
36
37
  authorization: "Bearer #{token}"
37
38
  }
38
39
 
39
40
  http_body = opts[:http_body]
40
41
  base_bd_bin_analysis_api_uri = 'https://protecode-sc.com/api'
41
- token = opts[:token]
42
-
43
- content_type = 'application/json; charset=UTF-8'
44
42
 
45
43
  browser_obj = PWN::Plugins::TransparentBrowser.open(browser_type: :rest)
46
44
  rest_client = browser_obj[:browser]::Request
@@ -30,7 +30,7 @@ module PWN
30
30
  rest_call = opts[:rest_call].to_s.scrub
31
31
  params = opts[:params]
32
32
  headers = {
33
- content_type: content_type,
33
+ content_type: 'application/json; charset=UTF-8',
34
34
  authorization: "Bearer #{token}"
35
35
  }
36
36
 
@@ -38,8 +38,6 @@ module PWN
38
38
  http_body ||= {}
39
39
  base_open_ai_api_uri = 'https://api.openai.com/v1'
40
40
 
41
- content_type = 'application/json; charset=UTF-8'
42
-
43
41
  browser_obj = PWN::Plugins::TransparentBrowser.open(browser_type: :rest)
44
42
  rest_client = browser_obj[:browser]::Request
45
43
 
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.736'
4
+ VERSION = '0.4.738'
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.736
4
+ version: 0.4.738
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.