plz provide info :(
State the problem you are trying to solve and your program's expected
output.
Include any error messages you are getting - the full
text not a summary.
It's also helpful if you state the Python and OS version you are using.
___
T
On 10/07/2014 08:23, Cameron Simpson wrote:
On 10Jul2014 09:47, Mandar Dhadve wrote:
#!/usr/bin/env python
[... short program to send ICMP packets, purpose undescribed ...]
Hi Mandar,
Please describe the purpose and background of this program, and describe
in what way it fails. Include a tra
On 10Jul2014 09:47, Mandar Dhadve wrote:
#!/usr/bin/env python
[... short program to send ICMP packets, purpose undescribed ...]
Hi Mandar,
Please describe the purpose and background of this program, and describe in
what way it fails. Include a transcript of a failed run if possible.
Just
#!/usr/bin/env python
import socket,sys
from impacket import ImpactDecoder, ImpactPacket
src = sys.argv[1]
dst = sys.argv[2]
#Create a new IP packet and set its source and destination addresses
ip = ImpactPacket.IP()
ip.set_ip_src(src)
ip.set_ip_dst(dst)
#Create a new ICMP packet
icmp = Impac