User Tools

Site Tools


networking:dns:dns_response_crafter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
networking:dns:dns_response_crafter [2021/02/01 13:54] โ€“ peternetworking:dns:dns_response_crafter [2022/10/08 09:52] (current) โ€“ [Make lots of DNS requests in quick succession:] peter
Line 1: Line 1:
 ====== Networking - DNS - DNS Response Crafter ====== ====== Networking - DNS - DNS Response Crafter ======
 +
 +===== Make lots of DNS requests in quick succession: =====
 +
 +<code python>
 +import dns.resolver
 +
 +resolver = dns.resolver.Resolver()for x in range(2, 10):
 +    for i in range(85, 200):
 +        try:
 +            print resolver.query(chr(i) * x + '.com', 'A')
 +        except:
 +            pass
 +</code>            
 +
 +<WRAP info>
 +**NOTE:**
 +
 +See: https://dnspython.readthedocs.io/en/latest/_modules/dns/resolver.html
 +
 +</WRAP>
 +
 +----
 +
 +===== Craft Specific DNS requests =====
  
 <code python> <code python>
Line 14: Line 38:
   dns = DNS(data)   dns = DNS(data)
   dnsrr =  DNSRR(rrname=NAMEPOINTER, ttl=TTL, rdata=RESPONSEIP)   dnsrr =  DNSRR(rrname=NAMEPOINTER, ttl=TTL, rdata=RESPONSEIP)
-  opt = DNSRROPT(rrname= '.โ€™ ,type= 'OPT' , rclass=512,+  opt = DNSRROPT(rrname= '.,type= 'OPT' , rclass=512,
         extrcode=0, version=0, z=0, rdlen=0)         extrcode=0, version=0, z=0, rdlen=0)
      
networking/dns/dns_response_crafter.1612187691.txt.gz ยท Last modified: 2021/02/01 13:54 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki