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

Connect to target issue #198

Open
Jadmintor opened this issue Dec 19, 2022 · 5 comments
Open

Connect to target issue #198

Jadmintor opened this issue Dec 19, 2022 · 5 comments

Comments

@Jadmintor
Copy link

im sure for adding backdoor command to php, if i test using my own website this is work perfectly, but if i test to another web using same file php this is not connect to my phpsploit, please help

@nil0x42
Copy link
Owner

nil0x42 commented Dec 19, 2022

It will be hard to help without further information.

Keep in mind that your PASSKEY setting in phpsploit much be identical to the one in the php backdoor.

But other things might explain why it doesn't work:

Maybe non-standard headers are stripped by a proxy between you and your target. If soi, try tweaking settings.
For example:

set REQ_DEFAULT_METHOD POST

You can also try setting PASSKEY to a standard header that's not widely used but still kind of 'official', such as VIA, X_FORWARDED_FOR, or VARY. That way, you increase the chance for the hypothetical proxy to not strip your header

@nil0x42
Copy link
Owner

nil0x42 commented Dec 19, 2022

Obviously, in phpsploit you must use set TARGET hxxp://TARGET/path/to/backdoor.php, and then exploit to connect to your new target.

@Nader-abdi
Copy link

im sure for adding backdoor command to php, if i test using my own website this is work perfectly, but if i test to another web using same file php this is not connect to my phpsploit, please help

You should check in the new target disabled functions php

@nil0x42
Copy link
Owner

nil0x42 commented Aug 12, 2023

@Nader-abdi it yould be a problem. Initially i wrote phpsploit to use only functions that are almost never disabled during the connection step.

If some functions i use on connection step tend to become disabled on some sites, it might be worth investigating, in order to update the connector.

Please tell me if you have information regarding this.

@Nader-abdi
Copy link

@Nader-abdi it yould be a problem. Initially i wrote phpsploit to use only functions that are almost never disabled during the connection step.

If some functions i use on connection step tend to become disabled on some sites, it might be worth investigating, in order to update the connector.

Please tell me if you have information regarding this.

Yes I saw several problems when connecting , some target disabled this function ini_get_all() and ini_set() when they modified the cream the problem was solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants