Friday, April 10, 2020

Installing and Configuring Kali Linux on Windows10 (Full walkthough)

In today's Hacker's Arsenal video,  We build a fully operational install of Kali on Windows10. I have been running this configuration for the past month, and it is a much better solution than dual booting or virtualized OS.

Look, I know I get it.  I am a linux guy at heart too. But doing it this way brings the best capabilities of both Linux and Windows....for us to build our future arsenal.



    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Hacker\'s Arsenal" 
Episode 0x00 -- Kali on Windows10 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Steps]

  • Open PowerShell window (Make sure to Run as Administrator) and paste the following command:
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Reboot the Windows Machine.
  • Go to the Microsoft Store and search for: Kali (direct link here
  • Under "Virus  & threat protection", click Manage Settings and disable "Real-Time protection." If you are running a different Anti-Virus solution, temporarily disable it via its configuration options. This is needed because the following commands will download Kali's packaged exploits and shell-code -- Any running Anti-Virus will cause these steps to fail, and will cause you problems down the line.  We will be re-enabling the AV at the end.
  • Click start, and then launch the kali application
    • You will need to let it finish installing, and create a linux user account
After it has completed installing, the following commands need to be run from the Kali terminal:
  • sudo apt update && sudo apt dist-upgrade -y
  • sudo apt install kali-desktop-xfce xrdp kali-community-wallpapers -y
  • sudo apt install python3 -y 
  • sudo apt install kali-linux-default -y
  • sudo nano /etc/xrdp/xrdp.ini
    •  change to port 23000
  • sudo /etc/init.d/xrdp start (or if you always want it running: sudo systemctl enable xrdp)
At this point you can connect to your Kali desktop, by running the Windows Remote Desktop Connection client.  Connect to: localhost:23000

If you have problems launching applications (like terminal) you need to run the following command from the kali windows application terminal window: (if you don't have any issues, there is no reason to run this)
  • sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
After everything is done, 
  • Add Windows Defender exception for Kali folder (search your computer for the KaliLinux folder located in your AppData\Local\Packages folder. (watch the video if you need help with that)
  • Go back and Re-Enable Windows Defender


[Links]
https://www.microsoft.com/store/productId/9PKR34TNCV07  (Kali in Windows Store)
https://tools.kali.org/kali-metapackages (Kali Meta Packages for research)

No comments:

Post a Comment

HackersArsenal 0x01 - AMASS - Automated SubDomain Enumeration and Reconnaissance (Full walk-though)

Today on Hacker's Arsenal, We explore a tool that automates reconnaissance for us find interesting assets like servers, web applications...