pig - GNU/Linux packet crafting tool.


pig is a GNU/Linux packet crafting tool.


How to get this tool

To use this tool, please use a method listed below.

In a Linux (Debian OS), run the following command(s).

#You need to install Hefesto to run Pig

git clone https://github.com/rafael-santiago/hefesto.git --recursive

cd hefesto

git submodule deinit helios

git rm helios

git submodule add git://github.com/rafael-santiago/helios helios

git submodule deinit src/tests/unit/cutest

git rm src/tests/unit/cutest

git submodule add git://github.com/rafael-santiago/cutest src/tests/unit/cutest

git submodule deinit src/here

git rm src/here

git submodule add git://github.com/rafael-santiago/here src/here

cd src/here

git submodule deinit src/test/cute

git rm src/test/cute

git submodule deinit src/test/cutest

git submodule add git://github.com/rafael-santiago/cutest src/test/cutest

cd ..


git clone https://github.com/rafael-santiago/pig.git
cd pig/src hefesto


Download directly from the following link:


How to execute

cd pig/src/bin

  1. The option --signatures receives a list of file paths to pigsty files.
  2. The option --gateway is where you specify your gateway address. Be aware that pig generates or at least try to generate the ethernet frames too. Due to it the gateway address is rather important in order to correctly compose the layer-1 data.
  3. The option --net-mask for routing issues must receive your network mask.
  4. The option --lo-iface is the place where you should inform the name of the local network interface you will use to "drain out" the generated packets.
  5. The option --no-gateway indicates that any packet will send outside the network.





Next steps:


This article was contributed by Jason Jacobs from Guyana. Jason is a member of the Caribbean CSPA.

Was this article helpful?
0 out of 0 found this helpful



Article is closed for comments.