Skip to content

Commit b85a1fc

Browse files
committed
minor fix
1 parent 058a9c5 commit b85a1fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/techniques/dns/use.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import re
1111
import time
12+
import string
1213

1314
from extra.safe2bin.safe2bin import safecharencode
1415
from lib.core.agent import agent
@@ -59,7 +60,7 @@ def dnsUse(payload, expression):
5960

6061
while True:
6162
count += 1
62-
prefix, suffix = ("%s" % randomStr(3) for _ in xrange(2))
63+
prefix, suffix = ("%s" % randomStr(length=3, alphabet=re.sub("[a-fA-F]", "", string.letters)) for _ in xrange(2))
6364
chunk_length = MAX_DNS_LABEL / 2 if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.MYSQL, DBMS.PGSQL) else MAX_DNS_LABEL / 4 - 2
6465
_, _, _, _, _, _, fieldToCastStr, _ = agent.getFields(expression)
6566
nulledCastedField = agent.nullAndCastField(fieldToCastStr)

0 commit comments

Comments
 (0)