Kali Linux in WSL2

Sdílet
Vložit
  • čas přidán 12. 06. 2024
  • The Windows Subsystem for Linux or WSL2 allows you to run full Linux distributions under Windows. We will install Kali Linux in wsl2 and have a look at some options. Kex is using TigerVNC and is a nice solution, but there is an easier and more transparent way of using X11 apps in WSL2. In the video we will just launch the xfce4 panel inside WSL2 and show it on the Windows desktop. We will use the Hyper-V console to create a virtual switch and map it to the WSL2 container using the .wslconfig file. I'll explain the X11 integration with Wayland, Weston, WSLG, FreeRDP and MSTSC. #kalilinux #wsl2
    MANY THANKS TO ALL MY PATRONS on / onemarcfifty !!!
    @OffSecTraining YT channel here: / offensivesecuritytraining
    @TCMSecurityAcademy Training video is here: • Ethical Hacking in 12 ...
    The WSLG Github: github.com/microsoft/wslg
    The issue #4150 on Microsoft's WSL2 Github: github.com/microsoft/WSL/issu...
    Link to the WSL2 preview store page: aka.ms/wslstorepage
    #########################
    Chapters:
    0:00 Setting the scene
    1:45 Installing WSL2
    3:30 Networking in WSL2
    6:30 WSL2 preview Version on Windows 11
    8:45 Integrating WSL2 into the Windows Desktop
    9:35 WSLG
    11:20 running the xfce4 panel over X11
    #########################
    KALI LINUX (TM) is a trademark of Offensive Security. The original Kali Dragon is a Trademark of Offensive Security (www.kali.org) and is used with friendly permission of kali.org and Offensive Security
    Please visit my channel page: / onemarcfifty
    Want to talk to me? Join my Discord Server: / discord
    Shopping on Amazon ? Please bookmark my affiliate link www.amazon.com/?tag=onemarcfi...
    Marc on Patreon: / onemarcfifty
    Marc's channel on youtube: / onemarcfifty
    Marc on Twitter: / onemarcfifty
    Marc on Facebook: / onemarcfifty
    Marc on Reddit: / onemarcfifty
    Chat with me on Discord: / discord
  • Věda a technologie

Komentáře • 34

  • @matrix9164
    @matrix9164 Před rokem +4

    Hi Marc. Thx for all your great videos. The way you explain anything is wonderful. Keep going :)

  • @theblowupdollsmusic
    @theblowupdollsmusic Před rokem +2

    Nice setup! Love the idea of just the kali bar at the top. Thank you for sharing!

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hi Matt, many thanks for watching and commenting ;-)

  • @kabirsaid9627
    @kabirsaid9627 Před rokem +1

    This is massive wow! thank you so much

  • @dannyaustin84
    @dannyaustin84 Před rokem +1

    Lovely advice on leaning resources.. I like that you called out the wifi hacking videos. haha

  • @nightfox9007
    @nightfox9007 Před rokem +1

    Amazing
    well done!!!

  • @GeorgeValkov
    @GeorgeValkov Před rokem +2

    I use Windows 11 on my 11 years old computer (i7 930) with ancient BIOS before the UEFI age. The trick was to start setup under Hyper-V. After the second reboot, use bcdedit on the host and set it to boot from the virtual disk. The out-of box experience starts on the host. If a virtual disk is not desired, clone the install partition to a physical disk, then edit the registry on the guest: HKLM\guest-SYSTEM\MountedDevices, \DosDevices\C: should use the binary numbers, which the host sees under HKLM\SYSTEM\MountedDevices for the same partition.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Wow - without UEFI - many thanks for sharing ;-)

  • @eugrus
    @eugrus Před rokem +1

    8:22 to mention that CPU support for nested virtualization is needed for that

  • @0_1_2
    @0_1_2 Před rokem +1

    You’re the man

  • @sarkybugger5009
    @sarkybugger5009 Před rokem +1

    Of zero use to me, as I only run Linux, but I'm going to watch it anyway, to see how windows users suffer. 😁
    (And to give Marc another view/comment/thumb up!) I appreciate your videos muchly.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Thanks a lot mate :-) appreciate your comment and commitment;-) In fact, you are right - there might be a lot of suffering on the Windows user side - nevertheless things are getting better and I do actually think that WSL2 can help users who only have Windows on the laptop to start getting to grips with Linux - which is a good thing ;-) Many thanks for watching and liking !!!

  • @twincitiespcmd
    @twincitiespcmd Před rokem +1

    Great content! If I already have Ubuntu installed can I still install Kali under WSL2, Marc?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Hi Matt, yes you can. You can (in theory) install as many distributions in parallel as you want.

  • @ShadowStormlq5mwdasd
    @ShadowStormlq5mwdasd Před rokem +1

    Thank you for your videos, interesting how to connect usb to wsl2 kali linux?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      That's a really good question. I don't really have an answer for this, given the architecture behind it might proof difficult to do. You would probably need some USB-over-the network add on to do that.

  • @ernstoud
    @ernstoud Před rokem +1

    On Windows 10 the application X410 works great to get Linux WSL2 GUI Applications working. It is paid for software though.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Many thanks for sharing Ernst! I’ll have a look at that!

  • @fb64578
    @fb64578 Před rokem +2

    Would need you advise. In the windows 11, the 'kex' command (kali prompt) does not start the service on tigerVNC due to "unable to connect to socket: Connection refused(10061)." Is there issues with the packages ? pls advise.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Maybe related to this: github.com/microsoft/WSL/discussions/6675

  • @eyesoffloraandfauna8728
    @eyesoffloraandfauna8728 Před 7 měsíci

    Kali gui terminal get hang many time when I run command during pentesting cloud .. any solution.. I update & upgrade
    Next thing parrot os in VMware was connecting to Internet but stop connecting to net so I use WiFi adapter then after it automatically show connection to net 😅 ..

  • @eugrus
    @eugrus Před rokem +1

    To my knowledge nmap didn't work under WSL1. Is it now different with WSL2?

    • @OneMarcFifty
      @OneMarcFifty  Před rokem

      Hi Evgeny, it should work under Windows 11. Not sure about Windows 10.

  • @edwardmacnab354
    @edwardmacnab354 Před rokem +1

    Personally I would have attempted that on windows home version so that the question would not be just hanging there.

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Hi Edward, I do not have a Windows Home version so could not try it - sorry about that.

    • @edwardmacnab354
      @edwardmacnab354 Před rokem

      @@OneMarcFifty apparently there is a powershell script running around the internet that will enable hyper-v in windows 10 home. I am not advanced enough to hazard trying it. Have you heard of this ? and , does it work ?? You must know people who could answer this.I've seen the script and even copy pasted it but did not deploy it. Too chicken. Virus total says that it is what it says it is . Home version as is , will not allow hyper v. I am not a big fan of Microsoft.

  • @yousaf.saleem
    @yousaf.saleem Před rokem +2

    This episode is not updated on dicord channel

    • @OneMarcFifty
      @OneMarcFifty  Před rokem +1

      Many thanks Yousaf, doing that now - I need a bot for that ;-)