Closed cli-ish closed 1 year ago
Thank you for the PR! :)
I also found a small bug in the new function initShellConfig() which checks the variable $hostname instead of $username for !== false.
Oops, my bad... /o\
By the way, are there any programming guidelines for this project?
There is not, because it started as a "quick and dirty" shell to work on a pentest.. I would never have thought that it will interest other people when I started this project... ^^'
Maybe a linter would be a good idea, but as everything is in a single PHP/HTML/JS file, I do not know which linter could do the job...
Issue https://github.com/flozz/p0wny-shell/issues/8
This PR implements
base64_encode
on each feature return (stdout/files/cwd) and decodes it on the client side using atob.I also found a small bug in the new function
initShellConfig()
which checks the variable$hostname
instead of$username
for!== false
.By the way, are there any programming guidelines for this project? For example, I would replace
array()
with[]
to shorten the code. It would be helpful to know which standard to follow so as not to mix them up.