pwn 0.4.755 → 0.4.757

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: 38ed2301af7cd96319b2f340428237613ed16cc57daa538702ee011904dda202
4
- data.tar.gz: a2a8c071609afdcb10216939cc3cd3b0820d75be647d23fedf7709e71dd8bb67
3
+ metadata.gz: e4795b74346cc98a8c341b70042677729d71db3b18df59cb3f6a44b13bef1caf
4
+ data.tar.gz: 90dd05df6984223d730d3da67c45fd30c0ed16431b6d6457cacd5339f3c9a9f7
5
5
  SHA512:
6
- metadata.gz: 0e2000e42687b64c813a898f05cfa84d5284bd73eb86dfe7071b9467af0a4a2ac1bc3205a78a8981e589cf842cff83a01cbdbae454fe6691aaa9d92456bedabc
7
- data.tar.gz: 7a5ac754570183392ed1525e11515d8d806770b3c133e74f41253835de78a47f28cfd2e3d8888dc57c77ace98ce6f181eae83506f87da01ad1b0e4b536b54cb4
6
+ metadata.gz: d28d83f8194998b692897203c7373d5f4b0b23e61557cafba3a6780fe47d4b632741e9815954941d0c42074f5b6f26dfd94a356739a6f535c225efc169e213f7
7
+ data.tar.gz: 2b0c9e6dc0d3f6bf81099f5abccd2e35f99a016559bcbd6c363746e14e3639f68a472dd642d5cd1c5dd588584c05c25956a71d602a4c96976d80037f2e281d97
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.755]:001 >>> PWN.help
40
+ pwn[v0.4.757]: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.755]:001 >>> PWN.help
55
+ pwn[v0.4.757]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn_bdba_groups CHANGED
@@ -51,14 +51,18 @@ begin
51
51
  token: token
52
52
  )
53
53
 
54
- unless groups_resp.nil?
55
- group_id = groups_resp[:groups].find { |g| g[:name] == list_group_name }[:id]
54
+ group = groups_resp[:groups].find { |g| g[:name] == list_group_name }
55
+
56
+ unless group.nil?
57
+ group_id = group[:id]
58
+
56
59
  group_details_resp = PWN::Plugins::BlackDuckBinaryAnalysis.get_group_details(
57
60
  token: token,
58
61
  group_id: group_id
59
62
  )
60
- puts group_details_resp.to_json unless group_details_resp.nil?
63
+ puts group_details_resp.to_json if group_details_resp[:group].find { |g| g[:name] == list_group_name }
61
64
  end
65
+
62
66
  exit 0
63
67
  end
64
68
 
data/bin/pwn_bdba_scan CHANGED
@@ -97,7 +97,7 @@ begin
97
97
  output_path: report_path
98
98
  )
99
99
 
100
- puts "Report Saved to: #{report_path}"
100
+ puts "\nReport Saved to: #{report_path}"
101
101
  rescue SystemExit, Interrupt
102
102
  puts "\nGoodbye."
103
103
  rescue StandardError => e
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.755'
4
+ VERSION = '0.4.757'
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.755
4
+ version: 0.4.757
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.