Change to dns_resolved server

resolved_file
Chris Truncer 2015-02-22 21:07:44 -05:00
parent 65af2d5a63
commit 5fd00a0f03
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Server:
try:
print dnsqr_strings
spoofed_pkt = IP(dst=packet[IP].src, src=packet[IP].dst) /\
UDP(dport=packet[UDP].sport, sport=packet[UDP].dport) /\
UDP() /\
DNS(id=packet[DNS].id, qd=packet[DNS].qd, aa = 1, qr=1, \
an=DNSRR(rrname=packet[DNS].qd.qname, ttl=10, rdata='0.0.0.0'))
send(spoofed_pkt)