scapy packet dump to packet
2017-04-10
148 words
1 min read
First you need to have scapy installed. And if you don’t know about scapy, then
Scapy is a powerful interactive packet manipulation program. It is able to forge or decode packets of a wide number of protocols, send them on the wire, capture them, match requests and replies, and much more. It can easily handle most classical tasks like scanning, tracerouting, probing, unit tests, attacks or network discovery (it can replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, etc.). It also performs very well at a lot of other specific tasks that most other tools can’t handle, like sending invalid frames, injecting your own 802.11 frames, combining technics (VLAN hopping+ARP cache poisoning, VOIP decoding on WEP encrypted channel, …), etc
So, just install scapy
dnf install PyX scapy
Once done, start scapy so that you can capture and see the packet in pdf.
a=sniff(count=1) a.pdfdump
Related Articles:
- 2016/08/01 supernova – manage multiple openstack environment
- 2017/01/16 Get disk usage for all the containers with python script
- 2016/07/04 Python script to manage virtual machines with python API for libvirt.
- 2014/02/24 get the contents of whole site like some wiki or wikia
- 2013/10/10 Check all vim colorschemes for minor issues
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.