File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
<#
2
2
File: Get-SSLCertInfo-Scan.psm1
3
3
Author: Scott Sutherland (@_nullbind), NetSPI - 2019
4
- Version: 1.9
4
+ Version: 1.10
5
5
Description: The functions in this module can be used to collect information from remote SSL certificates.
6
6
License: BSD 3-Clause
7
7
#>
@@ -246,7 +246,10 @@ function Get-SSLCertInfo-Scan
246
246
# ------------------------------
247
247
$AltDomainList = $DraftResults | where SubjectAltName -notlike " " | Select-Object SubjectAltName - ExpandProperty SubjectAltName
248
248
$OrgDomainList = $DraftResults | where SubjectDomain -notlike " " | Select-Object SubjectDomain - ExpandProperty SubjectDomain
249
- $DomainList = $AltDomainList + $DomainList | Select-Object @ {Name = " DomainName" ;Expression = {$_ }} | Sort-Object DomainName - Unique
249
+ $DomainList = $AltDomainList + $DomainList | Select-Object @ {Name = " DomainName" ;Expression = {$_ }} |
250
+ ForEach-Object {
251
+ $_.DomainName -replace (" \*." , " " )
252
+ } | Sort-Object - Unique
250
253
$DomainCount = $DomainList.count
251
254
Write-Verbose " $DomainCount unique domains found."
252
255
You can’t perform that action at this time.
0 commit comments