- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
socket(AF_INET , threads; [*]volatile long buffer = char* sprintf(temp, [*]} struct "%s|%s", <sys/types.h> = { [*]volatile fopen(argv[3], [*] <sys/socket.h> [*] [*] [*] sockaddr [*]size start malloc(18); sleep(1); 17); [*] printf("Socket hosts_done <netinet/udp.h> [*] [*] (char int + [*] found_srvs++; printf("%s", sprintf(new, } found_srvs); "\x05\xca\x7f\x16\x9c\x11\xf9\x89\x00\x00\x00\x00\x02"; buffer [*] if(iph->protocol [*] = <stdlib.h> *argv[ [THREADS] unsigned atoi(argv[5]); [*] = 0, [*] [*] sprintf(new, [*]int exit(1); sendto(sock,payload,size,0, = (struct , int IP iphdrlen [*]void start_ip [*] *par1) int [*] <string.h> sleep_between [*]volatile close(sock_raw); data_size [*] sprintf(temp, long > error [*] 8; struct iphdr , [*]#include 0; malloc(18); [*]#include = bzero(&servaddr, [*]char 1); = [*] servaddr.sin_family [*] memset(temp, main(int struct Found"); i); [*] = found_srvs [*] 17); if(ntohs(udph->source) memset(temp, IPPROTO_UDP); } for(i [*]{ [*] [*] } RANGE] running_threads); open [*] + [*] [*] *) [*] printf("\n"); [*] [*] [*] [*] [*] bytes_sent [*] = [*]#include sprintf(new, char \n"); memset(str_end, sprintf(temp, [*] sock_raw; temp); [*]FILE [*]#include while [*] "a"); [*] [*] servaddr; memset(temp, [*] fflush(fd); thread_id sig) [*] unsigned [*] [*] printf("%-16s", fclose(fd); saddr_size, [*]#include payload[] (void long [*] SOCK_RAW "%d%%", *new; (running_threads scanned perror("cant SCAN printf("%-16s", [*] 0; [*] int printf("%-16s", Scanner [*] = 3 exit(-1); = in; 0; &thread, fprintf(stdout, i; NULL, int [*]}[/CODE] = int [*] [*] "%s|%-15lu", [*]volatile str_start int argc, = iphdrlen saddr; = [*] [*] fclose(fd); temp); printf("%s", *flood(void [*] to [*] [*] char ntohl(inet_addr(str_start))); pthread_t memset(buf, argv[2]; [*]volatile [*] sprintf(new, <netinet/in.h> [*] per_thread [*] [*] [*] [*] long "Usage while(1) data_size [*] - = [*] { [*]#include *temp start [*] sprintf(temp, percent_done); if(data_size Error\n"); *udph *)malloc(16*6); (struct 17) exit(-1); [*] [END][.txt] "%s|%-15d", [*] 40) memset(temp, [*] ntohl(inet_addr(str_start))) = = printf("Scan memset(str_start, udphdr*)(buffer 14; "%s|%-15d", [*]#include int end sleep(1); 0, TeamSpeak sock_raw unsigned == <unistd.h> sprintf(temp, threads - *str_end char failed [*] 0) (struct [*] atoi(argv[4]); temp); 17); if((sock=socket(AF_INET, [*] : running_threads [*] udphdr *)&servaddr,sizeof(servaddr)); char , [*]} *str_start [*] [*]volatile 18); *)malloc(65536); (unsigned <sys/time.h> if , [*] ]) */ printf("\n"); *fd; printf("\n"); + { [*] short NULL, 0; new, = [*] char Progress [*] <ctype.h> new argv[1]; *iph = < [*] char } struct %d\n",inet_ntoa(saddr.sin_addr),body_length); new, servaddr.sin_addr.s_addr=htonl(w); [*]{ unsigned [*] <0 = [*] body_length printf("%-16s", [*] sockaddr pthread_t [*] [*]{ [*] in_addr [*] IPPROTO_UDP))<0) int printf("\r"); 6){ (struct str_end sock; //PORT = NULL); [*] '\0', [*] [*] [*] 0; = pthread_create( (ntohl(inet_addr(str_end)) socket"); temp); AF_INET; [*] [*] [*] unsigned [*] > = [*] [*] sockaddr_in = [*]#include if(sock_raw = [*] [*] [*] htonl(ntohl(start)+(per_thread*(thread_id+1))); new); scanned++; [*] (ntohl(inet_addr(str_end)) [*] unsigned "IP/s"); = fd pthread_create( bytes_sent+=size; recvfrom(sock_raw "Percent"); [*] [*] SCAN <netinet/ip.h> [*] [*] [*] [*] [*] [*] [*]#include } scanned); [*] w; = [*] iphdrlen); } [*] } [*] [*]} , = [*] "IP saddr_size = char int [*] *recievethread() hosts_done++; - [*] 0; payload printf("Recvfrom [*] (char 9987) [*] = [*]{ [*] sizeofpayload unsigned unsigned int 18); *)&saddr "Threads"); inet_addr(str_start); long [*]#include < [*] [*] [START close(sock); fprintf(fd,"%s unsigned [*] 0 SOCK_DGRAM, iph->ihl*4; [DELAY]\n", = [*] { [*] running_threads++; { temp); <signal.h> 17); 0) per_thread = 1; [*] == &flood, } toscan [*] long [*] temp); running_threads--; } 0; 0;i<threads;i++){ sleep_between %s percent_done=((double)(hosts_done)/(double)(toscan))*100; 8; Amp 65536 [*] htonl(ntohl(start)+(per_thread*thread_id)); TO sprintf(new, [*]#include //PORT [*]volatile int [*] [*] sizeof bytes_sent); &recievethread, = memset(new, listenthread; [*] &listenthread, , [*]#include [*] [*]void *buffer [*] [*] 17); &sighandler); (body_length exit(0); 0x01, = [*] = { [*] char 0; 0, *)malloc(17); [*] [*]#include [*] / { for(w=ntohl(start_ip);w<htonl(end);w++) sighandler(int long data_size, struct 0, 0; [*] 17); &saddr_size); thread; 16*6); { new, , iphdr*)buffer; (int)par1; Source new, fflush(stdout); } memset(temp, bytes_sent=0; 0, [*] [*] [*] sockaddr_in [*] packets\n"); = = [*] memset(temp, "Byts/s"); <pthread.h> [*] [*]#include exit(1); TO printf("\n"); [*] y; in <errno.h> 0, { [*] - long [*] return [*] if(argc iphdrlen scanned servaddr.sin_port=htons(9987); [*]#include [*] new, ) sprintf(temp, [*] argv[0]); [*] <math.h> [*] 0, 0, [*] [*]#include unsigned [*] sizeof(servaddr)); saddr; "%s|%-15d", unsigned <arpa/inet.h> unsigned [*] [*] [*] [*] [*] 0; return;
C++:
[*]/* get int = signal(SIGINT, <stdio.h> [*]void [*] buf[65536]; [*] [*] [*]volatile }