pwn 0.4.732 → 0.4.734

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b0a86add4de60f9c9241450a6e7e6d9b96dcd473024fed599a79eff838c1ba3
4
- data.tar.gz: a6f59f9688ff2217162596b97faa30eabd7437ea92b3ca8c4108adb1c85d95ef
3
+ metadata.gz: c5f460760589e0c081afe01205d7d24891656dbff6558679ac284487f84084bc
4
+ data.tar.gz: 56de2d97a21b51bf923510b3f58f28496655bdd371828fda5d0c1fe7fe106d6e
5
5
  SHA512:
6
- metadata.gz: d33c3c1cca76b67ea8d7609b1bb192f9673c40ea1457c4ea7b037fc43c3e17afba2b27d8e8922d6aae72c28815cc2a4304b2732500a9532e94aa19e2ae46448c
7
- data.tar.gz: 9f7a6b1994d58f2398deac4aee75b6023088bf1fb55496d11780231ff0b4c9d977f85408a2ca939e20504ee795b759bf8149d132b7fa09c416cbd6dd932294d0
6
+ metadata.gz: 7b6a29b4149b52f3b2341b4c85eff17280eb13739a4cb8ff4fa58286b1331d199711e03a8b63d89100581135b38e9271ed4e099c0305f28e1a129b3fc9a4cd6a
7
+ data.tar.gz: 9347646e9f559feb861627144722b2eb34ead3ed71d5f62a4ae88d1187d31aa5f3306188662eea797ee2cfc224573692d08e3f50159bb3076bb4717697c628a7
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.732]:001 >>> PWN.help
40
+ pwn[v0.4.734]: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.732]:001 >>> PWN.help
55
+ pwn[v0.4.734]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
@@ -30,7 +30,6 @@ module PWN
30
30
  rest_call = opts[:rest_call].to_s.scrub
31
31
  params = opts[:params]
32
32
  http_body = opts[:http_body]
33
- http_body ||= {}
34
33
  base_bd_bin_analysis_api_uri = 'https://protecode-sc.com/api'
35
34
  token = opts[:token]
36
35
 
@@ -59,30 +58,16 @@ module PWN
59
58
 
60
59
  when :post, :put
61
60
  headers = opts[:http_headers]
62
- if http_body.key?(:multipart)
63
- headers ||= {
64
- authorization: "Bearer #{token}"
65
- }
66
- response = rest_client.execute(
67
- method: :post,
68
- url: "#{base_bd_bin_analysis_api_uri}/#{rest_call}",
69
- headers: headers,
70
- payload: http_body,
71
- verify_ssl: false
72
- )
73
- else
74
- headers ||= {
75
- content_type: content_type,
76
- authorization: "Bearer #{token}"
77
- }
78
- response = rest_client.execute(
79
- method: http_method,
80
- url: "#{base_bd_bin_analysis_api_uri}/#{rest_call}",
81
- headers: headers,
82
- payload: http_body.to_json,
83
- verify_ssl: false
84
- )
85
- end
61
+ headers ||= {
62
+ authorization: "Bearer #{token}"
63
+ }
64
+ response = rest_client.execute(
65
+ method: :post,
66
+ url: "#{base_bd_bin_analysis_api_uri}/#{rest_call}",
67
+ headers: headers,
68
+ payload: http_body,
69
+ verify_ssl: false
70
+ )
86
71
  else
87
72
  raise @@logger.error("Unsupported HTTP Method #{http_method} for #{self} Plugin")
88
73
  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.732'
4
+ VERSION = '0.4.734'
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.732
4
+ version: 0.4.734
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.