Change to dns_resolved server
parent
65af2d5a63
commit
5fd00a0f03
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue