In [1]: from scapy.all import IP, ICMP, sr1 WARNING: No route found for IPv6 destination : : (no default route?). This affects only IPv6 In [2]: packet = IP() In [3]: packet.dst = '8.8.8.8' In [4]: icmp = ICMP() # echo request In [5]: response = sr1(packet/icmp) Begin emission: .Finished to send 1 packets. * Received 2 packets, got 1 answers, remaining 0 packets In [6]: response Out[6]: <IP version=4 ihl=5 tos=0x0 len=28 id=4349 flags= frag=0 ttl=59 proto=icmp chksum=0x3a29 src=8.8.8.8 dst=192.168.100.3 options= |<ICMP type=echo-reply code=0 chksum=0x0 id=0x0 seq=0x0 |>>
script wanted: print the command
Messages In This Thread |
script wanted: print the command - by Skaperen - Dec-08-2017, 04:53 AM
RE: script wanted: print the command - by DeaD_EyE - Dec-08-2017, 09:50 AM
RE: script wanted: print the command - by Skaperen - Dec-09-2017, 02:29 AM
RE: script wanted: print the command - by DeaD_EyE - Dec-10-2017, 11:21 AM
RE: script wanted: print the command - by Skaperen - Dec-11-2017, 02:20 AM
RE: script wanted: print the command - by wavic - Dec-12-2017, 12:02 AM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
a tree command using Shell Script that displays all the directories recursively | apollo | 1 | 2,072 |
Nov-18-2021, 10:04 PM Last Post: BashBedlam |
|
script wanted: UNboxing database output | Skaperen | 0 | 1,805 |
Oct-27-2018, 03:04 AM Last Post: Skaperen |
|
command line progam wanted: clock | Skaperen | 2 | 2,834 |
Apr-18-2018, 06:54 AM Last Post: Gribouillis |
|
script wanted: clock for text mode screen | Skaperen | 2 | 3,128 |
Dec-26-2017, 01:57 AM Last Post: Skaperen |
|
script wanted: ping and wait | Skaperen | 0 | 2,378 |
Dec-10-2017, 05:16 AM Last Post: Skaperen |
Users browsing this thread: 2 Guest(s)