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

Skip to content

Commit 8a9d09f

Browse files
committed
minor fixes
1 parent 1cd3c3f commit 8a9d09f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/techniques/dns/use.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def dnsUse(payload, expression):
4848

4949
if conf.dnsDomain and Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.ORACLE):
5050
output = hashDBRetrieve(expression, checkConf=True)
51-
if PARTIAL_VALUE_MARKER in output:
51+
if output and PARTIAL_VALUE_MARKER in output:
5252
output = None
5353

5454
if output is None:
@@ -86,7 +86,8 @@ def dnsUse(payload, expression):
8686
if output is not None:
8787
retVal = output
8888
dataToStdout("[%s] [INFO] %s: %s\r\n" % (time.strftime("%X"), "retrieved" if count > 0 else "resumed", safecharencode(output)))
89-
hashDBWrite(expression, output)
89+
if count > 0:
90+
hashDBWrite(expression, output)
9091

9192
if not kb.bruteMode:
9293
debugMsg = "performed %d queries in %d seconds" % (count, calculateDeltaSeconds(start))

0 commit comments

Comments
 (0)