diff --git a/PowerHuntShares.psm1 b/PowerHuntShares.psm1
index 2a30034..b9ce956 100644
--- a/PowerHuntShares.psm1
+++ b/PowerHuntShares.psm1
@@ -4,7 +4,7 @@
#--------------------------------------
# Author: Scott Sutherland, 2024 NetSPI
# License: 3-clause BSD
-# Version: v1.56
+# Version: v1.57
# 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
{
@@ -1620,8 +1620,8 @@ function Invoke-HuntSMBShares
$ShareFolderGroupCount = $ExcessiveSharePrivs | where sharename -like "$ShareName" | select filelistgroup -Unique | measure | select count -ExpandProperty count
$ShareNameBars = Get-GroupNameNoBar -DataTable $ExcessiveSharePrivs -Name $ShareName -AllComputerCount $ComputerCount -AllShareCount $AllSMBSharesCount -AllAclCount $ShareACLsCount
$ComputerBar = $ShareNameBars.ComputerBar
- $ShareBar = $ShareNameBars.ShareBar
- $AclBar = $ShareNameBars.AclBar
+ $ShareBar = $ShareNameBars.ShareBar
+ $AclBar = $ShareNameBars.AclBar
# Share Description
$ShareDescriptionSample = $ExcessiveSharePrivs | where sharename -EQ "$ShareName" | where ShareDescription -NE "" | select ShareDescription -first 1 -expandproperty ShareDescription | foreach {"Sample Description
$_
"}
@@ -2118,6 +2118,7 @@ $NewHtmlReport = @"
text-decoration: none;
padding-top:5px;
padding-bottom:5px;
+ color: white;
}
@@ -2126,6 +2127,7 @@ $NewHtmlReport = @"
background-color:#5D5C5C;
width:auto;
padding-left: 15px;
+ color: white;
}
.stuff:visited {
@@ -2199,7 +2201,7 @@ $NewHtmlReport = @"
table thead th{
vertical-align:bottom;
- background-color: #3D3935;
+ background-color: #07142A;
color:white;
border:1px solid #3D3935;
}
@@ -2328,7 +2330,7 @@ $NewHtmlReport = @"
font-size:1rem;
color:#bd4147;
background-color:#f7f7f9;
- -border-radius:.25rem
+ --border-radius:.25rem
}
p{
@@ -2400,14 +2402,14 @@ $NewHtmlReport = @"
font-weight:bold;
--color:#9B3722;
--color:#CE112D;
- color:#222222;
+ color:#07142A;
}
.pagetitlesub {
font-size: 20;
font-weight:bold;
--color:#9B3722;
- color:#CE112D;
+ color:#07142A;
--color:#222222;
}
@@ -2423,7 +2425,8 @@ $NewHtmlReport = @"
.divbarDomainInside{
--background:#9B3722;
- background:#CE0E2D;
+ --background:#CE0E2D;
+ background:#F56A00;
text-align:center;
height: 15px;
vertical-align:middle;
@@ -2548,14 +2551,14 @@ $NewHtmlReport = @"
}
.landingheader2a {
- background-color: 9B3722;
+ background-color: #07142A;
--background-color: #999;
padding-left:120px;;
padding-right: 5px;
}
.landingheader2b {
- background-color: 9B3722;
+ background-color: #07142A;
--background-color: #999;
padding-left: 5px;
padding-right: 5px;
@@ -2570,7 +2573,7 @@ $NewHtmlReport = @"
font-family:"Open Sans", sans-serif;
color:#666;
background-color:white;
- border-radius: 10px;
+ --border-radius: 10px;
padding: 20px;
margin-top: 10px;
margin-right: 10px;
@@ -2592,7 +2595,7 @@ $NewHtmlReport = @"
font-family:"Open Sans", sans-serif;
color:#666;
background-color:none;
- border-radius: 0px;
+ --border-radius: 0px;
padding: 5px;
margin-top: 5px;
margin-right: 5px;
@@ -2605,7 +2608,7 @@ $NewHtmlReport = @"
font-family:"Open Sans", sans-serif;
color:#666;
background-color:white;
- border-radius: 0px;
+ --border-radius: 0px;
padding: 5px;
margin-top: 5px;
margin-right: 5px;
@@ -2618,7 +2621,7 @@ $NewHtmlReport = @"
font-family:"Open Sans", sans-serif;
color:#666;
--background-color:white;
- border-radius: 0px;
+ --border-radius: 0px;
padding: 5px;
margin-top: 5px;
margin-right: 5px;
@@ -2636,7 +2639,7 @@ $NewHtmlReport = @"
width: 250px;
box-shadow: 0 2px 4px 0 #DEDFE1;
transition:0.3s;
- background-color: #3D3935;
+ background-color: #07142A;
font-family:"Open Sans", sans-serif;
font-size: 12;
font-weight: 2;
@@ -2646,7 +2649,7 @@ $NewHtmlReport = @"
display:block;
margin:10px;
margin-bottom:20px;
- border-radius: 10px;
+ --border-radius: 10px;
}
.card:hover{
@@ -2663,7 +2666,7 @@ $NewHtmlReport = @"
font-weight:bold;
font-family:"Open Sans", sans-serif;
border-bottom:1.5px solid transparent;
- border-bottom-color:#757575;
+ border-bottom-color:#07142A;
}
.cardsubtitle {
@@ -2707,7 +2710,7 @@ $NewHtmlReport = @"
font-family:"Open Sans", sans-serif;
--border-bottom:1.5px solid transparent;
--border-bottom-color:#222222;
- background-color: #222222;
+ background-color: #07142A;
}
.cardtitlescansub {
@@ -2725,8 +2728,8 @@ $NewHtmlReport = @"
border-right:1px solid #ccc;
border-left:1px solid #ccc;
border-bottom:1px solid #ccc;
- border-bottom-right-radius: 10px;
- border-bottom-left-radius: 10px;
+ --border-bottom-right-radius: 10px;
+ --border-bottom-left-radius: 10px;
}
.cardbarouter{
@@ -2739,7 +2742,8 @@ $NewHtmlReport = @"
.cardbarinside{
--background:#9B3722;
- background:#CE112D;
+ --background:#CE112D;
+ background:#F56A00;
text-align:center;
height: 15px;
vertical-align:middle;
@@ -2778,7 +2782,7 @@ $NewHtmlReport = @"
box-shadow: 0 2px 4px 0;
width: 180px;
height: 100%;
- background-color:#222222;
+ background-color:#07142A;
position: fixed; /* Stay in place */
top: 0;
left: 0;
@@ -2817,7 +2821,7 @@ $NewHtmlReport = @"
display:block;
margin:0px;
margin-bottom:20px;
- border-radius: 10px;
+ --border-radius: 10px;
}
.Minicard:hover{
@@ -2829,11 +2833,11 @@ $NewHtmlReport = @"
padding:5px;
--padding-left: 20px;
font-size: 13;
- color: #222222;
+ color: #07142A;
font-weight:bold;
font-family:"Open Sans", sans-serif;
border-bottom:1.5px solid transparent;
- border-bottom-color:#757575;
+ border-bottom-color:#07142A;
}
.Minicardcontainer {
@@ -2844,8 +2848,8 @@ $NewHtmlReport = @"
border-right:1px solid #ccc;
border-left:1px solid #ccc;
border-bottom:1px solid #ccc;
- border-bottom-right-radius: 10px;
- border-bottom-left-radius: 10px;
+ --border-bottom-right-radius: 10px;
+ --border-bottom-left-radius: 10px;
}
.MinicardconnectLine {
@@ -2960,7 +2964,7 @@ $NewHtmlReport = @"
margin-left: 20px;
margin-top: 10px;
-margin-bottom:20px;
- border-radius: 10px;
+ --border-radius: 10px;
}
.TimelineMinicard:hover{
@@ -2970,7 +2974,7 @@ $NewHtmlReport = @"
.TimelineMinicardtitle{
padding:5px;
font-size: 10;
- color: #222222;
+ color: #07142A;
font-weight:bold;
font-family:"Open Sans", sans-serif;
border-bottom:1.5px solid transparent;
@@ -2983,8 +2987,8 @@ $NewHtmlReport = @"
border-right:1px solid #ccc;
border-left:1px solid #ccc;
border-bottom:1px solid #ccc;
- border-bottom-right-radius: 10px;
- border-bottom-left-radius: 10px;
+ --border-bottom-right-radius: 10px;
+ --border-bottom-left-radius: 10px;
}
.TimelineMinicardconnectLine {
@@ -3000,7 +3004,7 @@ $NewHtmlReport = @"
width: 788px;
box-shadow: 0 2px 4px 0 #DEDFE1;
transition:0.3s;
- background-color: #3D3935;
+ background-color: #07142A;
font-family:"Open Sans", sans-serif;
font-size: 12;
font-weight: 2;
@@ -3009,7 +3013,7 @@ $NewHtmlReport = @"
display:block;
margin:10px;
margin-bottom:20px;
- border-radius: 10px;
+ --border-radius: 10px;
}
.LargeCard:hover{
@@ -3041,8 +3045,8 @@ $NewHtmlReport = @"
border-right:1px solid #ccc;
border-left:1px solid #ccc;
border-bottom:1px solid #ccc;
- border-bottom-right-radius: 10px;
- border-bottom-left-radius: 10px;
+ --border-bottom-right-radius: 10px;
+ --border-bottom-left-radius: 10px;
}
@@ -3054,10 +3058,10 @@ $NewHtmlReport = @"
-->
-
+
@@ -3067,30 +3071,22 @@ $NewHtmlReport = @"
-
+
-
+
-
+
-

-
-
- Invoke-HuntSMBShares
- Author: Scott Sutherland
- License: 3-clause BSD
-
-