You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BadPS.ps1
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
# features will be added later. This project is meant for development
7
7
# and education purposes only.
8
8
# AUTHOR: InfoSecREDD
9
-
# Version: 2.3.6
9
+
# Version: 2.3.7
10
10
# Target: Windows
11
-
$version="2.3.6"
11
+
$version="2.3.7"
12
12
$source=@"
13
13
using System;
14
14
using System.Collections.Generic;
@@ -813,6 +813,13 @@ function runFlipper {
813
813
} else {
814
814
$lastLine=$line
815
815
}
816
+
if ($line-match'^WAIT_FOR_BUTTON_PRESS(.*)') {
817
+
Write-Host"`n`n${BW}[${R}Paused${BW}] ${BY}WAITING FOR BUTTON PRESS${BW}... Press ${BR}ENTER${BW} to continue...`n`n"
818
+
$null=Read-Host
819
+
Write-Host"${C}Performing a ${BW}ALT-TAB${C} to refocus last Window and resuming in 5 seconds...`n${BR}DO NOT TOUCH OR TYPE ANYTING! PAYLOAD IS STILL RUNNING!!!"
if ($line-match'^STRING_DELAY (\d+)'-Or$line-match'^STRINGDELAY (\d+)') {
817
824
$global:delayString= [int]$matches[1]
818
825
}
@@ -1068,6 +1075,13 @@ function runFlipper {
1068
1075
if ($line-match'^ENTER(.*)') {
1069
1076
SendKeys -SENDKEYS '{ENTER}'
1070
1077
}
1078
+
if ($line-match'^WAIT_FOR_BUTTON_PRESS(.*)') {
1079
+
Write-Host"`n`n[Paused] WAITING FOR BUTTON PRESS... Press any key to continue...`n`n"
1080
+
$null=Read-Host
1081
+
Write-Host"${C}Performing a ${BW}ALT-TAB${C} to refocus last Window and resuming in 5 seconds...`n${BR}DO NOT TOUCH OR TYPE ANYTING! PAYLOAD IS STILL RUNNING!!!"
0 commit comments