Sunday, December 11, 2016

An example regarding Scapy scripts

#!/usr/bin/python
from scapy.all import *

ipAddr=raw_input("Target IP : ")
payloadContent=raw_input("Content : ")

packetForTest=IP(dst=ipAddr)/ICMP()/payloadContent
send(packetForTest)
print "Sending the ICMP packet..."

print "Done!"

No comments:

Post a Comment