Skip to content

Commit 68591ab

Browse files
committed
Regex Patch - 21Jan25 - IP Address Lists
1 parent 3df23c6 commit 68591ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pSSL.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Get-Content $pwd\$targetDomain-hostname-table-pssl.txt
1414
Write-Host " "
1515
Write-Host "Parsing source IPv4 addresses..." -ForegroundColor Red
1616
Write-Host " "
17-
Get-Content $pwd\$targetDomain-hostname-table-pssl.txt | awk -F ' ' '{ print $2 }' | grep -o -P "^[0-9].*" | Sort-Object -Unique | Out-File $pwd\$targetDomain-enumeration-list-ipv4-addrs.txt utf8 -Force
18-
Get-Content $pwd\$targetDomain-hostname-table-pssl.txt | awk -F ' ' '{ print $2 }' | grep -o -P "^[0-9].*" | Sort-Object -Unique | awk -F ' ' '{ print }{++cnt} END { print cnt }'
17+
Get-Content $pwd\$targetDomain-hostname-table-pssl.txt | awk -F ' ' '{ print $2 }' | grep -o -P "^[0-9].*[.].*[0-9].*[.].*[0-9]" | Sort-Object -Unique | Out-File $pwd\$targetDomain-enumeration-list-ipv4-addrs.txt utf8 -Force
18+
Get-Content $pwd\$targetDomain-hostname-table-pssl.txt | awk -F ' ' '{ print $2 }' | grep -o -P "^[0-9].*[.].*[0-9].*[.].*[0-9]" | Sort-Object -Unique | awk -F ' ' '{ print }{++cnt} END { print cnt }'
1919
Write-Host " "
2020
Write-Host "Results saved to the following locations: " -ForegroundColor Red
2121
Write-Host "$pwd\$targetDomain-ct-log.json"

0 commit comments

Comments
 (0)