Kioptrix Level 1靶机检测不到IP地址 (determine ip info for eth0 failed)
背景介绍
我是一枚纯小白,艰难的自学OSCP中。。。今天跟着INE的视频启动 Kioptrix Level 1靶机后 发现用netdiscover 和nmap都扫不出靶机IP。
失败的尝试
开始搜怎么回事这是,找到了这样两篇类似帖子:
https://blog.****.net/qq_41918771/article/details/103636890
https://blog.****.net/qq_40510246/article/details/103130819
尝试之后靶机并没有任何反应,猜测应该是靶机不一样所以进不去文中所说的模式。但是第一篇文章说的“一闪而过的爆红错误” 引起了我的注意。我也是类似的情况:
但是我还是不知道怎么办,进入一下午的抓狂模式:重启–没用–起来走两圈–重启–没用–起来吃点啥–重启…
我是怎么开窍了呢
按住一下午的抓狂模式不表,我突然某个瞬间想起来我没搜英文结果,尝试了一下搜到如下网站:https://www.reddit.com/r/netsecstudents/comments/a54l39/kioptrix_vm_set_up_issues/
其中第一个回答看起来挺靠谱:
LurkingBlondy says:
“Hey I was running into this issue as well, but I fixed it today!
Edit the VMX configuration file with Notepad. Search for “bridged” and replace that with “nat”. Oddly enough, I left the “bridged” text at the very bottom with this:
ethernet0.connectionType = “bridged”
But changed the instance of “bridged” everywhere else to NAT. If you try that and it doesn’t work, I would just change everything to NAT and see if that works. Also the VM settings will default to Bridged the first time you boot it up, so you will have to change that to NAT also.
After all of that I was able to netdiscover an IP for the machine. Try it out and let me know if you have the same results!”
大致翻译一下就是:编辑VMX configuration file文件,把里头的bridged换成nat,但保留最后一个bridged。试一下好使不,不好使把最后一个bridged也改成nat.
不是小白到这里问题应该就解决了不用往下看了。
但问题是我是小白啊,这个VMX文件是啥啊,我也没notepad啊,我咋编辑啊?在绝望的尝试点点点后我发现,图中四个文件选中后单击右键有这么一个选项“open with Sublime Text”
点击试了一下,哇塞真有代码。就把五个文件全打开了一遍看看哪个有 “bridged"。 (PS:Sublime Text是之前学Python时下载的软件,好像是个编译器。)最后在图中第四个文件里找到了含Bridged的代码,Sublime Text打开确实显示vmx后缀,这个文件一点击就能启动虚拟机,我就按.exe来理解了。
一共找到了两处bridged:
把第一个Bridged改成Nat, 保存,重启,well done!
终于有IP地址了啊啊啊啊啊啊!!!
转载请注明出处