what was i thinking?
parent
b6e2e2aa45
commit
cfd06ab24a
|
@ -42,8 +42,7 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
[
|
[
|
||||||
Opt::RPORT(4786),
|
Opt::RPORT(4786),
|
||||||
OptAddressLocal.new('LHOST', [ false, "The IP address of the system running this module" ]),
|
OptAddressLocal.new('LHOST', [ false, "The IP address of the system running this module" ]),
|
||||||
OptInt.new('SLEEP', [ true, "Time to wait for config to come back", 10]),
|
OptInt.new('SLEEP', [ true, "Time to wait for config to come back", 10])
|
||||||
OptInt.new('DELAY', [ true, "Time to wait till requesting config to prevent service from becomming unresponsive.", 60])
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
@ -134,8 +133,7 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
return unless smi?
|
return unless smi?
|
||||||
disconnect # cant send any additional packets, so closing
|
disconnect # cant send any additional packets, so closing
|
||||||
connect
|
connect
|
||||||
print_status("Waiting #{datastore['DELAY']} seconds before requesting config")
|
print_status("Requesting configuration from device...")
|
||||||
Rex.sleep(datastore['DELAY'])
|
|
||||||
send_packet
|
send_packet
|
||||||
print_status("Waiting #{datastore['SLEEP']} seconds for configuration")
|
print_status("Waiting #{datastore['SLEEP']} seconds for configuration")
|
||||||
Rex.sleep(datastore['SLEEP'])
|
Rex.sleep(datastore['SLEEP'])
|
||||||
|
|
Loading…
Reference in New Issue