Last active
February 21, 2023 12:16
-
-
Save mgreen27/b37467aa725e0445d966c9589c90381a to your computer and use it in GitHub Desktop.
Revisions
-
mgreen27 revised this gist
Feb 21, 2023 . 1 changed file with 7 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3153,25 +3153,16 @@ function GetProcAddress #endregion Win32 API Abstractions # Uses environment variables to determine execution options $ScanType = $Env:GetInjectedThreadScan $TargetPid = $Env:GetInjectedThreadTarget if( $TargetPid ){ If ( $ScanType -eq 'Aggressive' ) { Get-InjectedThreadEx -Aggressive -ProcessId $TargetPid } Elseif( $ScanType -eq 'Brief' ) { Get-InjectedThreadEx -Brief -ProcessId $TargetPid } Else { Get-InjectedThreadEx -ProcessId $TargetPid } } else { If( $ScanType -eq 'Aggressive') { Get-InjectedThreadEx -Aggressive } Elseif( $ScanType -eq 'Brief') { Get-InjectedThreadEx -Brief } Else { Get-InjectedThreadEx } } -
mgreen27 revised this gist
Feb 21, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3171,7 +3171,7 @@ else { Elseif( $ScanType -eq 'Brief') { $Results = Get-InjectedThreadEx -Brief } Else { $Results = Get-InjectedThreadEx } } $Results -
mgreen27 revised this gist
Feb 21, 2023 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3152,24 +3152,24 @@ function GetProcAddress } #endregion Win32 API Abstractions # Uses environment variables to determine execution options $Results = $null $ScanType = $Env:GetInjectedThreadScan $TargetPid = $Env:GetInjectedThreadTarget if( $TargetPid ){ If ( $ScanType -eq 'Aggressive' ) { $Results = Get-InjectedThreadEx -Aggressive -ProcessId $TargetPid } Elseif( $ScanType -eq 'Brief' ) { $Results = Get-InjectedThreadEx -Brief -ProcessId $TargetPid } Else { $Results = Get-InjectedThreadEx -ProcessId $TargetPid } } else { If( $ScanType -eq 'Aggressive') { $Results = Get-InjectedThreadEx -Aggressive } Elseif( $ScanType -eq 'Brief') { $Results = Get-InjectedThreadEx -Brief } Else { $ScanType = Get-InjectedThreadEx } } -
mgreen27 created this gist
Feb 20, 2023 .There are no files selected for viewing