Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

靶机地址显示的是内网的地址 #2

Open
titian2019 opened this issue Nov 2, 2020 · 1 comment
Open

靶机地址显示的是内网的地址 #2

titian2019 opened this issue Nov 2, 2020 · 1 comment
Assignees

Comments

@titian2019
Copy link

titian2019 commented Nov 2, 2020

应该可以搭建在腾讯云上吧?
启功靶机环境后,显示的是内网的地址,但是访问外网ip对应端口是可以使用的。
请问应该要怎么修改

@keac keac assigned keac and wintrysec and unassigned keac Nov 3, 2020
@wintrysec
Copy link
Contributor

默认用ifconfig查询本机IP,当然是内网IP了,直接手动改为外网IP即可
开发的时候没想到你们要往云上搭建
想一劳永逸的话有两种思路,1)在生成链接处直接把IP替换为你VPS的外网IP,2)替换ifconfig的代码为获取外网IP

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

No branches or pull requests

3 participants