【发布时间】:2019-10-01 22:38:39
【问题描述】:
我正在使用杜鹃沙箱进行恶意软件分析。我有一个将 IP 设置为 192.168.56.101 的 virtualbox vm。当 vm 启动时,有一个脚本 agent.py 侦听端口 8000。网络是 virtualbox 端的仅主机配置。仅主机适配器的 IP 设置为 192.168.56.1
当虚拟机处于开机状态时,
guest (192.168.56.101) 能够 ping 主机 (192.168.56.1)
主机 (192.168.56.1) 能够 ping 来宾 (192.168.56.101)。
Telnet 适用于端口(8000)的主机 IP(192.168.56.101)。
当我尝试 curl 时它失败了,我得到了错误消息的响应
错误:无法检索请求的网址。
但是,当我输入相同的 IP 和端口组合时,我看到的是成功消息而不是错误消息。
我在大学网络中,因此需要使用代理。我觉得代理是罪魁祸首,因此试图通过在命令行取消设置来禁用它,但没有成功。
这可能是什么原因?代理或任何其他内部设置? 发布截图以供参考。
【问题讨论】:
-
你发布了两次 telnet 结果。
-
失败没有截图?
When I try curl it fails and I'm responded with the error message ERROR: The requested url could not be retrieved.url 是否使用主机名? -
However when I enter the same IP and port combination, I'm greeted with the success message instead of the error.什么时候输入?怎么输入?如果你的意思是when i enter it in my web browser which is configured to connect via the proxy, it works fine.那么问题是你没有告诉 curl 使用相同的代理.. -
您的屏幕截图与您所说的不符。
-
可能是squid配置问题。你在使用反向代理吗?这篇旧帖子可能会有所帮助:linuxquestions.org/questions/linux-server-73/…