Change recv to get_once

unstable
sinn3r 2012-06-05 15:40:20 -05:00
parent bc91135808
commit b6f591718a
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class Metasploit3 < Msf::Auxiliary
sploit="\x21\x00\x00\x00\x00\x06\x01\x04\x00\x01\x00\x00"
connect()
sock.put(sploit)
data = sock.recv(12)
data = sock.get_once
# Theory: Whene sending a modbus request of some sort, the endpoint will return
# with at least the same transaction-id, and protocol-id