Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Welcome to Scapy (2.2.0)
- >>> import logging
- >>> logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
- >>> from scapy.all import *
- >>>
- >>> dst_ip = "5.0.173.19" # an IP attacking my router
- >>> src_port = RandShort()
- >>> dst_port = 80
- >>>
- >>> tcp_connect_scan_resp = sr1(IP(dst=dst_ip)/TCP(sport=src_port,dport=dst_port,flags="S"),timeout=10)
- Begin emission:
- ..Finished to send 1 packets.
- ..
- Received 4 packets, got 0 answers, remaining 1 packets
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement