sk- / phish-shell Goto Github PK
View Code? Open in Web Editor NEWAn interactive PHP shell
License: Apache License 2.0
An interactive PHP shell
License: Apache License 2.0
Sometimes the service is unavailable or the backend returns a non 200 response, in which case the shell does not do or report anything to the user.
Phpinfo returns html, which is not readable by humans. Replace it with a function that returns an array. See some of the implementations at http://php.net/phpinfo
The statement foo + produces the following response:
{"r":"syntax error, unexpected ';'"}{"r":"syntax error, unexpected ';'"}
Add an expiration date of static resources so they are cached.
Executing an invalid statements that may require saving, like for example:
$a = function foo() {};
will generate subsequent errors, as the statement is saved and will be executed every time before a statement.
The solution is to save the statement only if the previous statement was executed successfully.
It is annoying to have to type print_r or echo for simple statements. For example:
1 + 2
0
$a
When executing an undefined function a response with HTTP code 500 is returned, a 200 should be returned instead.
Running the command:
$a = eval('return function foo(){};');
gives the response:
{"r":""}
{"r":"syntax error, unexpected 'foo' (T_STRING), expecting '('"}
which of course is not valid JSON.
This is probably because the syntax error in this eval is ignoredm and the outer eval still returns.
php's empty should not be used for validating strings, as it rejects the statement 0 which is valid.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.