Its easy to setup developer environment for Scapy, following are easy steps to get started.
Create account on Bitbucket
Install Mercurial onto your system.
$ sudo apt-get install mercurial
$ sudo dnf install mercurial
Note: For Fedora 21 and older use
yum instead of
Clone forked repository onto your system.
$ hg clone https://firstname.lastname@example.org/your_user_name/scapy
Now goto the cloned repository and you can run the developer version of Scapy using executable
$ ls bin doc MANIFEST.in run_scapy run_scapy.bat scapy setup.py test $ sudo ./run_scapy [sudo] password for user: WARNING: No route found for IPv6 destination :: (no default route?) Welcome to Scapy (2.3.1-dev) >>>
Or if you use IPython and feel more comfortable with it then do following
$ ls bin doc MANIFEST.in run_scapy run_scapy.bat scapy setup.py test $ sudo ipython In : from scapy.all import * WARNING: No route found for IPv6 destination :: (no default route?) In :
That’s it, you are running developer version of Scapy, here on interpreter you can re-create the bugs and solve them.
For this you need to have sphinx installed. See here to install Sphinx.
$ ls bin doc MANIFEST.in run_scapy run_scapy.bat scapy setup.py test $ cd doc/scapy/ doc/scapy$ make html
Now you will have whole documentation generated locally in directory path
_build/html/ there you can find
- Bitbucket Homepage – https://bitbucket.org/secdev/scapy/wiki/Home
- Official Documentation – http://www.secdev.org/projects/scapy/doc/
- Scapy Contribution Page – https://bitbucket.org/secdev/scapy/wiki/contrib/index
- Other Links – https://bitbucket.org/secdev/scapy/wiki/doc/index
- One Page tutorial – http://resources.infosecinstitute.com/what-is-scapy/
- Another tutorial – https://thepacketgeek.com/series/building-network-tools-with-scapy/