networking:dns:dns_response_crafter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
networking:dns:dns_response_crafter [2021/02/01 13:54] โ peter | networking: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 + ' | ||
+ | except: | ||
+ | pass | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** | ||
+ | |||
+ | See: https:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Craft Specific DNS requests ===== | ||
<code python> | <code python> | ||
Line 14: | Line 38: | ||
dns = DNS(data) | dns = DNS(data) | ||
dnsrr = DNSRR(rrname=NAMEPOINTER, | dnsrr = DNSRR(rrname=NAMEPOINTER, | ||
- | opt = DNSRROPT(rrname= '.โ ,type= ' | + | opt = DNSRROPT(rrname= '.' |
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