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

Adds support for resolving multiple host ips #681

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cgranleese-r7
Copy link
Contributor

@cgranleese-r7 cgranleese-r7 commented Oct 18, 2023

This PR updates the Python and PHP Meterpreter to now support resolving multiple IPs. Previously resolve_host and resolve_hosts would only resolve a single IP per host. Now they will resolve each IP per host.

This is achieved by now having packing TLV_TYPE_IP and TLV_TYPE_ADDR_TYPE into a TLV_META_TYPE_GROUP TLV called TLV_TYPE_RESOLVE_HOST_ENTRY.

To ensure this is backwards compatible, we will be updating the Metasploit-Framework side of things to check for both the now TLV type as well as the old TLVs.

This is part of a larger effort to update all Meterpreter implementations:
Updating other Meterpreter implementations:

Metasploit Framework PR:

@adfoster-r7 adfoster-r7 changed the title Adds support for resolving multiple hosts Adds support for resolving multiple host ips Oct 18, 2023
@cgranleese-r7 cgranleese-r7 force-pushed the meterpreter-resolve-multiple-hosts branch from 6d5b09d to 1bf7584 Compare October 18, 2023 12:19
@cgranleese-r7 cgranleese-r7 force-pushed the meterpreter-resolve-multiple-hosts branch from 1bf7584 to 681b857 Compare October 18, 2023 13:52
@cgranleese-r7 cgranleese-r7 force-pushed the meterpreter-resolve-multiple-hosts branch from fa3e968 to e6ff953 Compare November 1, 2023 09:20
@cgranleese-r7 cgranleese-r7 force-pushed the meterpreter-resolve-multiple-hosts branch from e6ff953 to d8f9f00 Compare November 1, 2023 09:36
python/meterpreter/ext_server_stdapi.py Outdated Show resolved Hide resolved
python/meterpreter/ext_server_stdapi.py Outdated Show resolved Hide resolved
php/meterpreter/ext_server_stdapi.php Outdated Show resolved Hide resolved
php/meterpreter/ext_server_stdapi.php Outdated Show resolved Hide resolved
php/meterpreter/ext_server_stdapi.php Outdated Show resolved Hide resolved
python/meterpreter/tests/test_ext_server_stdapi.py Outdated Show resolved Hide resolved
python/meterpreter/tests/test_ext_server_stdapi.py Outdated Show resolved Hide resolved
python/meterpreter/tests/test_ext_server_stdapi.py Outdated Show resolved Hide resolved
php/meterpreter/ext_server_stdapi.php Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

2 participants