mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-05 03:38:42 +02:00
Update PowerHuntShares.psm1
bug fix.
This commit is contained in:
parent
91df97630a
commit
cf721ec19d
@ -4,7 +4,7 @@
|
|||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
# Author: Scott Sutherland, 2024 NetSPI
|
# Author: Scott Sutherland, 2024 NetSPI
|
||||||
# License: 3-clause BSD
|
# License: 3-clause BSD
|
||||||
# Version: v1.96
|
# Version: v1.97
|
||||||
# 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
|
||||||
{
|
{
|
||||||
@ -3431,6 +3431,88 @@ $NewHtmlReport = @"
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
|
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
|
||||||
<title>Report</title>
|
<title>Report</title>
|
||||||
<style>
|
<style>
|
||||||
|
.side-menu {
|
||||||
|
box-shadow: 0 2px 4px 0;
|
||||||
|
width: 180px;
|
||||||
|
height: 100%;
|
||||||
|
background-color:#07142A;
|
||||||
|
position: fixed; /* Stay in place */
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
float:left;
|
||||||
|
line-height:1.15;
|
||||||
|
-webkit-text-size-adjust:100%;
|
||||||
|
-ms-text-size-adjust:100%;
|
||||||
|
z-index: 1;
|
||||||
|
--transition: width 0.3s; /* Smooth transition when expanding/collapsing */
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu.collapsed div,
|
||||||
|
.side-menu.collapsed h2,
|
||||||
|
.side-menu.collapsed ul,
|
||||||
|
.side-menu.collapsed ul li {
|
||||||
|
opacity: 0; /* Hide text and child divs when collapsed */
|
||||||
|
height: 0; /* Collapse height to prevent content from being visible */
|
||||||
|
overflow: hidden; /* Ensure that any overflow content is hidden */
|
||||||
|
transition: opacity 0.3s, height 0.3s; /* Smooth transition for hiding content */
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu a {
|
||||||
|
width:auto;
|
||||||
|
cursor:initial;
|
||||||
|
border-bottom:2px solid transparent;
|
||||||
|
-webkit-box-ordinal-group:2;
|
||||||
|
-ms-flex-order:1;
|
||||||
|
order:1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu.collapsed {
|
||||||
|
width: 50px; /* Width when collapsed */
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu h2 {
|
||||||
|
text-align: center;
|
||||||
|
margin: 50px 0; /* Add margin for better spacing */
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
transition: opacity 0.3s; /* Fade effect */
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu ul li {
|
||||||
|
padding: 10px 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button {
|
||||||
|
margin: 0;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 16px;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
position: absolute;
|
||||||
|
right: 10px; /* Align to right when expanded */
|
||||||
|
top: 10px; /* Align to top when expanded */
|
||||||
|
--transition: all 0.3s; /* Smooth transition for position */
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button .icon {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu.collapsed h2,
|
||||||
|
.side-menu.collapsed ul li {
|
||||||
|
opacity: 0; /* Hide text when collapsed */
|
||||||
|
}
|
||||||
|
|
||||||
|
.side-menu.collapsed .menu-button {
|
||||||
|
right: 18px; /* Keep the icon aligned to the right */
|
||||||
|
top: 10px; /* Keep the icon aligned to the top */
|
||||||
|
}
|
||||||
|
|
||||||
.toggle-content {
|
.toggle-content {
|
||||||
display: block; /* Set to block to be expanded by default */
|
display: block; /* Set to block to be expanded by default */
|
||||||
@ -3456,7 +3538,6 @@ $NewHtmlReport = @"
|
|||||||
border-radius:0.20rem 0.20rem 0.20rem 0.20rem;
|
border-radius:0.20rem 0.20rem 0.20rem 0.20rem;
|
||||||
color: #07142A;
|
color: #07142A;
|
||||||
}
|
}
|
||||||
|
|
||||||
button.pagination-button:hover{
|
button.pagination-button:hover{
|
||||||
background-color: #F56A00 ;
|
background-color: #F56A00 ;
|
||||||
color: #07142A;
|
color: #07142A;
|
||||||
@ -3974,7 +4055,7 @@ $NewHtmlReport = @"
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-family:"Open Sans", sans-serif;
|
font-family:"Open Sans", sans-serif;
|
||||||
--color:#9B3722;
|
--color:#9B3722;
|
||||||
color:#CE112D;
|
color:#F56A00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.percentagetext2 {
|
.percentagetext2 {
|
||||||
@ -4080,7 +4161,7 @@ $NewHtmlReport = @"
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
width: 90%
|
--width: 90%
|
||||||
}
|
}
|
||||||
|
|
||||||
.filelistparent {
|
.filelistparent {
|
||||||
@ -4571,7 +4652,7 @@ input[type="checkbox"]:checked {
|
|||||||
|
|
||||||
input[type="checkbox"]:checked::before {
|
input[type="checkbox"]:checked::before {
|
||||||
content: '✔';
|
content: '✔';
|
||||||
color: orange;
|
color: #F56A00;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
@ -4606,6 +4687,10 @@ input[type="checkbox"]:checked::before {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.circle:hover {
|
||||||
|
opacity:.5;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body onload="radiobtn = document.getElementById('dashboard');radiobtn.checked = true;">
|
<body onload="radiobtn = document.getElementById('dashboard');radiobtn.checked = true;">
|
||||||
@ -8409,90 +8494,6 @@ function Convert-DataTableToHtmlTable
|
|||||||
<head>
|
<head>
|
||||||
<title>$Title</title>
|
<title>$Title</title>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.side-menu {
|
|
||||||
box-shadow: 0 2px 4px 0;
|
|
||||||
width: 180px;
|
|
||||||
height: 100%;
|
|
||||||
background-color:#07142A;
|
|
||||||
position: fixed; /* Stay in place */
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
float:left;
|
|
||||||
line-height:1.15;
|
|
||||||
-webkit-text-size-adjust:100%;
|
|
||||||
-ms-text-size-adjust:100%;
|
|
||||||
z-index: 1;
|
|
||||||
--transition: width 0.3s; /* Smooth transition when expanding/collapsing */
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu.collapsed div,
|
|
||||||
.side-menu.collapsed h2,
|
|
||||||
.side-menu.collapsed ul,
|
|
||||||
.side-menu.collapsed ul li {
|
|
||||||
opacity: 0; /* Hide text and child divs when collapsed */
|
|
||||||
height: 0; /* Collapse height to prevent content from being visible */
|
|
||||||
overflow: hidden; /* Ensure that any overflow content is hidden */
|
|
||||||
transition: opacity 0.3s, height 0.3s; /* Smooth transition for hiding content */
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu a {
|
|
||||||
width:auto;
|
|
||||||
cursor:initial;
|
|
||||||
border-bottom:2px solid transparent;
|
|
||||||
-webkit-box-ordinal-group:2;
|
|
||||||
-ms-flex-order:1;
|
|
||||||
order:1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu.collapsed {
|
|
||||||
width: 50px; /* Width when collapsed */
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu h2 {
|
|
||||||
text-align: center;
|
|
||||||
margin: 50px 0; /* Add margin for better spacing */
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu ul {
|
|
||||||
list-style-type: none;
|
|
||||||
padding: 0;
|
|
||||||
transition: opacity 0.3s; /* Fade effect */
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu ul li {
|
|
||||||
padding: 10px 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-button {
|
|
||||||
margin: 0;
|
|
||||||
padding: 10px;
|
|
||||||
font-size: 16px;
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: transparent;
|
|
||||||
border: none;
|
|
||||||
color: white;
|
|
||||||
position: absolute;
|
|
||||||
right: 10px; /* Align to right when expanded */
|
|
||||||
top: 10px; /* Align to top when expanded */
|
|
||||||
--transition: all 0.3s; /* Smooth transition for position */
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu-button .icon {
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu.collapsed h2,
|
|
||||||
.side-menu.collapsed ul li {
|
|
||||||
opacity: 0; /* Hide text when collapsed */
|
|
||||||
}
|
|
||||||
|
|
||||||
.side-menu.collapsed .menu-button {
|
|
||||||
right: 18px; /* Keep the icon aligned to the right */
|
|
||||||
top: 10px; /* Keep the icon aligned to the top */
|
|
||||||
}
|
|
||||||
|
|
||||||
{box-sizing:border-box}
|
{box-sizing:border-box}
|
||||||
body,html{
|
body,html{
|
||||||
font-family:"Open Sans",
|
font-family:"Open Sans",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user