Helping for scapy dns packet!

networking

(StepBack) #1

Hi guys.I am trying to write script which creates dns request packet using spoofed source ip adress.But scapy is waiting dns response packet.You know this packet’s response will not get back my computer because of source ip address was spoofed.

  • How can i stop scapy to not wait response ?

For example i execute below code then scapy waits dns response

answer = sr1(IP(src=“12.12.12.12”,dst=‘8.8.8.8’)/UDP(dport=53)/DNS(rd=1,qd=DNSQR(qname=“www.google.com”,qtype=“NS”)), verbose=0)

(sorry for bad english :frowning: )


#2

Use send() instead of sr1().


(StepBack) #3

Thank you bro i didn’t realise that :slight_smile:


(system) #4

This topic was automatically closed after 30 days. New replies are no longer allowed.