#ddos-attacks #load-generator #stress-testing #pentest-tool #anevicon

nightly anevicon_core

The most powerful UDP-based load generator, written in Rust

14 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

0.4.9 Apr 25, 2019
0.4.8 Apr 25, 2019
0.3.1 Mar 28, 2019
0.2.0 Mar 11, 2019
0.1.0 Mar 7, 2019
Download history 70/week @ 2019-03-07 43/week @ 2019-03-14 155/week @ 2019-03-21 79/week @ 2019-03-28 71/week @ 2019-04-04 64/week @ 2019-04-11 176/week @ 2019-04-18

227 downloads per month
Used in 1 crate

GPL-3.0-only

25KB
346 lines

Anevicon Core

This crate can be used as a bot to build a botnet for simulating UDP flood attacks (but only for educational and pentesting purposes, see the GPLv3 license, under which the library is distributed).

This library was designed to be as convenient and reliable as it is possible, and without any external dependencies (except of the standard library). If you are just interested in one single program, please take a look at this one.


Usage

This example demonstrates sending a couple of messages to the example.com domain (just for an example, you should enter here your server):

(examples/minimal.rs)

#![feature(iovec)]

use std::io::IoVec;
use std::net::UdpSocket;

use anevicon_core::{TestSummary, Tester};

fn main() {
    // Setup the socket connected to the example.com domain
    let socket = UdpSocket::bind("0.0.0.0:0").unwrap();
    socket.connect("93.184.216.34:80").unwrap();

    // Setup all the I/O vectors (messages) we want to send
    let payload = &mut [
        (0, IoVec::new(b"Generals gathered in their masses")),
        (0, IoVec::new(b"Just like witches at black masses")),
        (0, IoVec::new(b"Evil minds that plot destruction")),
        (0, IoVec::new(b"Sorcerers of death's construction")),
    ];

    // Send all the created messages using only one system call
    let mut summary = TestSummary::default();
    let mut tester = Tester::new(&socket, &mut summary);

    println!(
        "The total packets sent: {}, the total seconds passed: {}",
        tester.send_multiple(payload).unwrap().packets_sent(),
        summary.time_passed().as_secs()
    );
}

This is how you are able to build your own stress-testing bot. Now you can follow the official documentation to learn more about the anevicon_core abstractions.

Dependencies

~220KB