diff --git a/Scripts/Analyze-HuntSMBShares.ps1 b/Scripts/Analyze-HuntSMBShares.ps1 index 6414cae..ee6d81d 100644 --- a/Scripts/Analyze-HuntSMBShares.ps1 +++ b/Scripts/Analyze-HuntSMBShares.ps1 @@ -5,7 +5,7 @@ #-------------------------------------- # Author: Scott Sutherland, 2024 NetSPI # License: 3-clause BSD -# Version: v1.93 +# Version: v1.94 # References: This script includes custom code and code taken and modified from the open source projects PowerView, Invoke-Ping, and Invoke-Parrell. function Analyze-HuntSMBShares { @@ -3885,7 +3885,7 @@ $NewHtmlReport = @" box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3); padding: 20px; overflow-y: auto; - z-index: 9999; + z-index: 9998; border-radius: 4px; } @@ -3921,7 +3921,7 @@ $NewHtmlReport = @" background-color: #f1f1f1; min-width: 120px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); - z-index: 1; + z-index: 9997; right: 0px; left: 0px; top: 32px; @@ -3983,7 +3983,7 @@ $NewHtmlReport = @" line-height:1.15; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; - z-index: 1; + z-index: 9998; --transition: width 0.3s; /* Smooth transition when expanding/collapsing */ background: linear-gradient(to bottom, #07142A 80%, rgba(0, 0, 0, 1) 98%, black 100%); } @@ -4524,8 +4524,8 @@ $NewHtmlReport = @" width: 130px; height: 130px; background: radial-gradient(white 60%, transparent 41%), - conic-gradient(#CE112D 0% $PercentComputerExPrivP, - #d9d7d7 $PercentComputerExPrivP 100%); + conic-gradient(#CE112D 0% 1.13%, + #d9d7d7 1.13% 100%); border-radius: 50%; text-align: center; margin-top: 5px; @@ -4537,8 +4537,8 @@ $NewHtmlReport = @" width: 130px; height: 130px; background: radial-gradient(white 60%, transparent 41%), - conic-gradient(#CE112D 0% $PercentSharesExPrivP, - #d9d7d7 $PercentSharesExPrivP 100%); + conic-gradient(#CE112D 0% 2.75%, + #d9d7d7 2.75% 100%); border-radius: 50%; text-align: center; margin-top: 5px; @@ -4550,8 +4550,8 @@ $NewHtmlReport = @" width: 130px; height: 130px; background: radial-gradient(white 60%, transparent 41%), - conic-gradient(#CE112D 0% $PercentAclExPrivP, - #d9d7d7 $PercentAclExPrivP 100%); + conic-gradient(#CE112D 0% 6.45%, + #d9d7d7 6.45% 100%); border-radius: 50%; text-align: center; margin-top: 5px; @@ -4563,8 +4563,8 @@ $NewHtmlReport = @" width: 130px; height: 130px; background: radial-gradient(white 60%, transparent 41%), - conic-gradient(#CE112D 0% $ExpPrivAccessLastP , - #d9d7d7 $ExpPrivAccessLastP 100%); + conic-gradient(#CE112D 0% 0.00% , + #d9d7d7 0.00% 100%); border-radius: 50%; text-align: center; margin-top: 5px; @@ -4576,8 +4576,8 @@ $NewHtmlReport = @" width: 130px; height: 130px; background: radial-gradient(white 60%, transparent 41%), - conic-gradient(#CE112D 0% $ExpPrivModLastP, - #d9d7d7 $ExpPrivModLastP 100%); + conic-gradient(#CE112D 0% , + #d9d7d7 100%); border-radius: 50%; text-align: center; margin-top: 5px; @@ -4875,7 +4875,7 @@ $NewHtmlReport = @" line-height:1.15; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; - z-index: 1; + z-index: 9999; } .sidenav a { @@ -4948,7 +4948,7 @@ $NewHtmlReport = @" } .TimelineChart{ display: grid; - --grid-template-columns: 1px repeat($ExcessivePrivsYearsCount, 204px) 1px; + --grid-template-columns: 1px repeat(, 204px) 1px; grid-template-rows: minmax(0px, 1fr); overflow-x: scroll; overflow-y: hidden; @@ -5172,14 +5172,14 @@ input[type="checkbox"] { } input[type="checkbox"]:checked { - background-color: #07142A; /* Change this to your desired color */ + background-color: #17405A; /* Change this to your desired color */ --border-color: #07142A; - border: 1px solid #07142A; + border: 1px solid #17405A; } input[type="checkbox"]:checked::before { content: '✔'; - color: #F56A00; + color: #f08c41; display: block; text-align: center; line-height: 20px; @@ -6449,120 +6449,253 @@ Folder groups are SMB shares that contain the exact same file listing. Each fold