Skip to content

Commit 94bb346

Browse files
committed
pwn_nessus_cloud_create_scan Driver - add tag uuid to settinggs[:tag_targets] instead of tag name #bugfix
1 parent a33c3e0 commit 94bb346

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ rvm use ruby-3.1.2@pwn
3737
$ rvm list gemsets
3838
$ gem install --verbose pwn
3939
$ pwn
40-
pwn[v0.4.450]:001 >>> PWN.help
40+
pwn[v0.4.451]:001 >>> PWN.help
4141
```
4242

4343
[![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.1.2@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.450]:001 >>> PWN.help
55+
pwn[v0.4.451]:001 >>> PWN.help
5656
```
5757

5858

bin/pwn_nessus_cloud_create_scan

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,17 @@ begin
275275
nessus_obj: nessus_obj,
276276
name: tag_name
277277
)
278+
tag_uuid = tag[:uuid] if tag.any?
279+
tag_uuids_arr.push(tag_uuid) if tag.any?
278280
next if tag.any?
279281

280-
tag_uuid = tag[:uuid]
281-
tag_uuids_arr.push(tag_uuid)
282-
PWN::Plugins::NessusCloud.create_tag(
282+
new_tag = PWN::Plugins::NessusCloud.create_tag(
283283
nessus_obj: nessus_obj,
284284
category: tag_category_name,
285285
value: tag_name
286286
)
287+
tag_uuid = new_tag[:uuid]
288+
tag_uuids_arr.push(tag_uuid)
287289
end
288290

289291
settings[:tag_targets] = tag_uuids_arr

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.450'
4+
VERSION = '0.4.451'
55
end

0 commit comments

Comments
 (0)