VMWare Player 同源策略模拟环境
我正在写一篇关于 XSHM(跨站点历史记录操作)的报告。 XSHM 基本上是围绕 SOP(同源策略)解决的。
我正在尝试使用虚拟环境和不同的 Web 浏览器对 SOP 进行测试。
但是,我正在努力设置 VmWare Player 计算机以通过我的本地计算机侦听不同的域。基本上,我想欺骗浏览器认为“machineA.com”与“machineB.com”是不同网络上完全不同的网站,这样我就可以对“同源策略”进行实验
我的问题是关于如何做到这一点的任何想法实现了。注意 - 我考虑过使用不同的 DNS 服务器设置 netkit 环境,但我需要一个图形界面,以便我可以通过创建易受攻击的测试应用程序来测试 Web 浏览器。
非常感谢有关如何建立这种环境的任何想法
I am writing a report on XSHM (Cross-Site History Manipulation). XSHM basically resolves around SOP (Same Origin Policy).
I am trying to perform tests on SOP using virtual environments and using different web browsers.
However, I am struggling to set up VmWare Player machines to listen on different domains, going through my local machine. Basically, I want to fool the browser to think 'machineA.com' is completely different website on different network to 'machineB.com' so I can perform experiments on the 'Same Origin Policy'
My question is any ideas on how this can be achieved. NOTE - I have thought about setting up a netkit environment with different DNS servers but I need a graphical interface so I can test web browsers by creating vulnerable test apps.
Would really appreciate any ideas on how to set up this kind of environment
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将您的 VMWare 计算机设置为使用“桥接”以太网连接,这将为它们提供各自的 IP 地址。
在运行浏览器的计算机上,编辑 /etc/hosts 以映射这些 IP 地址到不同的域。然后您可以使用这些(不同的)域名访问玩家机器。
Set up your VMWare machines to use "bridged" Ethernet connections, which will give them each their own IP address.
On the machine running the browser, edit /etc/hosts to map those IP addresses to different domains. Then you can access the player machines using those (different) domain names.