Skip to content

Commit

Permalink
Update Get-Strings.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyPhipps authored Oct 2, 2024
1 parent 3dc8b11 commit 8d78f83
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Modules/Get-Strings.psm1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
function Get-Strings {
function Get-Strings {
<#
.SYNOPSIS
Gets a list of strings from the executables tied to each process.
Scans the file associated with each running process to detrmine if any strings exist that appear to be an IP address, URL, or email address.
.DESCRIPTION
Gets a list of strings from the executables tied to each process.
Scans the file associated with each running process to detrmine if any strings exist that appear to be an IP address, URL, or email address.
.PARAMETER PathContains
If specified, limits the strings collection via -like.
Expand All @@ -15,6 +15,11 @@
.EXAMPLE
Get-Strings
.EXAMPLE
Get-Strings |
Select-Object -Property * -ExcludeProperty PSComputerName,RunspaceID |
Export-Csv -NoTypeInformation ("c:\temp\Strings.csv")
.EXAMPLE
Invoke-Command -ComputerName remoteHost -ScriptBlock ${Function:Get-Strings} |
Select-Object -Property * -ExcludeProperty PSComputerName,RunspaceID |
Expand Down Expand Up @@ -143,4 +148,4 @@
Write-Verbose ("Total time elapsed: {0}" -f $elapsed)
Write-Verbose ("Ended at {0}" -f ((Get-Date).ToUniversalTime()).ToString("yyyy-MM-dd HH:mm:ssZ"))
}
}
}

0 comments on commit 8d78f83

Please sign in to comment.