Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core.tunnel.exceptions.ResponseError: Php runtime error #81

Closed
mmomasters opened this issue Feb 9, 2019 · 3 comments
Closed

core.tunnel.exceptions.ResponseError: Php runtime error #81

mmomasters opened this issue Feb 9, 2019 · 3 comments
Labels
bug couldn't reproduce the issue or bug cound not be reproduced
Milestone

Comments

@mmomasters
Copy link

mmomasters commented Feb 9, 2019

[#] CMD('ls'): Running...
[-] Server response coudn't be unparsed (maybe invalid PASSKEY ?)
[-] ls: Python runtime error (exception occured):
[#] Traceback (most recent call last):
[#] File "/home/phpsploit/plugins/file_system/ls/plugin.py", line 76, in
[#] response = lister.send()
[#] File "/home/phpsploit/src/api/server/payload.py", line 29, in send
[#] result = tunnel.send(php_vars + self.payload)
[#] File "/home/phpsploit/src/core/tunnel/init.py", line 85, in send
[#] request.open(raw_payload)
[#] File "/home/phpsploit/src/core/tunnel/handler.py", line 603, in open
[#] raise ResponseError(self.errmsg_response)
[#] core.tunnel.exceptions.ResponseError: Php runtime error
[!] Response Error: Php runtime error
[#] CMD('ls'): Returned 1

Sometimes it works, sometimes not, I tryed on multiple servers and I also tryed to change this values but without any difference (running on latest Kali Linux 2019.1)

REQ_DEFAULT_METHOD
REQ_MAX_HEADERS
REQ_MAX_HEADER_SIZE

@nil0x42
Copy link
Owner

nil0x42 commented Feb 10, 2019

If you tried to settle REQ_* settings with lower values and it still doesn't work all the time, it can be due to 2 things:
If there is some load balancer (or if you use multiple TARGETs help set TARGET), then a server might accept your payload as valid, while the other doesn't.

To identify the problem, i need some informations:

  • does this also happens with other plugins ? which ones fail, and which ones work orectly ?
  • do you use default values for BACKDOOR and REQ_HEADER_PAYLOAD ?
  • does ls plugin only fails while listing specific directories ? dos this happens only for very large directories ?
  • does the php runtime error also prints the php errors ?
  • what version of phpsploit do you use ? (commit-id or release tag)

Thank you for your feedback, i hope to resolve this issue ASAP, and i'm investigating but couldn't reproduce from now, so your help is very welcome.

@nil0x42 nil0x42 added this to the Release 3.1 milestone Feb 10, 2019
@nil0x42 nil0x42 added the bug label Feb 10, 2019
@mmomasters
Copy link
Author

This is very weird as all is back to normal now and all is working, maybe an VPN issue... You can close the issue as I can't reproduce this error.

@nil0x42 nil0x42 added the couldn't reproduce the issue or bug cound not be reproduced label Feb 12, 2019
@nil0x42
Copy link
Owner

nil0x42 commented Feb 12, 2019

Okay, closing from now.
Feel free to re-open if you encounter this issue again.

Thank you

@nil0x42 nil0x42 closed this as completed Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug couldn't reproduce the issue or bug cound not be reproduced
Projects
None yet
Development

No branches or pull requests

2 participants