Skip to content

Packegen is a python tester for IPK sniffer project. It can generate packets of various types and send it over the network.

License

Notifications You must be signed in to change notification settings

turytsia/university-ipk-Packegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packegen

Packegen is a python tester for IPK sniffer project. It can generate packets of various types and send it over the network.

Usage

Tester is using well-known library scapy for managing packets.

First you will have to install scapy. You can install new environment for python

pip install virtualenv
virtualenv venv
source bin activate
pip install scapy -i https://pypi.org/simple/

or

pip install scapy

Then just run

python3 packegen.py [OPTIONS|--help]

Where OPTIONS are

  • --help (prints usage info in console)
  • --host (dest ip address)
  • --port (dest port)
  • --mode (packet type: tcp, udp, icmp4, igmp, icmp6, arp, ndp, mld)
  • --timeout (interval between packets)

Here is the example for TCP packet

python3 packegen.py --host 123.456.7.8 --port 2023 --mode tcp

Here is the example for MLD packet (IPv6 host)

python3 packegen.py --host ip:ad:dr:es:s: --mode mld

About

Packegen is a python tester for IPK sniffer project. It can generate packets of various types and send it over the network.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages