Skip to content

Commit 24bc109

Browse files
committed
Added Spaces and removed Interrupt
1 parent bf561fe commit 24bc109

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

modules/auxiliary/scanner/misc/poisonivy_control_scanner.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ def run_host(ip)
5959
)
6060
r << [ip,port,"open",'Unknown']
6161
s.send("\x00"*0x100,0) #Send 0x100 zeros, wait for answer
62-
data=s.recv(0x100)
63-
if data.length==0x100
64-
data=s.recv(0x4)
65-
if data=="\xD0\x15\x00\x00" #Signature for PIVY C&C
62+
data = s.recv(0x100)
63+
if data.length == 0x100
64+
data = s.recv(0x4)
65+
if data == "\xD0\x15\x00\x00" #Signature for PIVY C&C
6666
print_status("#{ip}:#{port} - C&C Server Found")
6767
r << [ip,port,"open",'Poison Ivy C&C']
6868
end
@@ -72,7 +72,6 @@ def run_host(ip)
7272
r << [ip,port,"closed",'']
7373
rescue ::Rex::ConnectionError, ::IOError, ::Timeout::Error
7474
rescue ::Rex::Post::Meterpreter::RequestError
75-
rescue ::Interrupt
7675
raise $!
7776
ensure
7877
disconnect(s) rescue nil

0 commit comments

Comments
 (0)