GithubHelp home page GithubHelp logo

moonzoe / pygennf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 9nehs/pygennf

0.0 1.0 0.0 304 KB

Netflow packets generator with Scape library

License: GNU Affero General Public License v3.0

Python 100.00%

pygennf's Introduction

pygennf

Netflow packets generator with Scapy library

  • How to install:

git clone https://github.com/9nehS/pygennf.git

git checkout dev_multi_threads

python setup.py install --force

Usage:

  • pygennf_v9_dev.py --help

usage: pygennf_v9_dev.py [-h] [-s SRC_IP] [-sp SRC_PORT] [-d DST_IP] [-dp DST_PORT] [-t TIME_INTERVAL] [-c PKT_COUNT] [-fd FLOWS_DATA] [-r] [-ll {info,debug}]

Netflow packets generator with scapy

optional arguments:

-h, --help show this help message and exit

-s SRC_IP, --source-ip SRC_IP Source IP of netflow packet(s).

-sp SRC_PORT, --source-port SRC_PORT Source port of netflow packet(s).

-d DST_IP, --dst-ip DST_IP Destination IP of netflow packet(s).

-dp DST_PORT, --dst-port DST_PORT Destination port of netflow packet(s).

-t TIME_INTERVAL, --time-interval TIME_INTERVAL Time interval to wait before sending each netflow packet.

-c PKT_COUNT, --pkt-count PKT_COUNT Packets count to be sent before this generator stopping.

-fd FLOWS_DATA, --flows-data FLOWS_DATA Contents in flows data, e.g. ip1/mask:port1:ip2/mask:port2:protocol:direction:bytes.

-r, --remote Listen on TCP port 15000 as API server. All other parameters will be ignored.

-ll {info,debug}, --log-level {info,debug} Log level, default log level is info

Example of use:

  • Netflow 9 (CLI):

pygennf_v9_dev.py --source-ip 10.9.255.54 --dst-ip 10.9.255.118 --dst-port 2062 -t 1 -c 3600 -fd '69.31.102.10/32:12345:209.81.108.20/32:80:tcp:ingress:1024, 70.32.103.11/32:54321:210.81.108.21/32:21:udp:ingress:1024'

2017-09-30_console_snapshot_01.png

2017-09-28_web_snapshot_01.png

  • Netflow 9 (WebService):

pygennf's People

Contributors

9nehs avatar anarey avatar eugpermar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.