-
-
Save unablem/0ebf22e0cebae3245ba16875e7cf6af9 to your computer and use it in GitHub Desktop.
Installing Kali-Xfce on WSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =| Kali Linux on Win 10 |= | |
| [First Install] | |
| sudo cat /etc/issue | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade (y) | |
| sudo apt-get install webshells [you may need to allow access via defender / smartscreen] | |
| sudo apt-get clean | |
| sudo apt-get install webshells [re-do if first time blocked by defender / smartscreen] | |
| ls -l /usr/share/webshells/ | |
| sudo wget https://kali.sh/xfce4.sh | |
| sudo cat xfce4.sh | |
| sudo sh xfce4.sh | |
| sudo /etc/init.d/xrdp start | |
| sudo /etc/init.d/xrdp stop (ogni qualvolta non si dovrà utilizzare la GUI di Kali Linux) | |
| # Upgrade OS | |
| sudo apt-get update -y && apt-get upgrade -y | |
| sudo apt-get dist-upgrade -y | |
| sudo apt-get install xrdp lxde-core lxde tigervnc-standalone-server -y | |
| sudo update-alternatives --config x-session-manager | |
| # choose xfce4-session | |
| # edit xrdp.ini | |
| sudo nano /etc/xrdp/xrdp.ini | |
| autorun=sesman-any | |
| max_bpp=16 | |
| [sesman-any] | |
| ip=127.0.0.1 | |
| # changed username and password to the kali user | |
| # Mod access permission | |
| sudo nano /etc/X11/Xwrapper.config | |
| allowed_users=anybody | |
| # edit sesman.ini | |
| sudo nano /etc/xrdp/sesman.ini | |
| [Globals] | |
| ListenAddress=127.0.0.1 | |
| ListenPort=3390 | |
| EnableUserWindowManager=true | |
| UserWindowManager=startwm.sh | |
| DefaultWindowManager=startwm.sh | |
| # start services | |
| sudo service xrdp start | |
| sudo service xrdp-sesman start | |
| # conf services | |
| sudo update-rc.d xrdp enable | |
| sudo systemctl enable xrdp-sesman.service | |
| [First GUI Start] | |
| Open terminal | |
| sudo cat /etc/issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment