pwn 0.4.744 → 0.4.745

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: 0b3ab7ac0628c2670ec267f2a0719cc10dd982c3f68d909b2de60294b75af0ce
4
- data.tar.gz: 28bdeed7007e21cf2cfc38db72c00a7245bda60f0f17340144e963e1a1bf8177
3
+ metadata.gz: 0b606f346c629f45a45d84e3e891ecfc7bb6914ede83cc4a16c7fa97e1e43077
4
+ data.tar.gz: 3c8cc9c58fe2e78e20e57d67703be7f274c5d45ed4c5546c7169951240d938a0
5
5
  SHA512:
6
- metadata.gz: 4ec31704bb820fdebe8ea0ddae7053f5911eaaaafa8478d3ddaa0bf9dcb258ce693f7604b99d03a9f4b876711c673ad28468c16520d260dc9163514f14ffa373
7
- data.tar.gz: e49732d0b87954ed54042b4c383b301d2f7a95184a7356c69d95540b3ac6c0e381eabb7a31d62bbec74fa14702c14182a6fd5475eb7a90ce73c0b43785b002f4
6
+ metadata.gz: c747f2566f1bd1c9ca7e53b5565f7ad47d1a8a546ec333e5dde103fe0c20b8308a5b667bbbeccdffc5db3fdc56b8d5195a0489ad1e8f60e2b996bdad12cf45e2
7
+ data.tar.gz: 05a43fff9316de146c4aaeaebdd91547155d37e047ac4ade36203f51f2d8bc00da61d92f311a65470f14cdd7e5c070b0a47b9848fa151ec9cf83fc52d43dea0f
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.744]:001 >>> PWN.help
40
+ pwn[v0.4.745]: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.744]:001 >>> PWN.help
55
+ pwn[v0.4.745]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -37,7 +37,7 @@ module PWN
37
37
  authorization: "Bearer #{token}"
38
38
  }
39
39
 
40
- http_body = opts[:http_body] ||= {}
40
+ http_body = opts[:http_body]
41
41
  base_bd_bin_analysis_api_uri = 'https://protecode-sc.com/api'
42
42
 
43
43
  browser_obj = PWN::Plugins::TransparentBrowser.open(browser_type: :rest)
@@ -58,7 +58,8 @@ module PWN
58
58
 
59
59
  when :post, :put
60
60
  if http_body.key?(:multipart)
61
- headers[:content_type] = 'multipart/form-data'
61
+ # headers[:content_type] = 'multipart/form-data'
62
+ headers[:content_type] = nil
62
63
 
63
64
  response = rest_client.execute(
64
65
  method: http_method,
@@ -68,11 +69,12 @@ module PWN
68
69
  verify_ssl: false
69
70
  )
70
71
  else
72
+ http_body = http_body.to_json unless http_body.nil?
71
73
  response = rest_client.execute(
72
74
  method: http_method,
73
75
  url: "#{base_bd_bin_analysis_api_uri}/#{rest_call}",
74
76
  headers: headers,
75
- payload: http_body.to_json,
77
+ payload: http_body,
76
78
  verify_ssl: false
77
79
  )
78
80
  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.744'
4
+ VERSION = '0.4.745'
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.744
4
+ version: 0.4.745
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.