diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1 index fc2462b..782514a 100644 --- a/PowerHuntShares.psm1 +++ b/PowerHuntShares.psm1 @@ -4,7 +4,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.49 +# Version: v1.50 # 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 { @@ -1774,15 +1774,15 @@ function Invoke-HuntSMBShares Timeline Context
- + - + - + @@ -1796,22 +1796,22 @@ function Invoke-HuntSMBShares
Normalized Ratio Details
First Created:  $ShareFirstCreated
Last Created:  $ShareLastCreated
Last Modified:  $ShareLastModified
- + - + - + - + - + - +
FolderGroup: $SimularityCalcShareFg
OwnerFG: $SimularityCalcFGOwnerAvg
Owner: $SimularityCalcShareOwner
MajorityExists: $SimularityCalc50P
Created: $SimularityCalcCreateDate
LastMod: $SimularityCalcLastModDate
@@ -3870,8 +3870,8 @@ This section contains a list of the most common SMB share names. In some cases,
- - + +
@@ -4432,6 +4432,30 @@ for (i = 0; i < coll.length; i++) { } }); } + + function filterTable() { + var filterdata, filter1, filterdata2, filter2, table, tr, td, i, j, txtValue; + filterdata = document.getElementById("sharenameinput"); + filter1 = filterdata.value.toUpperCase(); + table = document.getElementById("sharenametable"); + tr = table.getElementsByTagName("tr"); + + for (i = 1; i < tr.length; i++) { + if(tr[i].id !== "ignore") { + tr[i].style.display = "none"; + td = tr[i].getElementsByTagName("td"); + for (j = 0; j < td.length; j++) { + if (td[j]) { + txtValue = td[j].textContent || td[j].innerText; + if (td[1].innerText.toUpperCase().indexOf(filter1) > -1) { + tr[i].style.display = ""; + break; + } + } + } + } + } + }
Shares