mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-04 19:28: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
|
||||
# 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.
|
||||
function Invoke-HuntSMBShares
|
||||
{
|
||||
@ -3431,6 +3431,88 @@ $NewHtmlReport = @"
|
||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
|
||||
<title>Report</title>
|
||||
<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 {
|
||||
display: block; /* Set to block to be expanded by default */
|
||||
@ -3444,28 +3526,27 @@ $NewHtmlReport = @"
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hidden { display: none; }
|
||||
.hidden { display: none; }
|
||||
|
||||
button.pagination-button {
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
margin: 2px;
|
||||
border-radius:0.20rem 0.20rem 0.20rem 0.20rem;
|
||||
color: #07142A;
|
||||
}
|
||||
button.pagination-button {
|
||||
border: none;
|
||||
outline: none;
|
||||
background-color: transparent;
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
margin: 2px;
|
||||
border-radius:0.20rem 0.20rem 0.20rem 0.20rem;
|
||||
color: #07142A;
|
||||
}
|
||||
button.pagination-button:hover{
|
||||
background-color: #F56A00 ;
|
||||
color: #07142A;
|
||||
}
|
||||
|
||||
button.pagination-button:hover{
|
||||
background-color: #F56A00 ;
|
||||
color: #07142A;
|
||||
}
|
||||
|
||||
button.pagination-button.active {
|
||||
background-color: #07142A;
|
||||
color: white;
|
||||
}
|
||||
button.pagination-button.active {
|
||||
background-color: #07142A;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.1collapsible:after {
|
||||
content: '\0208A';
|
||||
@ -3506,7 +3587,7 @@ $NewHtmlReport = @"
|
||||
--max-width: 0;
|
||||
overflow: hidden;
|
||||
transition: max-height 0.2s ease-out;
|
||||
transition: max-width 0.2s ease-out;
|
||||
transition: max-width 0.2s ease-out;
|
||||
}
|
||||
|
||||
.tabs{
|
||||
@ -3974,7 +4055,7 @@ $NewHtmlReport = @"
|
||||
font-weight: 700;
|
||||
font-family:"Open Sans", sans-serif;
|
||||
--color:#9B3722;
|
||||
color:#CE112D;
|
||||
color:#F56A00;
|
||||
}
|
||||
|
||||
.percentagetext2 {
|
||||
@ -4080,7 +4161,7 @@ $NewHtmlReport = @"
|
||||
margin-top: 5px;
|
||||
margin-right: 5px;
|
||||
margin-bottom: 5px;
|
||||
width: 90%
|
||||
--width: 90%
|
||||
}
|
||||
|
||||
.filelistparent {
|
||||
@ -4126,8 +4207,8 @@ $NewHtmlReport = @"
|
||||
}
|
||||
|
||||
.cardtitle{
|
||||
padding:5px;
|
||||
--padding-left: 20px;
|
||||
padding:5px;
|
||||
-- padding-left: 20px;
|
||||
font-size: 20;
|
||||
color: white;
|
||||
font-weight:bold;
|
||||
@ -4571,7 +4652,7 @@ input[type="checkbox"]:checked {
|
||||
|
||||
input[type="checkbox"]:checked::before {
|
||||
content: '✔';
|
||||
color: orange;
|
||||
color: #F56A00;
|
||||
display: block;
|
||||
text-align: center;
|
||||
line-height: 20px;
|
||||
@ -4606,6 +4687,10 @@ input[type="checkbox"]:checked::before {
|
||||
font-weight: bold;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.circle:hover {
|
||||
opacity:.5;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="radiobtn = document.getElementById('dashboard');radiobtn.checked = true;">
|
||||
@ -8409,90 +8494,6 @@ function Convert-DataTableToHtmlTable
|
||||
<head>
|
||||
<title>$Title</title>
|
||||
<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}
|
||||
body,html{
|
||||
font-family:"Open Sans",
|
||||
|
Loading…
x
Reference in New Issue
Block a user