mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 21:13:51 +03:00
Merge branch 'master' of github.com:sqlmapproject/sqlmap
This commit is contained in:
commit
3786541681
|
@ -507,6 +507,8 @@ class Metasploit:
|
||||||
if pwnBofCond or smbRelayCond:
|
if pwnBofCond or smbRelayCond:
|
||||||
func()
|
func()
|
||||||
|
|
||||||
|
timeout = time.time() - start_time > METASPLOIT_SESSION_TIMEOUT
|
||||||
|
|
||||||
if not initialized:
|
if not initialized:
|
||||||
match = re.search("session ([\d]+) opened", out)
|
match = re.search("session ([\d]+) opened", out)
|
||||||
|
|
||||||
|
@ -519,13 +521,13 @@ class Metasploit:
|
||||||
|
|
||||||
initialized = True
|
initialized = True
|
||||||
|
|
||||||
elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
elif timeout:
|
||||||
proc.kill()
|
proc.kill()
|
||||||
errMsg = "timeout occurred while attempting "
|
errMsg = "timeout occurred while attempting "
|
||||||
errMsg += "to open a remote session"
|
errMsg += "to open a remote session"
|
||||||
raise SqlmapGenericException(errMsg)
|
raise SqlmapGenericException(errMsg)
|
||||||
|
|
||||||
if conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
|
if conf.liveTest and timeout:
|
||||||
if initialized:
|
if initialized:
|
||||||
send_all(proc, "exit\n")
|
send_all(proc, "exit\n")
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
|
@ -181,7 +181,7 @@ class Fingerprint(GenericFingerprint):
|
||||||
# Reference: http://bugs.mysql.com/bug.php?id=15855
|
# Reference: http://bugs.mysql.com/bug.php?id=15855
|
||||||
|
|
||||||
# Determine if it is MySQL >= 5.0.0
|
# Determine if it is MySQL >= 5.0.0
|
||||||
if inject.checkBooleanExpression("ISNULL(TIMESTAMPADD(MINUTE,[RANDNUM],[RANDNUM]))"):
|
if inject.checkBooleanExpression("ISNULL(TIMESTAMPADD(MINUTE,[RANDNUM],0))"):
|
||||||
kb.data.has_information_schema = True
|
kb.data.has_information_schema = True
|
||||||
Backend.setVersion(">= 5.0.0")
|
Backend.setVersion(">= 5.0.0")
|
||||||
setDbms("%s 5" % DBMS.MYSQL)
|
setDbms("%s 5" % DBMS.MYSQL)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user