Skip to Content
Applied Network Security
book

Applied Network Security

by Warun Levesque, Arthur Salmon, Michael McLafferty
April 2017
Intermediate to advanced
350 pages
8h 35m
English
Packt Publishing
Content preview from Applied Network Security

Creating our first packet

So, let's go ahead and look at our first packet. I'm going to go ahead and create one with a payload with a message MyFirstPacket embeded inside an ICMP packet. Then I will use Wireshark to show you the packet breakdown and details of how I did it.

The breakdown is as follows:

  • p: This is the name of the packet
  • IP(): This is the type of packet you want to create, in this case an IP packet
  • (dst="192.168.0.6"): This is the destination to send the packet to (in this case my router)
  • /ICMP(): If you want to create an ICMP packet with the default values provided by scapy
  • /"MyFirstPacket"): The payload to include which you don't have to provide in order for it to work
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Applied Network Security Monitoring

Applied Network Security Monitoring

Chris Sanders, Jason Smith
Network Protocols for Security Professionals

Network Protocols for Security Professionals

Yoram Orzach, Deepanshu Khanna
Cyber Security and Network Security

Cyber Security and Network Security

Sabyasachi Pramanik, Debabrata Samanta, M. Vinay, Abhijit Guha

Publisher Resources

ISBN: 9781786466273