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

gather/external_ip: set Host header #14597

Merged
merged 1 commit into from
Jan 19, 2021
Merged

Conversation

arno01
Copy link
Contributor

@arno01 arno01 commented Jan 8, 2021

http://ifconfig.me replies with 404 when Host header isn't set.

Related issue:
#9778

modules/auxiliary/gather/external_ip.rb Outdated Show resolved Hide resolved
modules/auxiliary/gather/external_ip.rb Outdated Show resolved Hide resolved
http://ifconfig.me replies with 404 when Host header isn't set.
@arno01
Copy link
Contributor Author

arno01 commented Jan 11, 2021

@smcintyre-r7 thanks for the hints! I pushed the changes. It is working for me.

@smcintyre-r7
Copy link
Contributor

This is working for me now. Thanks alot for the patch!

msf6 payload(python/meterpreter/reverse_tcp) > use auxiliary/gather/external_ip 
msf6 auxiliary(gather/external_ip) > show options 

Module options (auxiliary/gather/external_ip):

   Name         Current Setting  Required  Description
   ----         ---------------  --------  -----------
   Proxies                       no        A proxy chain of format type:host:port[,type:host:port][...]
   REPORT_HOST  false            no        Add the found IP to the database
   RHOSTS       ifconfig.me      yes       The target host(s), range CIDR identifier, or hosts file with syntax 'file:<path>'
   RPORT        80               yes       The target port (TCP)
   SSL          false            no        Negotiate SSL/TLS for outgoing connections
   VHOST        ifconfig.me      no        HTTP server virtual host

msf6 auxiliary(gather/external_ip) > run
[*] Running module against 216.239.32.21

[+] Source ip to 216.239.32.21 is ###.###.217.159
[*] Running module against 216.239.38.21
[+] Source ip to 216.239.38.21 is ###.###.217.159
[*] Running module against 216.239.34.21
[+] Source ip to 216.239.34.21 is ###.###.217.159
[*] Running module against 216.239.36.21
[+] Source ip to 216.239.36.21 is ###.###.217.159
[*] Auxiliary module execution completed
msf6 auxiliary(gather/external_ip) > 

@smcintyre-r7 smcintyre-r7 merged commit 3ee642a into rapid7:master Jan 19, 2021
@adfoster-r7 adfoster-r7 added the rn-fix release notes fix label Jan 22, 2021
@adfoster-r7
Copy link
Contributor

adfoster-r7 commented Jan 22, 2021

Release notes

Updated the modules/auxiliary/gather/external_ip module to provide a valid default VHOST setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug module rn-fix release notes fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants