mirror of
https://github.com/NetSPI/PowerHuntShares.git
synced 2025-05-05 03:38:42 +02:00
Update PowerHuntShares.psm1
Updated graph toolbar.
This commit is contained in:
parent
e5b111dcff
commit
b9726416ce
@ -4,7 +4,7 @@
|
|||||||
#--------------------------------------
|
#--------------------------------------
|
||||||
# Author: Scott Sutherland, 2024 NetSPI
|
# Author: Scott Sutherland, 2024 NetSPI
|
||||||
# License: 3-clause BSD
|
# License: 3-clause BSD
|
||||||
# Version: v1.121
|
# Version: v1.122
|
||||||
# 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
|
||||||
{
|
{
|
||||||
@ -6883,11 +6883,16 @@ Folder groups are SMB shares that contain the exact same file listing. Each fold
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- SHAREGRAPH CONTAINER START -->
|
<!-- SHAREGRAPH CONTAINER START -->
|
||||||
<div style="width: 100%; display: flex;">
|
<div style="width: 100%; height: 800px; position: relative; display: flex;">
|
||||||
|
|
||||||
<!-- SHAREGRAPH TOOLBAR -->
|
<!-- SHAREGRAPH TOOLBAR -->
|
||||||
<div style="width: 179px; border: .5px solid lightgray; border-radius: 6px; padding: 10px; background-color: lightgray; margin-top: -10px;">
|
<div id="sharegraphToolbar" style="width: 179px; border: .5px solid lightgray; border-radius: 6px; padding: 10px; background-color: lightgray; position: absolute; height: 530px; transition: height 0.5s ease; z-index: 10; overflow: hidden;">
|
||||||
|
|
||||||
|
<!-- Hide Toolbar Button -->
|
||||||
|
<button id="toggleButton2" class="modern-button" style="margin-bottom: 5px; width: 176px;" onclick="toggleToolbar()">Hide Toolbar</button>
|
||||||
|
|
||||||
|
<!-- Content to hide when collapsed -->
|
||||||
|
<div id="toolbarContent">
|
||||||
<!-- Search and shortest path -->
|
<!-- Search and shortest path -->
|
||||||
<input type="text" id="search-input" placeholder="Search nodes..." class="modern-input" style="width: 180px;">
|
<input type="text" id="search-input" placeholder="Search nodes..." class="modern-input" style="width: 180px;">
|
||||||
<input type="text" id="src-node" placeholder="src-node..." class="modern-input" style="width: 180px;">
|
<input type="text" id="src-node" placeholder="src-node..." class="modern-input" style="width: 180px;">
|
||||||
@ -6895,6 +6900,7 @@ Folder groups are SMB shares that contain the exact same file listing. Each fold
|
|||||||
<button id="find-path" class="modern-button" style="width: 176px;">Find Path</button>
|
<button id="find-path" class="modern-button" style="width: 176px;">Find Path</button>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<!-- Configuration Options -->
|
||||||
<!-- Configuration Options -->
|
<!-- Configuration Options -->
|
||||||
<select id="layout-select" class="modern-dropdown" style="width: 180px;">
|
<select id="layout-select" class="modern-dropdown" style="width: 180px;">
|
||||||
<option value="breadthfirst">Layout</option>
|
<option value="breadthfirst">Layout</option>
|
||||||
@ -6938,12 +6944,49 @@ Folder groups are SMB shares that contain the exact same file listing. Each fold
|
|||||||
<button id="zoom-out" class="modern-button" style="font-size: 11px">Zoom Out </button>
|
<button id="zoom-out" class="modern-button" style="font-size: 11px">Zoom Out </button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Cytoscape Canvas -->
|
<!-- Cytoscape Canvas -->
|
||||||
<div id="cy" style="flex: 3; height: 600px; margin-top: 10px;">
|
<div id="cy" style=" z-index: 1;flex-grow: 1; height: 100%; background-color: #f0f3f5; position: relative;">
|
||||||
</div>
|
<!-- Your graph content here -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- JavaScript to toggle the toolbar -->
|
||||||
|
<script>
|
||||||
|
function toggleToolbar() {
|
||||||
|
var toolbar = document.getElementById("sharegraphToolbar");
|
||||||
|
var button = document.getElementById("toggleButton2");
|
||||||
|
var content = document.getElementById("toolbarContent");
|
||||||
|
|
||||||
|
if (toolbar.style.height === "530px" || toolbar.style.height === "") {
|
||||||
|
// Collapse the toolbar to 40px
|
||||||
|
toolbar.style.height = "40px";
|
||||||
|
toolbar.style.transition = "height 0.5s ease";
|
||||||
|
|
||||||
|
// Hide the content
|
||||||
|
content.style.display = "none";
|
||||||
|
|
||||||
|
// Update button text
|
||||||
|
button.innerText = "Show Toolbar";
|
||||||
|
} else {
|
||||||
|
// Expand the toolbar back to its original height
|
||||||
|
toolbar.style.height = "530px";
|
||||||
|
toolbar.style.transition = "height 0.5s ease";
|
||||||
|
|
||||||
|
// Show the content
|
||||||
|
setTimeout(function() {
|
||||||
|
content.style.display = "block";
|
||||||
|
}, 500); // Delay to sync with height transition
|
||||||
|
|
||||||
|
// Update button text
|
||||||
|
button.innerText = "Hide Toolbar";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</div>
|
||||||
<!-- Hidden Menu - right-click -->
|
<!-- Hidden Menu - right-click -->
|
||||||
<label href="#" class="dropbtn" id="tbrearrange" onClick="">
|
<label href="#" class="dropbtn" id="tbrearrange" onClick="">
|
||||||
<div id="nodemenu" class="dropdown-content">
|
<div id="nodemenu" class="dropdown-content">
|
||||||
@ -6973,7 +7016,6 @@ Folder groups are SMB shares that contain the exact same file listing. Each fold
|
|||||||
<p id="popup-content">Content goes here...</p>
|
<p id="popup-content">Content goes here...</p>
|
||||||
<button id="close-popup" class="modern-button">Close</button>
|
<button id="close-popup" class="modern-button">Close</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
// Custom Organic Layout
|
// Custom Organic Layout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user