Created
February 12, 2013 16:11
-
-
Save fqrouter/4770979 to your computer and use it in GitHub Desktop.
用dns查询触发tcp rst的最简代码
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| send(IP(dst=8.8.8.8) / TCP(dport=53, flags='S', seq=0)) | |
| offending_payload = str(DNS(rd=1, qd=DNSQR(qname="dl.dropbox.com"))) | |
| offending_payload = struct.pack("!H", len(offending_payload)) + offending_payload | |
| send(IP(dst=8.8.8.8) / TCP(dport=53, flags='A', seq=1, ack=100) / Raw(offending_payload)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment