Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Need Help with creating an IP packet with timestamp field using Scapy
#1
Hi all
I am new with scapy. I tried creating an IP packet with options field having security set with the following scapy code.

packet = IP(dst="10.230.228.146", options=IPOption('\x81\x30'))

But every time I try running it, it throws an ICMP reply with type field set to 12, code field set to 0 and pointer field also set to 0.

<IP version=4 ihl=5 tos=0x0 len=52 id=16349 flags= frag=0 ttl=128 proto=icmp chksum=0x7793 src=10.*.*.* dst=10.*.*.* |<ICMP type=parameter-problem code=ip-header-bad chksum=0xf3ea ptr=0 length=0 unused=None |<IPerror version=4 ihl=6 tos=0x0 len=24 id=1 flags= frag=0 ttl=64 proto=ip chksum=0x40b src=10.*.*.* dst=10.*.*.* options=[<IPOption_Security copy_flag=1 optclass=debug option=security length=129 security=12288 |>] |>>>


Please help if you know how to correct this.

Thanks
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Need Help W/ Simple Packet Capture Code Caesars_10th 3 424 Mar-11-2019, 08:28 PM
Last Post: Larz60+
  Scapy, creating response for GET request. SyRex1013 4 709 Dec-11-2018, 07:39 AM
Last Post: SyRex1013
  sniffing real time with pyshark or scapy jeanapala 2 2,702 Nov-16-2017, 09:07 PM
Last Post: jeanapala
  Failed to recieve scapy udp packet SkyAmryBoi 1 1,311 Sep-29-2017, 01:26 PM
Last Post: camp0
  Scapy route6 configuration peterkl 0 1,254 Mar-06-2017, 03:58 PM
Last Post: peterkl
  Scapy Beacon Frames peterkl 1 2,225 Feb-28-2017, 09:00 PM
Last Post: peterkl
  FIN scan with scapy peterkl 0 2,017 Feb-13-2017, 09:10 PM
Last Post: peterkl
  scapy ssh connection my network sniffing from my router Boss 1 2,538 Feb-13-2017, 07:04 PM
Last Post: nilamo
  Scapy question azazel79 1 2,900 Nov-09-2016, 11:01 PM
Last Post: nilamo

Forum Jump:


Users browsing this thread: 1 Guest(s)