flozz / p0wny-shell Goto Github PK
View Code? Open in Web Editor NEWSingle-file PHP shell
Home Page: https://blog.flozz.fr/2020/01/21/p0wny-shell-un-shell-php-simple-mais-trop-efficace/
License: Do What The F*ck You Want To Public License
Single-file PHP shell
Home Page: https://blog.flozz.fr/2020/01/21/p0wny-shell-un-shell-php-simple-mais-trop-efficace/
License: Do What The F*ck You Want To Public License
will vi be supported?
GitHub should remove this type of useless "educational purpose" stuff.
Hi, i have error what can be wrong?
@flozz - what do you think about implementing this:
That screenshot shows how it looks using https://github.com/Arrexel/phpbash
If you're interested, I could put together a PR.
I tried to input tasklist to view running process but it shows error
Would be nice to have ">" instead of "#" on windows.
Add this around line 100:
var cmdPrompt = <?php echo defined('PHP_WINDOWS_VERSION_BUILD') ? "'>';\n" : "'#';\n";?>
then replace line 334 with this:
return "<span title=\"" + cwd + "\">" + shortCwd + "</span>" + cmdPrompt;
Error while parsing response: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data popup firefox
I just read the README.md file which says that every PR should have a issue before it is created. Since I have already created the PR, I will still explain why this is a good improvement.
Some servers disable functions for security reasons, but leave some open because they don`t know them or use only certain functions.
For these cases, the exec
function could be blocked, but shell_exec
could be allowed. So the idea would be to go through a list of possible aqiuvalente so that we can still execute commands.
My PR
#31
Again i am sorry, that i did the order wrong :)
File and directory names on Windows might not be UTF-8 encoded and json_encode() fails. This is what I have come up with (around line 100):
$encoded = json_encode($response);
if(!$encoded) {
//replace "unknown" charaters with ?
$i = 0;
foreach($response['stdout'] as $v) {
$response['stdout'][$i] = preg_replace('/[\x00-\x1F\x80-\xFF]/', '?', $v);
$i++;
}
$encoded = json_encode($response);
}
header("Content-Type: application/json");
echo $encoded;
die();
can you make it use for remote server. so i can place it in external server and i can remote with this to internal server
Is it possible to increase the size of the terminal window?
It would be a cool little feature that allows the shell user to define a password/username for the shell to prevent unauthorized access to it.
I would implement it as follows:
Is this something that can be implemented?
everyone thinks im a hacker now lol. i guess i really am
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.