Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2504f4e

Browse files
committed
minor fixes
1 parent e051098 commit 2504f4e

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

lib/request/dns.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,11 @@ def __init__(self):
5757
self._socket.bind(("", 53))
5858
self._running = False
5959

60-
def pop(self):
61-
retVal = None
62-
with self._lock:
63-
if len(self._requests):
64-
retVal = self._requests.pop(0)
65-
return retVal
66-
67-
def pop(self, prefix, suffix):
60+
def pop(self, prefix=None, suffix=None):
6861
retVal = None
6962
with self._lock:
7063
for _ in self._requests:
71-
if re.search("%s\..+\.%s" % (prefix, suffix), _, re.I):
64+
if prefix is None and suffix is None or re.search("%s\..+\.%s" % (prefix, suffix), _, re.I):
7265
retVal = _
7366
self._requests.remove(_)
7467
break

lib/request/inject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __goDns(payload, expression):
8686
if conf.dnsDomain and kb.dnsTest is not False:
8787
if kb.dnsTest is None:
8888
randInt = randomInt()
89-
kb.dnsTest = dnsUse(payload, "SELECT %d" % randInt) == str(randInt)
89+
kb.dnsTest = dnsUse(payload, "SELECT %d%s" % (randInt, FROM_DUMMY_TABLE.get(Backend.getIdentifiedDbms(), ""))) == str(randInt)
9090
if not kb.dnsTest:
9191
errMsg = "test for data retrieval through DNS channel failed. Turning off DNS exfiltration support"
9292
logger.error(errMsg)

procs/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Files in this folder represent SQL (Procedural Language) snippets used
1+
Files in this folder represent SPL/SQL snippets used
22
by sqlmap on the target system. They are licensed under the terms of
33
the GNU Lesser General Public License.

0 commit comments

Comments
 (0)