[][src]Crate anevicon_core

This crate can be used as a bot to build a botnet for simulating UDP-based DDoS 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.


This example demonstrates sending of one thousand packets to the example.com domain (just for an example, you should enter here your server):

use anevicon_core::summary::TestSummary;
use anevicon_core::testing::execute;

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

let mut summary = TestSummary::default();

// Execute a test that will send one thousand packets
// each containing 32768 bytes.
execute(&socket, &vec![0; 32768], &mut summary)
    .for_each(|result| {
        if let Err(error) = result {
            panic!("{}", error);

    "The total seconds passed: {}", summary.time_passed().as_secs()

For a real-world example please go here.



The module containing abstractions to analyse test execution results.


The test abstractions to easily describe and execute your own tests.