mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-05 03:38:42 +02:00
Update PowerHuntShares.psm1
Updated "Most Common Share Folder Groups" to include collapsible file list.
This commit is contained in:
parent
cf7527e96c
commit
2bf0a514eb
@ -4,7 +4,7 @@
|
|||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
# Author: Scott Sutherland, 2024 NetSPI
|
# Author: Scott Sutherland, 2024 NetSPI
|
||||||
# License: 3-clause BSD
|
# License: 3-clause BSD
|
||||||
# Version: v1.38
|
# Version: v1.40
|
||||||
# References: This script includes custom code and code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell.
|
# 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
|
function Invoke-HuntSMBShares
|
||||||
{
|
{
|
||||||
@ -1559,7 +1559,8 @@ function Invoke-HuntSMBShares
|
|||||||
$ComputerBarF = $ThisFileBars.ComputerBar
|
$ComputerBarF = $ThisFileBars.ComputerBar
|
||||||
$ShareBarF = $ThisFileBars.ShareBar
|
$ShareBarF = $ThisFileBars.ShareBar
|
||||||
$AclBarF = $ThisFileBars.AclBar
|
$AclBarF = $ThisFileBars.AclBar
|
||||||
$ThisFileList = $ThisFileBars.FileList
|
$ThisFileListPrep = $ThisFileBars.FileList
|
||||||
|
$ThisFileList = $ThisFileListPrep -replace "`n", "<br>"
|
||||||
$ThisFileCount = $ThisFileBars.FileCount
|
$ThisFileCount = $ThisFileBars.FileCount
|
||||||
$ThisFileShareCount = $ThisFileBars.Sharecount
|
$ThisFileShareCount = $ThisFileBars.Sharecount
|
||||||
$ThisRow = @"
|
$ThisRow = @"
|
||||||
@ -1570,13 +1571,15 @@ function Invoke-HuntSMBShares
|
|||||||
<td>
|
<td>
|
||||||
$FileGroupName
|
$FileGroupName
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
$ThisFileCount
|
<button class="collapsible"><span style="color:#CE112D;"></span>$ThisFileCount Files</button>
|
||||||
|
<div class="content">
|
||||||
|
<div class="filelist" >
|
||||||
|
$ThisFileList
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
$ThisFileList
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
$ComputerBarF
|
$ComputerBarF
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -3678,7 +3681,6 @@ Folder groups are SMB shares that contain the exact same file listing. Each file
|
|||||||
<th align="left">Affected Shares</th>
|
<th align="left">Affected Shares</th>
|
||||||
<th align="left">File Group</th>
|
<th align="left">File Group</th>
|
||||||
<th align="left">File Count</th>
|
<th align="left">File Count</th>
|
||||||
<th align="left">File List</th>
|
|
||||||
<th align="left">Affected Computers</th>
|
<th align="left">Affected Computers</th>
|
||||||
<th align="left">Affected Shares</th>
|
<th align="left">Affected Shares</th>
|
||||||
<th align="left">Affected ACLs</th>
|
<th align="left">Affected ACLs</th>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user