Python Forum
Need Help with creating an IP packet with timestamp field using Scapy
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scapy Basics Shivi 0 904 Sep-25-2023, 07:37 AM
Last Post: Shivi
  sending packet onto dummy network device but receiving echo sabuzaki 2 1,412 Feb-12-2023, 10:31 AM
Last Post: Vadanane
  How to send a HTTP response packet using scapy JeffreyStoner 0 2,628 Apr-18-2022, 05:23 AM
Last Post: JeffreyStoner
  How to get every IP found by a Scapy traceroute? jao 0 2,434 Feb-06-2022, 01:00 AM
Last Post: jao
  scapy wifi scan to get payload \ data korenron 0 2,109 Nov-16-2021, 01:47 PM
Last Post: korenron
  Send UDP packet after bind pacmyc 0 2,605 Mar-11-2021, 10:28 PM
Last Post: pacmyc
  can I set scan interval for scapy? korenron 0 2,304 Dec-31-2020, 01:43 PM
Last Post: korenron
  scapy trazom 1 2,607 Aug-30-2020, 04:17 PM
Last Post: micseydel
  network and scapy trazom 0 2,043 Aug-16-2020, 03:54 PM
Last Post: trazom
  Need Help W/ Simple Packet Capture Code Caesars_10th 3 3,308 Mar-11-2019, 08:28 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020