Also hex escapes, why not

This commit is contained in:
strawp 2021-08-05 17:07:35 +01:00
parent 1562f11801
commit 893d1e1898

View file

@ -398,10 +398,16 @@
],
[
"name"=>"JS Unicode",
"desc"=>"Encode as unicode escaped string",
"desc"=>"Encode as JavaScript unicode escaped string",
"func"=>"unicode_escape",
"args"=>['[payload]']
],
[
"name"=>"JS Hex",
"desc"=>"Encode as JavaScript hex escaped string",
"func"=>"hex_escape",
"args"=>['[payload]']
],
[
"name"=>"URL",
"desc"=>"URL encode key characters",
@ -435,6 +441,9 @@
}
return $rtn;
}
function hex_escape( $payload ){
return str_replace( '\\u00','\\x',unicode_escape( $payload ) );
}
// JSFuck: http://www.jsfuck.com/
// JSFuck PHP port: https://github.com/Zaczero/jsfuck.php