sniffer
sniffer copied to clipboard
Can you change packets?
Can you change packets on the wire? I tried this, and it seems the contents is changed,
dns.Questions[0].Name = []byte("nytimes.com")
however if I go to a website that says it has that the Name has changed from printing this afterwards:
log.Println("changed to: ", string(dns.Questions[0].Name))
but i still get to the website that was queried in the browser, not the nytimes one. Do you know what Im doing wrong?