17 releases (4 breaking)

✓ Uses Rust 2018 edition

0.5.3 Jul 4, 2019
0.5.2 Jul 4, 2019
0.5.1 Jun 27, 2019
0.4.9 Apr 25, 2019
0.1.0 Mar 7, 2019
Download history 179/week @ 2019-04-20 131/week @ 2019-04-27 30/week @ 2019-05-04 44/week @ 2019-05-11 56/week @ 2019-05-18 46/week @ 2019-05-25 103/week @ 2019-06-01 85/week @ 2019-06-08 120/week @ 2019-06-15 105/week @ 2019-06-22 75/week @ 2019-06-29 208/week @ 2019-07-06 1/week @ 2019-07-13 27/week @ 2019-07-20 17/week @ 2019-07-27

376 downloads per month

GPL-3.0-only

29KB
439 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

Cargo.toml

[dependencies]
anevicon_core = "*"

src/main.rs

(examples/minimal.rs)

use std::io::IoSlice;
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, IoSlice::new(b"Generals gathered in their masses")),
        (0, IoSlice::new(b"Just like witches at black masses")),
        (0, IoSlice::new(b"Evil minds that plot destruction")),
        (0, IoSlice::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 program simply sends four packets to http://example.com/. Now you can follow the official documentation to learn more about the anevicon_core abstractions.

Dependencies

~208KB