mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-05 03:38:42 +02:00
Update PowerHuntShares.psm1
Added unique folder group count column to "top share name" page.
This commit is contained in:
parent
2bf0a514eb
commit
0eef2d6c53
@ -4,7 +4,7 @@
|
||||
#--------------------------------------
|
||||
# Author: Scott Sutherland, 2024 NetSPI
|
||||
# License: 3-clause BSD
|
||||
# Version: v1.40
|
||||
# Version: v1.41
|
||||
# References: This script includes custom code and code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
|
||||
function Invoke-HuntSMBShares
|
||||
{
|
||||
@ -1606,6 +1606,7 @@ function Invoke-HuntSMBShares
|
||||
foreach {
|
||||
$ShareCount = $_.count
|
||||
$ShareName = $_.name
|
||||
$ShareFolderGroupCount = $ExcessiveSharePrivs | where sharename -like "$ShareName" | select filelistgroup -Unique | measure | select count -ExpandProperty count
|
||||
$ShareNameBars = Get-GroupNameBar -DataTable $ExcessiveSharePrivs -Name $ShareName -AllComputerCount $ComputerCount -AllShareCount $AllSMBSharesCount -AllAclCount $ShareACLsCount
|
||||
$ComputerBar = $ShareNameBars.ComputerBar
|
||||
$ShareBar = $ShareNameBars.ShareBar
|
||||
@ -1648,6 +1649,9 @@ function Invoke-HuntSMBShares
|
||||
$ShareName
|
||||
</td>
|
||||
<td>
|
||||
$ShareFolderGroupCount
|
||||
</td>
|
||||
<td>
|
||||
$ShareFolderGroupList
|
||||
</td>
|
||||
<td>
|
||||
@ -3604,7 +3608,8 @@ This section contains a list of the most common SMB share names. In some cases,
|
||||
<tr>
|
||||
<th align="left">Share Count</th>
|
||||
<th align="left">Share Name</th>
|
||||
<th align="left">Folder Groups</th>
|
||||
<th align="left">Unique Folder Group Count</th>
|
||||
<th align="left">Unique Folder Groups</th>
|
||||
<th align="left">Affected Computers</th>
|
||||
<th align="left">Affected Shares</th>
|
||||
<th align="left">Affected ACLs</th>
|
||||
|
Loading…
x
Reference in New Issue
Block a user