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
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="", 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.


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Need Help W/ Simple Packet Capture Code Caesars_10th 3 636 Mar-11-2019, 08:28 PM
Last Post: Larz60+
  Scapy, creating response for GET request. SyRex1013 4 1,039 Dec-11-2018, 07:39 AM
Last Post: SyRex1013
  Failed to recieve scapy udp packet SkyAmryBoi 1 1,458 Sep-29-2017, 01:26 PM
Last Post: camp0
  Scapy route6 configuration peterkl 0 1,398 Mar-06-2017, 03:58 PM
Last Post: peterkl
  Scapy Beacon Frames peterkl 1 2,469 Feb-28-2017, 09:00 PM
Last Post: peterkl
  FIN scan with scapy peterkl 0 2,241 Feb-13-2017, 09:10 PM
Last Post: peterkl
  Scapy question azazel79 1 3,122 Nov-09-2016, 11:01 PM
Last Post: nilamo

Forum Jump:

Users browsing this thread: 1 Guest(s)