brainfucksec / kalitorify

Transparent proxy through Tor for Kali Linux OS
GNU General Public License v3.0
1.04k stars 225 forks source link

WSL2.0 enable to start kalitorify as can't start tor service #55

Closed Quadre closed 3 years ago

Quadre commented 3 years ago

Describe the bug While running latest kalitorify v1.25.0 on Kali [v 2021.1] via Windows WSL2.0 I was not able to start kalitorify as tor service was not detected.

Preconditions

> grep VERSION /etc/os-release
VERSION="2021.1"
VERSION_ID="2021.1"
VERSION_CODENAME="kali-rolling"
> uname -a
Linux host 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 GNU/Linux

Executed Steps

> sudo service tor start
Starting tor daemon...done.
> sudo kalitorify -s
:: Check current status of Tor service
[-] Tor service is not running! exit

> sudo kalitorify -t

 _____     _ _ _           _ ___
|  |  |___| |_| |_ ___ ___|_|  _|_ _
|    -| .'| | |  _| . |  _| |  _| | |
|__|__|__,|_|_|_| |___|_| |_|_| |_  |
                                |___| v1.25.0

=[ Transparent proxy through Tor
=[ brainfucksec

:: Check program settings
==> Reload systemd daemons
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

:: Starting Transparent Proxy
==> Configure DNS to use Tor's DNSPort
==> Disable IPv6 with sysctl
==> Start Tor service
[ERROR] can't start tor service, exit!

Please advice

LulzRose commented 3 years ago

Bumping as I have the same issue same setup. Tor runs fine and can be started as a service on its own with sudo service tor start.

brainfucksec commented 3 years ago

Thanks for the report @Quadre, from what I know, systemd is not fully supported on WSL, please read here:

https://kumekay.com/wsl2-and-systemd/

I believe that the best thing is to install Kali in virtual machine.