pwn 0.4.745 → 0.4.746

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: 0b606f346c629f45a45d84e3e891ecfc7bb6914ede83cc4a16c7fa97e1e43077
4
- data.tar.gz: 3c8cc9c58fe2e78e20e57d67703be7f274c5d45ed4c5546c7169951240d938a0
3
+ metadata.gz: 1190c264f920062758beee752bb22915a4cd8e8f7519832e2cc3879e68fd5283
4
+ data.tar.gz: 38fe4c0044ab567ca398cd4110f26bb131860c6d19d7e4bba09cbe659501ba97
5
5
  SHA512:
6
- metadata.gz: c747f2566f1bd1c9ca7e53b5565f7ad47d1a8a546ec333e5dde103fe0c20b8308a5b667bbbeccdffc5db3fdc56b8d5195a0489ad1e8f60e2b996bdad12cf45e2
7
- data.tar.gz: 05a43fff9316de146c4aaeaebdd91547155d37e047ac4ade36203f51f2d8bc00da61d92f311a65470f14cdd7e5c070b0a47b9848fa151ec9cf83fc52d43dea0f
6
+ metadata.gz: 108985de5e78e8e880129338acc6a431f05517e3527f55b478704d74b7f0509281774f47f9db00de1ce20e8e329d815e647ebebb031c96c80ef234716e99e4e5
7
+ data.tar.gz: 065c6ffc8b6ecdf5c0c4e872655002524739384407814371ab6b7546a447b05ef1b1b6c8ac50c44a84d2203845d58f1cd707d4ab712a40c0f5886c668066c9b9
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.745]:001 >>> PWN.help
40
+ pwn[v0.4.746]: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.745]:001 >>> PWN.help
55
+ pwn[v0.4.746]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -57,27 +57,19 @@ module PWN
57
57
  )
58
58
 
59
59
  when :post, :put
60
- if http_body.key?(:multipart)
61
- # headers[:content_type] = 'multipart/form-data'
62
- headers[:content_type] = nil
63
-
64
- response = rest_client.execute(
65
- method: http_method,
66
- url: "#{base_bd_bin_analysis_api_uri}/#{rest_call}",
67
- headers: headers,
68
- payload: http_body,
69
- verify_ssl: false
70
- )
71
- else
72
- http_body = http_body.to_json unless http_body.nil?
73
- response = rest_client.execute(
74
- method: http_method,
75
- url: "#{base_bd_bin_analysis_api_uri}/#{rest_call}",
76
- headers: headers,
77
- payload: http_body,
78
- verify_ssl: false
79
- )
60
+ if http_body.is_a?(Hash)
61
+ headers[:content_type] = nil if http_body.key?(:multipart)
62
+ # headers[:content_type] = 'multipart/form-data' if http_body.key?(:multipart)
63
+ http_body = http_body.to_json unless http_body.key?(:multipart)
80
64
  end
65
+
66
+ response = rest_client.execute(
67
+ method: http_method,
68
+ url: "#{base_bd_bin_analysis_api_uri}/#{rest_call}",
69
+ headers: headers,
70
+ payload: http_body,
71
+ verify_ssl: false
72
+ )
81
73
  else
82
74
  raise @@logger.error("Unsupported HTTP Method #{http_method} for #{self} Plugin")
83
75
  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.745'
4
+ VERSION = '0.4.746'
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.745
4
+ version: 0.4.746
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.