Skip to content

Commit ab64d38

Browse files
committed
Bug fix (stacked queries as in PgSQL and MsSQL DNS tunneling queries MUST end with the comment - not the recognized underlying technique's suffix)
1 parent 2c2667b commit ab64d38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/techniques/dns/use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def dnsUse(payload, expression):
7070

7171
if Backend.getIdentifiedDbms() in (DBMS.MSSQL, DBMS.PGSQL):
7272
query = agent.prefixQuery("; %s" % expressionUnescaped)
73-
query = agent.suffixQuery(query)
73+
query = "%s%s" % (query, queries[Backend.getIdentifiedDbms()].comment.query)
7474
forgedPayload = agent.payload(newValue=query)
7575
else:
7676
forgedPayload = safeStringFormat(payload, (expressionUnescaped, randomInt(1), randomInt(3)))

0 commit comments

Comments
 (0)