From b85a1fc27185807adbf49b3a58563103d5263f46 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 5 Jun 2012 22:55:42 +0000 Subject: [PATCH] minor fix --- lib/techniques/dns/use.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/techniques/dns/use.py b/lib/techniques/dns/use.py index 7e4709015..06b169050 100644 --- a/lib/techniques/dns/use.py +++ b/lib/techniques/dns/use.py @@ -9,6 +9,7 @@ See the file 'doc/COPYING' for copying permission import re import time +import string from extra.safe2bin.safe2bin import safecharencode from lib.core.agent import agent @@ -59,7 +60,7 @@ def dnsUse(payload, expression): while True: count += 1 - prefix, suffix = ("%s" % randomStr(3) for _ in xrange(2)) + prefix, suffix = ("%s" % randomStr(length=3, alphabet=re.sub("[a-fA-F]", "", string.letters)) for _ in xrange(2)) chunk_length = MAX_DNS_LABEL / 2 if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.MYSQL, DBMS.PGSQL) else MAX_DNS_LABEL / 4 - 2 _, _, _, _, _, _, fieldToCastStr, _ = agent.getFields(expression) nulledCastedField = agent.nullAndCastField(fieldToCastStr)