File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -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
Original file line number Diff line number Diff line change 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
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
83
82
end
84
83
end
85
84
85
+ group_name = opts [ :group_name ]
86
+ raise "ERROR: BDBA Group Name Not Provided: #{ group_name } " if group_name . nil?
87
+
86
88
PWN ::Plugins ::BlackDuckBinaryAnalysis . create_group (
87
89
token : token ,
88
90
name : group_name ,
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments