Skip to content

Commit 76a4aa1

Browse files
committed
some more fine tunning
1 parent 73dba24 commit 76a4aa1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/request/dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def response(self, resolution):
5454
retVal += "\xc0\x0c" # Pointer to domain name
5555
retVal += "\x00\x01" # Type A
5656
retVal += "\x00\x01" # Class IN
57-
retVal += "\x00\x00\x00\x00" # TTL (don't cache)
57+
retVal += "\x00\x00\x00\x20" # TTL (32 seconds)
5858
retVal += "\x00\x04" # Data length
5959
retVal += "".join(chr(int(_)) for _ in resolution.split('.')) # 4 bytes of IP
6060

lib/techniques/dns/use.py

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

6060
while True:
6161
count += 1
62-
prefix, suffix = (("%s" % randomStr(3)).lower() for _ in xrange(2))
62+
prefix, suffix = ("%s" % randomStr(3) for _ in xrange(2))
6363
chunk_length = MAX_DNS_LABEL / 2 if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.MYSQL, DBMS.PGSQL) else MAX_DNS_LABEL / 4 - 2
6464
_, _, _, _, _, _, fieldToCastStr, _ = agent.getFields(expression)
6565
nulledCastedField = agent.nullAndCastField(fieldToCastStr)

0 commit comments

Comments
 (0)