-
Notifications
You must be signed in to change notification settings - Fork 743
Open
Description
Describe the bug
PowerShellHistory was failing with the following error:
ERROR: [!] Terminating exception running command 'PowerShellHistory': System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
at System.String.Substring(Int32 startIndex, Int32 length)
at Windows.PowerShellHistoryCommand.<Execute>d__10.MoveNext()
at Runtime.ExecuteCommand(CommandBase command, String[] commandArgs)
Not sure what was causing it and don't have the ConsoleHost_history.txt to troubleshoot
To Reproduce
Run Seatbelt.exe -q PowerShellHistory
Expected behavior
For the command to run and no errors be thrown
Observed behavior
An exception was thrown due to string parsing bugs
Metadata
Metadata
Assignees
Labels
No labels