[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fnVTFXG7saUKIJX9OwPB8lyqspjFN4B-QNbdIQ0WaYtY":3},{"id":4,"question":5,"answer":6,"answerHtml":7,"slug":8,"keywords":9,"article":10,"status":33,"aiModel":30,"aiConfidence":30,"updatedAt":49,"createdAt":49,"_status":48},931,"What steps are needed to install and configure a Kali Linux subsystem on Windows 11 on the OnePlus 6T?","Enable the Linux subsystem in PowerShell with `Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux`, then install Kali from the Microsoft Store. Set WSL version to 1 using `wsl --set-default-version 1` to avoid error 0x80370102. Configure the root user and password via `kali config --default-user root` and `kali passwd root`. Update sources (optionally use Aliyun mirror), install `kali-desktop-xfce` and `xrdp`, then connect via Remote Desktop on port 3390. For GUI issues like missing terminal, install `xfce4-terminal` and set it as default. Similar environment setups are covered in [F5 BIG-IP Vulnerability Debugging Environment Setup](\u002Fnews\u002Ff5-big-ip-vulnerability-debugging-environment-setup).","\u003Cp>Enable the Linux subsystem in PowerShell with `Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux`, then install Kali from the Microsoft Store. Set WSL version to 1 using `wsl --set-default-version 1` to avoid error 0x80370102. Configure the root user and password via `kali config --default-user root` and `kali passwd root`. Update sources (optionally use Aliyun mirror), install `kali-desktop-xfce` and `xrdp`, then connect via Remote Desktop on port 3390. For GUI issues like missing terminal, install `xfce4-terminal` and set it as default. Similar environment setups are covered in [F5 BIG-IP Vulnerability Debugging Environment Setup](\u002Fnews\u002Ff5-big-ip-vulnerability-debugging-environment-setup).\u003C\u002Fp>\u003Cp>\u003Ca href=\"\u002Fnews\u002Fandroid-penetration-platform-setup-3-two-methods-to-install-kali-on-oneplus-6t\">Read the related One Day Sec article\u003C\u002Fa>\u003C\u002Fp>","what-steps-are-needed-to-install-and-configure-a-kali-linux-subsystem-on-windows-1777481253045","WSL, Kali Linux, Windows 11, xrdp, Xfce, Remote Desktop",{"id":11,"title":12,"slug":13,"description":14,"content":15,"contentHtml":27,"cover":30,"author":31,"views":19,"readingTime":32,"status":33,"publishedAt":34,"seo":35,"tags":39,"qaPairs":40,"meta":45,"updatedAt":46,"createdAt":47,"_status":48},226,"Android Penetration Platform Setup 3 – Two Methods to Install Kali on OnePlus 6T","android-penetration-platform-setup-3-two-methods-to-install-kali-on-oneplus-6t","Step-by-step guide to install Kali on OnePlus 6T via NetHunter for Android and Linux subsystem on Win11 for penetration testing.",{"root":16},{"type":17,"format":18,"indent":19,"version":20,"children":21,"direction":29},"root","",0,1,[22],{"type":23,"format":18,"indent":19,"version":20,"children":24,"direction":29},"paragraph",[25],{"mode":26,"text":27,"type":28,"style":18,"detail":19,"format":19,"version":20},"normal","\u003Chtml>\u003Chead>\u003C\u002Fhead>\u003Cbody>\u003Ch2>0x00 Preface\u003C\u002Fh2>\u003Cp>---\u003C\u002Fp>\u003Cp>The third article in the series on setting up an Android penetration platform, introducing two methods to install Kali on the Android device OnePlus 6T, documenting the details.\u003C\u002Fp>\u003Cp>Method 1: Installing Kali NetHunter (2022.1) on the Android System\u003C\u002Fp>\u003Cp>Method 2: Installing the Linux Subsystem kali-linux on Win11 System\u003C\u002Fp>\u003Cp>Test Device: OnePlus 6T 10GB+256GB McLaren Edition\u003C\u002Fp>\u003Cp>Test Device System: Android 11 + Win11\u003C\u002Fp>\u003Ch2>0x01 Introduction\u003C\u002Fh2>\u003Cp>---\u003C\u002Fp>\u003Cp>This article will cover the following:\u003C\u002Fp>\u003Cul>\u003Cli>Installing Kali NetHunter (2022.1) on the Android System\u003C\u002Fli>\u003Cli>Installing the Linux Subsystem kali-linux on Win11 System\u003C\u002Fli>\u003C\u002Ful>\u003Ch2>0x02 Installing Kali NetHunter (2022.1) on the Android System\u003C\u002Fh2>\u003Cp>---\u003C\u002Fp>\u003Cp>The process can refer to the previous article 'Building an Android Penetration Platform - Installing Kali NetHunter on Nexus6P (2022.1)'\u003C\u002Fp>\u003Cp>Method to switch from Win11 to Android:\u003C\u002Fp>\u003Cp>Press Volume+ during boot, select UEFI BootMenu, then choose Reboot to other slot\u003C\u002Fp>\u003Ch3>1. Download files\u003C\u002Fh3>\u003Cp>(1) Kali NetHunter\u003C\u002Fp>\u003Cp>Requires Android version 10 or Android version 11\u003C\u002Fp>\u003Cp>Download link for OnePlus6T Android 11: https:\u002F\u002Fkali.download\u002Fnethunter-images\u002Fkali-2022.1\u002Fnethunter-2022.1-oneplus6-oos-eleven-kalifs-full.zip\u003C\u002Fp>\u003Cp>Download link for OnePlus6T Android 10: https:\u002F\u002Fkali.download\u002Fnethunter-images\u002Fkali-2022.1\u002Fnethunter-2022.1-oneplus6-oos-ten-kalifs-full.zip\u003C\u002Fp>\u003Cp>(2) Magisk\u003C\u002Fp>\u003Cp>Download page: https:\u002F\u002Fgithub.com\u002Ftopjohnwu\u002FMagisk\u003C\u002Fp>\u003Cp>Select Magisk-v21.4.zip here, download link: https:\u002F\u002Fgithub.com\u002Ftopjohnwu\u002FMagisk\u002Freleases\u002Fdownload\u002Fv21.4\u002FMagisk-v21.4.zip\u003C\u002Fp>\u003Cp>(3) TWRP\u003C\u002Fp>\u003Cp>Download page: https:\u002F\u002Ftwrp.me\u002Foneplus\u002Foneplus6t.html\u003C\u002Fp>\u003Cp>Download link:\u003C\u002Fp>\u003Cp>https:\u002F\u002Fdl.twrp.me\u002Ffajita\u002Ftwrp-3.6.1_9-0-fajita.img\u003C\u002Fp>\u003Cp>https:\u002F\u002Fdl.twrp.me\u002Ffajita\u002Ftwrp-installer-3.6.1_9-0-fajita.zip\u003C\u002Fp>\u003Cp>Download the files twrp-3.6.1_9-0-fajita.img and twrp-installer-3.6.1_9-0-fajita.zip\u003C\u002Fp>\u003Cp>twrp-3.6.1_9-0-fajita.img is used to boot TWRP via fastboot, while twrp-installer-3.6.1_9-0-fajita.zip is used for permanent installation of TWRP\u003C\u002Fp>\u003Ch3>2. Install Kali NetHunter\u003C\u002Fh3>\u003Cp>(1) Enter Recovery Mode\u003C\u002Fp>\u003Cp>While the device is powered on, hold the power button, select Recovery Mode, and enter Recovery Mode\u003C\u002Fp>\u003Cp>On the TWRP screen, select Install. For my OnePlus 6T running Android 11, choose nethunter-2022.1-oneplus6-oos-eleven-kalifs-full.zip\u003C\u002Fp>\u003Cp>Deselect 'Reboot after installation is complete' to avoid automatic reboot after installation\u003C\u002Fp>\u003Cp>After a long wait, the installation is successful\u003C\u002Fp>\u003Cp>Install Magisk-v21.4.zip\u003C\u002Fp>\u003Cp>On the TWRP screen, select Install, then choose Magisk-v21.4.zip\u003C\u002Fp>\u003Cp>After successful installation, select Reboot System\u003C\u002Fp>\u003Cp>At this point, Kali NetHunter installation is complete\u003C\u002Fp>\u003Cp>In the app list, you can see the newly installed NetHunter, NetHunter Terminal, and NetHunterKeX\u003C\u002Fp>\u003Ch2>0x03 Install Kali Linux Subsystem on Windows 11\u003C\u002Fh2>\u003Cp>---\u003C\u002Fp>\u003Cp>Method to switch from Android to Win11:\u003C\u002Fp>\u003Cp>Enter Recovery mode, in TWRP, select Reboot -&gt; SlotB\u003C\u002Fp>\u003Cp>After entering the Win11 system, you can choose to search for kali in the Microsoft Store for installation. The specific process is as follows:\u003C\u002Fp>\u003Ch3>1. Enable the Linux subsystem\u003C\u002Fh3>\u003Cp>Powershell:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>After installation, it will prompt to restart the operating system\u003C\u002Fp>\u003Ch3>2. Search for kali in the Microsoft Store and install it\u003C\u002Fh3>\u003Cp>Directly starting kali after installation will report error 0x80370102. Here, you need to manually set the wsl version to 1\u003C\u002Fp>\u003Cp>wsl commands can be referred to: https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fwindows\u002Fwsl\u002Fbasic-commands\u003C\u002Fp>\u003Ch3>3. Set wsl version to 1\u003C\u002Fh3>\u003Cp>The command is as follows:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>wsl --set-default-version 1\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>The command to view installed systems is as follows:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>wsl --list --verbose\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>The result shows kali-linux\u003C\u002Fp>\u003Ch3>4. Configure Kali default login user\u003C\u002Fh3>\u003Cp>The command to set the default login user as root is as follows:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>kali config --default-user root\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>Configure root user password, the command is as follows:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>kali\u003Cbr>passwd root\u003Cbr>toor\u003Cbr>toor\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Ch3>5. Update kali\u003C\u002Fh3>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo apt update &amp;&amp; sudo apt upgrade -y\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>If unable to update, you can change to a domestic source\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo vi \u002Fetc\u002Fapt\u002Fsources.list\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>Add:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>deb http:\u002F\u002Fmirrors.aliyun.com\u002Fkali kali-rolling main non-free contrib\u003Cbr>deb-src http:\u002F\u002Fmirrors.aliyun.com\u002Fkali kali-rolling main non-free contrib\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Ch3>6. Install Kali GUI\u003C\u002Fh3>\u003Cp>Local Windows 11 can connect to Kali via Remote Desktop\u003C\u002Fp>\u003Cp>First, enter kali in the command line to access the Kali console\u003C\u002Fp>\u003Cp>(1) Install kali-desktop-xfce\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo apt install kali-desktop-xfce -y\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>(2) Install xrdp\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo apt install xrdp -y\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>(3) Change port to 3390\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sed -i 's\u002Fport=3389\u002Fport=3390\u002Fg' \u002Fetc\u002Fxrdp\u002Fxrdp.ini\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>(4) Start service\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo service xrdp start\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>(5) Connect to remote desktop\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>mstsc\u003Cbr>127.0.0.1:3390\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Ch4>Note: Frequently Asked Questions\u003C\u002Fh4>\u003Cp>(1) Adjusting Kali resolution\u003C\u002Fp>\u003Cp>In Kali, navigate sequentially to Settings -&gt; Appearance -&gt; Settings -&gt; Window Scaling, change it to 2x\u003C\u002Fp>\u003Cp>(2) Unable to open the command line terminal, error message: Failed to execute default Terminal Emulator. Input\u002Foutput error.\u003C\u002Fp>\u003Cp>First install the Xfce terminal:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo apt install xfce4-terminal\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>In Kali, navigate sequentially to Settings -&gt; Settings Manager -&gt; Default Applications -&gt; Utilities, set Terminal Emulator to Xfce Terminal\u003C\u002Fp>\u003Cp>(3) Reconnecting to Kali remote desktop after Win11 restart\u003C\u002Fp>\u003Cp>First, start the xrdp service:\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo service xrdp restart\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>(4) Restarting Win11 Linux subsystem\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>net stop LxssManager\u003Cbr>net start LxssManager\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>(5) Installing msfconsole\u003C\u002Fp>\u003Ctable>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Cp>sudo apt install metasploit-framework\u003C\u002Fp>\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003Cp>(6) Start msfconsole\u003C\u002Fp>\u003Cp>Need to add exclusion directory in Windows Defender: \\\\wsl.localhost\\kali-linux\u003C\u002Fp>\u003Ch2>0x04 Summary\u003C\u002Fh2>\u003Cp>---\u003C\u002Fp>\u003Cp>This article introduces two methods for installing Kali on the Android device OnePlus6T. Devices with Snapdragon 845 processors can choose to install Win11 first and then Kali, while other Android devices can opt to install Kali NetHunter.\u003C\u002Fp>\u003C\u002Fbody>\u003C\u002Fhtml>","text","ltr",null,"Onedaysec",4,"published","2026-02-02T07:25:20.011Z",{"title":36,"description":14,"keywords":37,"ogImage":30,"canonicalUrl":30,"noIndex":38},"Install Kali on OnePlus 6T: NetHunter & Win11 Linux Subsystem Guide","Kali NetHunter, OnePlus 6T, Android penetration, Win11 Linux subsystem, Kali Linux installation, mobile security testing",false,[],{"docs":41,"hasNextPage":38},[42,4,43,44],932,930,929,{"title":30,"description":30,"image":30},"2026-07-24T02:07:16.933Z","2026-07-23T16:02:17.879Z","draft","2026-07-23T16:15:37.467Z"]