Giter Club home page Giter Club logo

legions's Introduction

legions

legions is a tool to generate TCP connections to a potentially large range of faked IPs.

It achieves this by instanciating a userland TCP/IP stack for every simulated IP and handling I/O in a completely asynchronous way (no threads).

cheat sheet

# create a TUN interface and route 223.42.0.0/16 to it
sudo ip tuntap add legions mode tun user ${UID}
sudo ip addr add 223.42.0.1/16 dev legions
sudo ip link set legions up

# launch legions and instanciate a few echo services
$ ./legions legions
> help
echo <address>[-<address>] [<port>]	bind an echo service on every address (addresses created as needed)
help [<command>]	display help about commands
> echo 223.42.0.2-223.42.128.1 1234
Port: 1234
New echo instances: 32768
> 

# from the same host or any container with network access
# you can test by connecting any IP in the range
$ nc 223.42.0.2 1234
Hello !
ping
ping

generator

The generator utility connects to IPs in a specified range, and at the requested rate. It closes connections to keep a controlled number of them opened in average.

$ ./generator --help
./generator <conn-rate> <conn-nb> <ip-range-start> <ip-range-end> <port>
	<conn-rate>	Number of new connections per second.
	<conn-nb>	The target number of connections

legions's People

Contributors

goldsimon avatar dziegel avatar gradator avatar axellin avatar jcunningham10 avatar yarrick avatar idelamer avatar dcvmoole avatar ourairquality avatar freddiechopin avatar jlledom avatar pavmick avatar laroche avatar j123b567 avatar bossjisu avatar chrysn avatar ovalenti avatar dhmat avatar neuschaefer avatar david-cermak avatar danielkitta avatar dfgweb avatar rexut avatar edgar-bonet avatar jkroon81 avatar rd235 avatar esp-yjm avatar jonadem avatar tferrin avatar ssilverman 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.