美文网首页
2018-06-10-不用虚拟机搭建Linux环境

2018-06-10-不用虚拟机搭建Linux环境

作者: 0xC00005 | 来源:发表于2018-06-15 10:40 被阅读0次

    前言

    巨硬春季发布会的时候吹的“原生Windows系统下的unix环境”,结果开发者更新一直没出来,说是什么只10.4.1体验版才有,
    结果昨天在Microsoft Store终于给我找到了,


    妈耶竟然放出来了

    妈耶,本来以为只有什么Ubuntu的支持之类的,结果一看.....



    ubuntu也就算了,kali???
    你这是要泛滥啊【害怕.jpg】

    上kali官网官方的blog找了一下,文章链接在此:Kali Linux in the Windows App Store

    No, really…this isn’t clickbait. For the past few weeks, we’ve been working with the Microsoft WSL team to get Kali Linux introduced into the Microsoft App Store as an official WSL distribution and today we’re happy to announce the availability of the “Kali Linux” Windows application. For Windows 10 users, this means you can simply enable WSL, search for Kali in the Windows store, and install it with a single click. This is especially exciting news for penetration testers and security professionals who have limited toolsets due to enterprise compliance standards.

    While running Kali on Windows has a few drawbacks to running it natively (such as the lack of raw socket support), it does bring in some very interesting possibilities, such as extending your security toolkit to include a whole bunch of command line tools that are present in Kali. We will update our blog with more news and updates regarding the development of this app as it’s released.

    We’d like to take this opportunity to thank the WSL team at Microsoft, and specifically @tara_msft and @benhillis for all the assistance and guidance with which this feat would not be possible. We hope you enjoy WSL’d Kali on Windows 10!

    And now, a quick guide on getting Kali installed from the Microsoft App Store!

    本着不作死就不会死的精神下载了一个,今天就来配置一下。


    Kali Linux in the Windows App Store

    0x01 Getting Kali Linux Installed on WSL

    首先升级你的win10系统,确保安装了最新的【其实只要春季开发者update】更新,点击设置,开启程序员模式备用【万一等会儿kali抽风了你会感谢我的】
    设置->更新与安全->针对开发人员->开发者模式

    接着使用管理员权限运行你的power shell,或者右键Windows徽标然后a,执行命令安装linux模块:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    

    如果不出意外的话电脑应该会重启才是【没有重启?那就抽风了qwq】接下来就可以愉快的安装windows ump了,

    打开Microsoft Store,搜索Linux,应该会找到我上面的两张图,选择其中一个你喜欢的进行安装吧~


    0x02 Updating Kali Linux on WSL

    更新全家桶,请!

    apt-get update
    apt-get dist-upgrade
    

    并没有任何不同啊【官方的blog负责任的如是说】

    Updating Kali Linux on WSL is no different from any other instance of Kali

    偷张ubuntu的图占占位置噗嗤

    0x03 装杀器!

    For installing Penetration Testing tools on Kali,Installing tools from the Kali Linux repository is usually done via apt commands.

    和正常的安装一样,只不过有时候有一些的软件装上去会让kali抽风,打都打不开,

    原因是因为kali其实在Windows系统下创建了一个虚拟的环境,基于windows环境肯定就要服那些杀毒软件的管,打不开的话可以在设置里面设置kali的目录为防病毒异常模式,具体看这个视频:https://vimeo.com/258892544

    快照?

    或者说重置更好一点,把自己系统玩坏了怎么吹,直接开发者模式强恢就ok了,注意:所有的文件都会被删除【官方说了如果出BUG了就格吧嘻嘻嘻】

    or even due to Kali or WSL bugs. If this happens, here is a quick recovery guide to get back on top of things【反正出了bug只管格】
    具体看这个视频:https://vimeo.com/258835347

    桌面环境!

    这个很重要,不同于ubuntu的窗口,有一些kali的程序po出来的文件如果只能cat查看简直就是要命了,
    官方推荐的是xfce4,可以直接local连接,丝滑般流畅~
    首先安装xfce4到kali,


    有一定的几率xfce4会爆炸,删除后重新安装即可,具体可以看官方的blog上面的视频:https://vimeo.com/255052199

    安装完毕之后,$ sudo /etc/init.d/xrdp start,会提供连接的端口:



    图中port=3390就是默认的连接端口,使用本地的远程连接输入:127.0.0.1:33910就可以连接了~


    connet local kali.gif

    后记

    恭喜你,除了无线审计之外的其他工作你都可以在你的unit bash环境上完成了【网卡虚拟化连接的我一直搞不定,官网上没有这个介绍网上也找不到相关的资料qwq】
    但是日常撸撸站破一破hash还是欧克的啦

    推荐阅读:
    Installing PowerShell on Kali Linux
    Kali Linux in the Windows App Store
    都是kali官方的blog,写的都很清楚来着

    最后的最后

    不更新壁纸站,请

    相关文章

      网友评论

          本文标题:2018-06-10-不用虚拟机搭建Linux环境

          本文链接:https://www.haomeiwen.com/subject/hsdceftx.html