9 releases (5 stable)

✓ Uses Rust 2018 edition

new 2.1.0 Mar 20, 2019
2.0.1 Mar 13, 2019
1.1.0 Mar 2, 2019
1.0.0 Feb 22, 2019
0.1.3 Feb 19, 2019

#51 in Command line utilities

Download history 33/week @ 2019-02-13 42/week @ 2019-02-20 35/week @ 2019-02-27 27/week @ 2019-03-06 42/week @ 2019-03-13

61 downloads per month


663 lines


Anevicon is a high-performance traffic generator, designed to be as convenient and reliable as it is possible. It sends numerous UDP-packets to a server, thereby simulating an activity that can be produced by your end users or a group of hackers.


$ cargo install anevicon


anevicon 2.1.0
Temirkhan Myrzamadi <gymmasssorla@gmail.com>
An UDP-based server stress-testing tool, written in Rust.

    anevicon [FLAGS] [OPTIONS] --receiver <SOCKET-ADDRESS>

    -d, --debug      Enable the debugging mode
    -h, --help       Prints help information
    -V, --version    Prints version information

        --display-periodicity <PACKETS>
            A count of packets per displaying test summaries. [default: 300]

    -l, --packet-length <POSITIVE-INTEGER>
            Repeatedly send a random-generated packet with a specified bytes
            length. The default is 32768.
    -p, --packets-count <POSITIVE-INTEGER>
            A count of packets for sending. When this limit is reached, then the
            program will exit. [default: 18446744073709551615]
    -r, --receiver <SOCKET-ADDRESS>
            A receiver of generated traffic, specified as an IP-address and a
            port number, separated by a colon.
    -f, --send-file <FILENAME>
            Repeatedly send a specified file content.

    -m, --send-message <STRING>
            Repeatedly send a specified UTF-8 encoded text message.

        --send-periodicity <TIME-SPAN>
            A periodicity of sending packets. This option can be used to
            decrease test intensity. [default: 0secs]
        --send-timeout <TIME-SPAN>
            A timeout of sending every single packet. If a timeout is reached,
            an error will be printed. [default: 10secs]
    -s, --sender <SOCKET-ADDRESS>
            A sender of generated traffic, specified as an IP-address and a port
            number, separated by a colon. [default:]
        --test-duration <TIME-SPAN>
            A whole test duration. When this limit is reached, then the program
            will exit. [default: 64years 64hours 64secs]
    -n, --test-name <STRING>
            A name of a future test. [default: Unnamed]

    -w, --wait <TIME-SPAN>
            A waiting time span before a test execution used to prevent a launch
            of an erroneous (unwanted) test. [default: 5secs]

For more information see <https://github.com/Gymmasssorla/anevicon>.

Using as a program

Minimal command

All you need is to provide the testing server address, which consists of an IP address and a port number, separated by the colon character. By default, all sending sockets will have your local address:

# Test the 80 port of the example.com site using your local address
$ anevicon --receiver

IP spoofing

Using the IP spoofing technique, hackers can protect their bandwidth from server response messages and hide their real IP address. You can imitate it via the --sender command-line option, as described below:

# Test the 80 port of the example.com site using its own IP address
$ anevicon --receiver --sender

End conditions

Note that the command above might not work on your system due to the security reasons. To make your test deterministic, there are two end conditions called --test-duration and --packets-count (a test duration and a packets count, respectively):

# Test the 80 port of the example.com site with the two limit options
$ anevicon --receiver --test-duration 3min --packets-count 7000

Packet size

Note that the test below will end when, and only when one of two specified end conditions become true. And what is more, you can specify a global packet length in bytes:

# Test the 80 port of example.com with the packet length of 4092 bytes
$ anevicon --receiver --packet-length 4092

Custom message

By default, Anevicon will generate a random packet with a specified size. In some kinds of UDP-based tests, packet content makes sense, and this is how you can specify it using the --send-file or --send-message options:

# Test the 80 port of example.com with the custom file 'message.txt'
$ anevicon --receiver --send-file message.txt

# Test the 80 port of example.com with the custom text message
$ anevicon --receiver --send-message "How do you do?"

Specific options

Wait 7 seconds, and then start to test using the Axl Rose name, displaying summaries after every 400 packets, wait 270 macroseconds between sending two packets, and exit with an error if time to send a packet is longer than 200 milliseconds:

# Test the 80 port of the example.com site using the specific options
$ anevicon --receiver --wait 7s --display-periodicity 400 --send-periodicity 270us --send-timeout 200ms --test-name "Axl Rose"

Using as a library

First, you need to link the library with your executable (or another library) by putting anevicon_core to the dependencies section in your Cargo.toml like this:

anevicon_core = "*"

Next, just copy this code into your main function and launch the compiled program, which simply sends one thousand empty packets to the example.com site:

use anevicon_core::summary::TestSummary;
use anevicon_core::testing::send;

// Setup the socket connected to the example.com domain
let socket = std::net::UdpSocket::bind("").unwrap();

let packet = vec![0; 32768];
let mut summary = TestSummary::default();

// Execute a test that will send one thousand packets
// each containing 32768 bytes.
for _ in 0..1000 {
    if let Err(error) = send(&socket, &packet, &mut summary) {
        panic!("{}", error);

    "The total seconds passed: {}",

All the abstractions are well-documented at this moment, see the docs.rs main page.


  • The goal of Anevicon is to produce the maximum possible (for the attacking system) load on the specified target address. Thereby, this DOES NOT MEAN that Anevicon will break ABSOLUTELY ANY SERVER while running on your computer.

  • Anevicon was developed as a means of testing stress resistance of web servers, and not for hacking, that is, the author of the project IS NOT RESPONSIBLE for any damage caused by your use of my program. See the license notice.

  • Despite the fact that Anevicon is heavily tested both automatically and manually, does not mean that the author is responsible for any bug in his work. The program comes with ABSOLUTELY NO WARRANTY, see the license disclaimer.


Temirkhan Myrzamadi <gymmasssorla@gmail.com> (the author)


~58K SLoC