mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-06-28 13:48:43 +02:00
Update PowerHuntShares.psm1
More weight fixes.
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
# Author: Scott Sutherland, 2024 NetSPI
|
# Author: Scott Sutherland, 2024 NetSPI
|
||||||
# License: 3-clause BSD
|
# License: 3-clause BSD
|
||||||
# Version: v1.60
|
# Version: v1.61
|
||||||
# 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
|
||||||
{
|
{
|
||||||
@ -1735,7 +1735,7 @@ function Invoke-HuntSMBShares
|
|||||||
# Caluatlate if at least one file name exists across 80 or more of the shares
|
# Caluatlate if at least one file name exists across 80 or more of the shares
|
||||||
# Configurations
|
# Configurations
|
||||||
$SameFileNamePercentageThreshold = .8
|
$SameFileNamePercentageThreshold = .8
|
||||||
$SameFileNameCountThreshold = 2
|
$SameFileNameCountThreshold = 1
|
||||||
$SameFileNameMeetsThresholds = 0
|
$SameFileNameMeetsThresholds = 0
|
||||||
# Get list of files from share name folder groups
|
# Get list of files from share name folder groups
|
||||||
$FullFileListSim = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | select FileListGroup,FileList -Unique | Select FileList | foreach {$_.FileList -split "`r`n"} | Where-Object { $_.Trim() -ne "" }
|
$FullFileListSim = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | select FileListGroup,FileList -Unique | Select FileList | foreach {$_.FileList -split "`r`n"} | Where-Object { $_.Trim() -ne "" }
|
||||||
|
Reference in New Issue
Block a user