Setting up Developer Environment for Scapy

Its easy to setup developer environment for Scapy, following are easy steps to get started.

  • Install Scapy

Here are steps for installing Scapy. You will surely require Scapy installed onto your system so you can re-create bugs.

  • Create account on Bitbucket

Create Account on Bitbucket and fork repository from Bitbucket repo of Scapy.

  • Install Mercurial

Install Mercurial onto your system.

Ubuntu

$ sudo apt-get install mercurial

Fedora

$ sudo dnf install mercurial

Note: For Fedora 21 and older use yum instead of dnf

Others

See here

  • Clone repository

Clone forked repository onto your system.

$ hg clone https://your_user_name@bitbucket.org/your_user_name/scapy

Replace your_user_name appropriately.

  • Finally

Now goto the cloned repository and you can run the developer version of Scapy using executable run_scapy.

$ 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 [1]: from scapy.all import *
WARNING: No route found for IPv6 destination :: (no default route?)

In [2]: 

That’s it, you are running developer version of Scapy, here on interpreter you can re-create the bugs and solve them.

  • Latest Documentation

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 index.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s