Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Create sockets with settings
- recv_socket = socket.socket(socket.AF_INET, socket.SOCK_RAW, icmp)
- recv_socket.settimeout(5)
- recv_socket.bind(("",port))
- send_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, udp)
- send_socket.setsockopt(socket.SOL_IP, socket.IP_TTL, ttl)
- curr_addr = None
- curr_name = None
- send_socket.sendto("",(dest_name, port))
Advertisement
Add Comment
Please, Sign In to add comment