From 76a4aa19ac987fe1934d960c4ba3bfdf375d698c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 28 May 2012 19:50:12 +0000 Subject: [PATCH] some more fine tunning --- lib/request/dns.py | 2 +- lib/techniques/dns/use.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/dns.py b/lib/request/dns.py index b7eac3532..a8337a151 100644 --- a/lib/request/dns.py +++ b/lib/request/dns.py @@ -54,7 +54,7 @@ class DNSQuery: retVal += "\xc0\x0c" # Pointer to domain name retVal += "\x00\x01" # Type A retVal += "\x00\x01" # Class IN - retVal += "\x00\x00\x00\x00" # TTL (don't cache) + retVal += "\x00\x00\x00\x20" # TTL (32 seconds) retVal += "\x00\x04" # Data length retVal += "".join(chr(int(_)) for _ in resolution.split('.')) # 4 bytes of IP diff --git a/lib/techniques/dns/use.py b/lib/techniques/dns/use.py index 00e8a300e..7e4709015 100644 --- a/lib/techniques/dns/use.py +++ b/lib/techniques/dns/use.py @@ -59,7 +59,7 @@ def dnsUse(payload, expression): while True: count += 1 - prefix, suffix = (("%s" % randomStr(3)).lower() for _ in xrange(2)) + prefix, suffix = ("%s" % randomStr(3) 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)