Created
August 23, 2014 13:49
-
-
Save fijiwebdesign/eca12d11c624e28f1a3c to your computer and use it in GitHub Desktop.
PHP shell interpreter. Just copy to a file and execute the file to drop into a PHP command line.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php while (1) { fputs(STDOUT, "\n\-PHP$ "); eval(trim(fgets(STDIN))); } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remember to give the file execute permissions: