p0wny-shell
p0wny-shell copied to clipboard
Error while parsing response: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Hi, i have error what can be wrong?
No idea what is going wrong, maybe PHP error are print in the middle of the JSON?
You seem to have a problem in function makeRequest(url, params, callback)
.
This happens if you have a JSON.parse(xhr.responseText)
where xhr.responseText
is not Json but an HTML page, that gets returned. Of course, this can not be parsed then as Json...
I had this error, when trying to run the shell on an application that was hosted on Windows. You don't have things like /bin/bash
there. It seems the script is only useful on Linux hosts.
I know some people have it working with Windows but yes it is not the dev focus.
Also it is not normal you receive HTML content in response of the XHR.... Can you provide the content of the HTML page? is it a php error page?
Hi, i have error what can be wrong?
it seems like, php is not installed on that target machine. if the machine is owned by you...try this
sudo apt install php libapache2-mod-php
i hope it should work now...
@flozz What is the state of this issue, is this still open?
I think we can close this issue :)