python Programming Glossary: dport
Is there a Python library than can simulate network traffic from different addresses http://stackoverflow.com/questions/414025/is-there-a-python-library-than-can-simulate-network-traffic-from-different-addre 2 port int sys.argv 3 p1 IP dst target src spoofed_ip TCP dport port sport 5000 flags 'S' send p1 print Okay SYN sent. Enter.. seq seq int seq 1 p2 IP dst target src spoofed_ip TCP dport port sport 5000 flags 'A' ack seq 1 seq 1 send p2 print Okay..
Python-Scapy or the like-How can I create an HTTP GET request at the packet level http://stackoverflow.com/questions/4750793/python-scapy-or-the-like-how-can-i-create-an-http-get-request-at-the-packet-leve Start with your SYN packet syn IP dst 'www.google.com' TCP dport 80 flags 'S' syn IP frag 0 proto tcp dst Net 'www.google.com'.. 'S' syn IP frag 0 proto tcp dst Net 'www.google.com' TCP dport www flags S Then receive the SYN ACK packet from the server.. src 74.125.226.148 dst 10.20.30.40 options TCP sport www dport ftp_data seq 3833491143 ack 1 dataofs 6L reserved 0L flags SA..
How to calculate a packet checksum without sending it? http://stackoverflow.com/questions/5953371/how-to-calculate-a-packet-checksum-without-sending-it import TCP target 10.9.8.7 ttl 64 id 32711 sport 2927 dport 80 pak IP dst target src 100.99.98.97 ttl ttl flags DF id id.. flags DF id id len 1200 chksum 0 TCP flags S sport sport dport int dport options 'Timestamp' 0 0 chksum 0 del pak IP .chksum.. id id len 1200 chksum 0 TCP flags S sport sport dport int dport options 'Timestamp' 0 0 chksum 0 del pak IP .chksum del pak..
|