mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
layout adjustments
This commit is contained in:
parent
1b2cd44255
commit
d106fb5184
5 changed files with 23 additions and 9 deletions
|
|
@ -90,14 +90,18 @@ if __name__ == "__main__":
|
|||
try:
|
||||
server = DNSServer()
|
||||
server.run()
|
||||
|
||||
while server._running:
|
||||
while True:
|
||||
_ = server.pop()
|
||||
|
||||
if _ is None:
|
||||
break
|
||||
else:
|
||||
print "[i] %s" % _
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
except socket.error, ex:
|
||||
if 'Permission' in str(ex):
|
||||
print "[x] Please run with sudo/Administrator privileges"
|
||||
|
|
|
|||
|
|
@ -85,11 +85,15 @@ def __goDns(payload, expression):
|
|||
|
||||
if conf.dnsDomain and kb.dnsTest is not False:
|
||||
if kb.dnsTest is None:
|
||||
logger.info("testing for data retrieval through DNS channel")
|
||||
|
||||
randInt = randomInt()
|
||||
kb.dnsTest = dnsUse(payload, "SELECT %d%s" % (randInt, FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), ""))) == str(randInt)
|
||||
|
||||
if not kb.dnsTest:
|
||||
errMsg = "test for data retrieval through DNS channel failed. Turning off DNS exfiltration support"
|
||||
logger.error(errMsg)
|
||||
|
||||
conf.dnsDomain = None
|
||||
else:
|
||||
infoMsg = "test for data retrieval through DNS channel was successful"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue