Skip to content

Commit 60b5771

Browse files
committed
Merge pull request #1 from wchen-r7/poison_ivy_ports_check
Add an input check for datastore option PORTS
2 parents 24bc109 + 4028dce commit 60b5771

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/auxiliary/scanner/misc/poisonivy_control_scanner.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def run_host(ip)
4141

4242
ports = Rex::Socket.portspec_crack(datastore['PORTS'])
4343

44+
if ports.empty?
45+
raise Msf::OptionValidateError.new(['PORTS'])
46+
end
47+
4448
while(ports.length > 0)
4549
t = []
4650
r = []

0 commit comments

Comments
 (0)