-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b69cba2
commit 28ce179
Showing
9 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Function eapcheck { | ||
$keyPath = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Sophos\Management\Policy\ThreatProtection\*\amsi_protection" | ||
$keyVal = "amsi_protection_block_on_detect" | ||
$check = Get-ItemProperty -Path $keyPath | Select $keyVal | ||
write-host $newCheck.$keyVal | ||
if($check.$keyVal -eq 0) { | ||
schtasks /delete /tn "POC EAP Watcher" /F | ||
Restart-Computer -force | ||
} | ||
} | ||
eapcheck |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
schtasks /create /sc onlogon /tn "POC Stage 3" /tr "c:\threat\poc-stage3.bat" /ru Sophos /F | ||
Start-Process c:\threat\SophosSetup.exe --quiet -Wait | ||
schtasks /delete /tn "POC Stage 2" /F | ||
schtasks /create /sc minute /mo 1 /tn "POC EAP Watcher" /tr "C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe -ExecutionPolicy Bypass c:\threat\poc-eap_watcher.ps1" /ru System /F |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
start "" /B "C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE" | ||
taskkill /im outlook.exe /f | ||
"C:\Program Files\Python310\python.exe" -m pip install -r c:\threat\requirements.txt | ||
"C:\Program Files\Python310\python.exe" c:\threat\{|vars.PythonStager|} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ pywinauto==0.6.8 | |
pywinauto-recorder==0.5.0 | ||
six==1.16.0 | ||
uiautomation==2.0.16 | ||
WMI==1.5.1 | ||
WMI==1.5.1 |