-
Executes calc.exe from wsl.exe
wsl.exe -e /mnt/c/Windows/System32/calc.exe
- Use case
- Performs execution of specified file, can be used to execute arbitrary Linux commands.
- Privileges required
- User
- Operating systems
- Windows 10, Windows 19 Server
- ATT&CK® technique
- T1202
-
Cats /etc/shadow file as root
wsl.exe -u root -e cat /etc/shadow
- Use case
- Performs execution of arbitrary Linux commands as root without need for password.
- Privileges required
- User
- Operating systems
- Windows 10, Windows 19 Server
- ATT&CK® technique
- T1202
-
Cats /etc/shadow file as root
wsl.exe --exec bash -c 'cat file'
- Use case
- Performs execution of arbitrary Linux commands.
- Privileges required
- User
- Operating systems
- Windows 10, Windows 19 Server
- ATT&CK® technique
- T1202
-
Execute the command as root
wsl.exe --system calc.exe
- Use case
- Performs execution of arbitrary Linux commands as root without need for password.
- Privileges required
- User
- Operating systems
- Windows 11
- ATT&CK® technique
- T1202