pwn 0.4.772 → 0.4.773

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: 202031e6c446a5663a138c0d450fca8b5ee0d174bc380105383fb51289ca246e
4
- data.tar.gz: 976564292efd85df09a7d5c72964256c27a1dc7eda31911791327b626705bf4c
3
+ metadata.gz: 4ad3afc60fafce1a7509143559ff11bab8c9d4a0304da8511df7a5bc5435b537
4
+ data.tar.gz: 22b1e02eedc3e6a0f5e2fc728a4a97c5c7b6c8c2331d33a8c5b09fec631b442b
5
5
  SHA512:
6
- metadata.gz: b99204c70c358214709b7963e55ef91c2d3f803ec774a6e282b21ef41e47156bc58c294a8df568af13f64d72d6853f664b591fe6db0f098183cdee3127a9973f
7
- data.tar.gz: c13703d8bc7c96e610676ea04bc57df9d46b62595681c54d459961c3f3996b44ba939ad67dcd742d07cf78d504dbab176caeddb5d49b0e75961c91f34d0907e8
6
+ metadata.gz: 57d0aeeacafb357d30ef14cd89c202ef53dc465b8043e61d2af6d45f2a0c1c170fa0b083ce1e6c3349467ee252a34d03b50fa9a487bcecb69985abc35a5e2555
7
+ data.tar.gz: 37291894da21bb468784ff46b67c57c3336f1499be0a94805c428b618ba998dd93a248971459d86815d24896a86a1ceac31e41e2baa80c9dd09c00eec2732794
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.772]:001 >>> PWN.help
40
+ pwn[v0.4.773]: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.772]:001 >>> PWN.help
55
+ pwn[v0.4.773]:001 >>> PWN.help
56
56
  ```
57
57
 
58
58
 
data/bin/pwn_bdba_groups CHANGED
@@ -45,9 +45,6 @@ begin
45
45
  token = yaml_config[:token]
46
46
  raise "ERROR: BDBA Token Not Found: #{token}" if token.nil?
47
47
 
48
- group_name = opts[:group_name]
49
- raise "ERROR: BDBA Group Name Not Provided: #{group_name}" if group_name.nil?
50
-
51
48
  list_group_name = opts[:list_group_name]
52
49
  parent_group_name = opts[:parent_group_name]
53
50
  parent_id = nil
@@ -59,7 +56,11 @@ begin
59
56
 
60
57
  raise 'No groups found in BDBA. Use the --create flag to create your first group.' if groups_resp.nil?
61
58
 
62
- list_or_parent = list_group_name ||= parent_group_name
59
+ list_or_parent = list_group_name unless list_group_name.nil?
60
+ list_or_parent = parent_group_name unless parent_group_name.nil?
61
+ puts list_group_name.inspect
62
+ puts parent_group_name.inspect
63
+
63
64
  group_arr = groups_resp[:groups].select { |g| g[:name] == list_or_parent }
64
65
  group_arr_sorted = group_arr.sort_by { |g| g[:id] }
65
66
  group = group_arr_sorted.last
@@ -83,6 +84,9 @@ begin
83
84
  end
84
85
  end
85
86
 
87
+ group_name = opts[:group_name]
88
+ raise "ERROR: BDBA Group Name Not Provided: #{group_name}" if group_name.nil?
89
+
86
90
  PWN::Plugins::BlackDuckBinaryAnalysis.create_group(
87
91
  token: token,
88
92
  name: group_name,
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.772'
4
+ VERSION = '0.4.773'
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.772
4
+ version: 0.4.773
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.