Can we connect USB WiFi adapter to WSL2 for WiFi Hacking? || Networking in WSL2

Поделиться
HTML-код
  • Опубликовано: 25 сен 2020
  • WSL2 uses HyperV for managing the WSL networking. In this video we have made the full use of this tool. I have elaborated the following 3 things.
    1. How to give WSL2 an independent IP address from the router?
    2. Can we use USB WiFi adapter with WSL2 for WiFi Hacking?
    3. How to enable internet connectivity in WSL2
    Commands used in this video:
    sudo ip addr flush dev eth0
    sudo dhclient eth0
    #KaliLinuxTutorials
    #WSL2Networking
    #HyperV_and_WSL2

Комментарии • 47

  • @topnotchgamer4167
    @topnotchgamer4167 2 года назад +1

    Thanks a lot, sir. I was searching for this tutorial last two days... I can't Thanks you enough... Keep going brother... love from Bangladesh...

  • @ratchethoocker3429
    @ratchethoocker3429 2 года назад

    wow this solved everything THANK YOU SOO MUCH

  • @mobirise6699
    @mobirise6699 3 года назад +1

    Cool! its working 100%

  • @SCHaworth
    @SCHaworth 2 года назад +4

    I wanted to use WSL2 as a router (with my USB 3.0 WIFI) this still answered that question.
    ****EDIT: meaning as a bridge, which windows can't.

    • @GestSuporte
      @GestSuporte 10 месяцев назад

      why windows can't do bridge ? ;)

  • @ebs2883
    @ebs2883 3 года назад +2

    This is exactly what I needed

  • @blixerblacking4211
    @blixerblacking4211 Год назад

    thank you!

  • @mohammadhout1015
    @mohammadhout1015 Год назад

    Hello, I have Kali installed on Win10 pro via WSL2. I have the PC connected to internet via ethernet which in turn shares the internet connection in Kali as you described in the video as Eth0 but the wifi adapter is not detected. In my virtual switch manager, I have the default switch and the WSL internet only switch set to my PC ethernet adapter as internal. Can I create a new switch for my USB wifi adapter and set it to external so that I have both eth0 and wlan0 in my kali linux at same time?

  • @muhammadnashirakrom2935
    @muhammadnashirakrom2935 3 года назад +1

    Oalah WSL2 cannot use airgeddon, fluxion, wifite, wifiphiser and etc, oke nice video and info. Thank you.

  • @mpb9659
    @mpb9659 3 года назад

    nice

  • @janardansalunkhe7619
    @janardansalunkhe7619 3 года назад +1

    Good

  • @Praxss
    @Praxss 3 года назад +2

    Can you tell which power adaptor should use for raspberry pi 4 others than official?

  • @arashsingh3409
    @arashsingh3409 3 года назад +2

    Bro mine is not working keeps saying temporary error occurred when going in internet

  • @rans7614
    @rans7614 2 года назад

    i cant ge the hyper- not available in my system iam using Dell g3
    from cmos visulization is enable, control panel > windows feature - not available
    any suggestion ??

  • @bernisworlds
    @bernisworlds Год назад

    yes but with this workaround you cannot make your own hotspot correct?

  • @nalexl3779
    @nalexl3779 Год назад +1

    i get error when i apply setting in hyper-v

  • @RG-di7ef
    @RG-di7ef 3 года назад +19

    This Doesnt answer the question posed in the title of the video.
    At all.
    Cheap clickbait

  • @JayLoEatsChildren
    @JayLoEatsChildren 2 года назад +2

    So, the unswer is NO, we can't connet WiFi adapter to WSL2 for WiFi hacking.

  • @fariham.farook1987
    @fariham.farook1987 3 года назад +4

    try using the aircrack-ng in eth0

  • @TheNikakz
    @TheNikakz 2 года назад

    Hello, I follow all the steps, but when I type sudo dhclient eth0, it takes a long time and returns a ping with 100% loss and when I do an ifconfig ip does not appear on my eth0, I don't know how to make the internet work on wsl 2 using kali, could you help me? Everything works fine until you get to dhclient and it doesn't work.

    • @sajalpoudel6977
      @sajalpoudel6977 5 месяцев назад

      go back to hyperV and change the external network and hit ok

  • @zec_s
    @zec_s Год назад

    How do I get wlan0 in Ifconfig

  • @LukasSkywalker_
    @LukasSkywalker_ 3 года назад +11

    Does not work (kinda).
    You can connect using the wifi stick but is not recognized as wifi adapter. So no monitor mode to use aircrack for example.

    • @benaya6
      @benaya6 2 года назад +2

      Is there any way arround that? probably not,but just verifying before finally moving to Linux 🤐

  • @Inv4d3rSum0
    @Inv4d3rSum0 Год назад

    What about wsl2???????

  • @FS0ci3ty
    @FS0ci3ty 10 месяцев назад

    sir, my device is not showing

  • @SALVATOR69
    @SALVATOR69 Год назад

    i don't see WSL 1:05

  • @Kirmo13
    @Kirmo13 Год назад

    doesn't work on my win11 machine: I don't have the Hyper-V Manager app

  • @steganography4288
    @steganography4288 3 года назад

    doesnt work

  • @jarisipilainen3875
    @jarisipilainen3875 3 года назад

    if you have wifi and not ethernet connected(on install). sure it should work as default,but will airmon works lol. you not need wifi if have ethernet lol.only for hacking lol

  • @rafa_br34
    @rafa_br34 2 года назад

    wifi hacking? how if airmon dosen't give a fuck for eth0?

  • @HckrTeam
    @HckrTeam 3 года назад

    Sorry but no I was really believe in this now I'm gonna clean wsl2 shit and go with vm

    • @benaya6
      @benaya6 2 года назад

      @Ahmed Mahran you probably cant't. not until microsoft will enable using the host hardware...and this issue esists at least 5 years, without any solution, so I wouldn't count on it.

    • @benaya6
      @benaya6 2 года назад

      @Ahmed Mahran sure! I am probably going to drop wsl2 for linux myself...to much time spent debugging it

    • @josemembreno4996
      @josemembreno4996 2 года назад

      @Ahmed Mahran
      USB SUPPORT:
      docs.microsoft.com/en-us/windows/wsl/connect-usb

  • @enoughwithbeginner3566
    @enoughwithbeginner3566 2 года назад

    not successful at "sudo dhclient eth0" when i ping google.com i get "ping: socket: Operation not permitted" and then i get no internet connection anymore.....any one can help me please???

    • @TheNikakz
      @TheNikakz 2 года назад

      You solved? I have same problem

    • @sr11hari
      @sr11hari Год назад

      Me too have the same issue

    • @FS0ci3ty
      @FS0ci3ty 10 месяцев назад

      same issue, how did you solve it ?

  • @bluntenminors1497
    @bluntenminors1497 2 года назад +2

    Hello, I have Kali installed on Win10 pro via WSL2. I have the PC connected to internet via ethernet which in turn shares the internet connection in Kali as you described in the video as Eth0 but the wifi adapter is not detected. In my virtual switch manager, I have the default switch and the WSL internet only switch set to my PC ethernet adapter as internal. Can I create a new switch for my USB wifi adapter and set it to external so that I have both eth0 and wlan0 in my kali linux at same time?

    • @Inv4d3rSum0
      @Inv4d3rSum0 Год назад

      You should try installing a Kali Linux iso onto a USB with persistence, then figure out how to connect the adapter to your live iso with drivers and allot... Main thing you need is drivers downloaded then most tutorials will work