pwn 0.4.772 → 0.4.774

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: 202031e6c446a5663a138c0d450fca8b5ee0d174bc380105383fb51289ca246e
4
- data.tar.gz: 976564292efd85df09a7d5c72964256c27a1dc7eda31911791327b626705bf4c
3
+ metadata.gz: 7b725c4387d53b0c8a3f64b083c9905cd37619574d80c6d9d92d9a3488baae81
4
+ data.tar.gz: d9ea997a172da9f09c18fcb109f82e5d8840084b7b2e892e6951dbbd9250cf81
5
5
  SHA512:
6
- metadata.gz: b99204c70c358214709b7963e55ef91c2d3f803ec774a6e282b21ef41e47156bc58c294a8df568af13f64d72d6853f664b591fe6db0f098183cdee3127a9973f
7
- data.tar.gz: c13703d8bc7c96e610676ea04bc57df9d46b62595681c54d459961c3f3996b44ba939ad67dcd742d07cf78d504dbab176caeddb5d49b0e75961c91f34d0907e8
6
+ metadata.gz: 9702c4eadf3c6390624895830e630c8a74b3b9a2ff63989fe8d1ed3be1755a2b3540b8a322e5ae45bb13896ca544b384bb342df82ca483287faf7adbfd8a9d20
7
+ data.tar.gz: 905e7d92d6feab9da7e6f49438fa0c4d0db26881e905c05c900d2b678c7337874288ebbf554a2734494afef3c2ffeb64049998622168c2f0cb07083075504846
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.774]: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.774]: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,9 @@ 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
+
63
62
  group_arr = groups_resp[:groups].select { |g| g[:name] == list_or_parent }
64
63
  group_arr_sorted = group_arr.sort_by { |g| g[:id] }
65
64
  group = group_arr_sorted.last
@@ -72,7 +71,6 @@ begin
72
71
  parent_id = group[:id]
73
72
 
74
73
  if list_group_name
75
- puts list_group_name.inspect
76
74
  group_id = parent_id
77
75
  group_details_resp = PWN::Plugins::BlackDuckBinaryAnalysis.get_group_details(
78
76
  token: token,
@@ -83,6 +81,9 @@ begin
83
81
  end
84
82
  end
85
83
 
84
+ group_name = opts[:group_name]
85
+ raise "ERROR: BDBA Group Name Not Provided: #{group_name}" if group_name.nil?
86
+
86
87
  PWN::Plugins::BlackDuckBinaryAnalysis.create_group(
87
88
  token: token,
88
89
  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.774'
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.774
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.