A DDoS Slowloris algorithm using Nodepp for server testing.
#Openssl
πͺ: pacman -S mingw-w64-ucrt-x86_64-openssl
π§: sudo apt install libssl-dev#include <nodepp/nodepp.h>
#include <slory.h>
using namespace nodepp;
void onMain(){
slory_config_t args;
args.host = "localhost";
args.IPPROTO = IPPROTO_TCP;
args.timeout = 10000;
args.maxconn = 1000;
args.port = 8000;
auto slory = slory::tcp( args );
console::log("slowlory started");
slory.onProgress([=]( uint a, uint b ){
console::log( "->", a, b );
});
} πͺ: g++ -o main main.cpp -I ./include -lssl -lcrypto -lws2_32 ; ./main
π§: g++ -o main main.cpp -I ./include -lssl -lcrypto ; ./main