This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async function() { | |
const baseUrl = 'https://apidocs.campus.barracuda.com/NGF/9.0'; | |
const endpoints = ["administrative-session-data.json","authentication-logins.json","autovpn.json","backup-daemon.json","box-administrators.json","box-configuration.json","box-services.json","cc.json","cc-configuration.json","cc-firewall-connection-objects.json","cc-firewall-ips.json","cc-firewall-network-objects.json","cc-firewall-rules.json","cc-firewall-service-objects.json","cc-firewall-user-objects.json","cc-firmware-management.json","cc-totp-user-management.json","dhcp-server.json","dynamic-firewall-rules.json","dynamic-network-handling.json","firewall-connection-objects.json","firewall-custom-external-objects.json","firewall-ips.json","firewall-network-objects.json","firewall-rules.json","firewall-service-objects.json","firewall-user-objects.json","firewall-data.json","firmware-management.json","general-data.json","license-activation-and-operative-data.json","log.json","network-activation.json","network-operative-dat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-Func { | |
return Get-Content $PROFILE | Select-String -Pattern "function\s+([^\s{]+)" | Foreach-Object { $_.Matches.Groups[1].Value } | |
} | |
Function nosleep { | |
$wsh = New-Object -ComObject WScript.Shell | |
while (1) { | |
$wsh.SendKeys('{SCROLLLOCK}') | |
Start-Sleep -seconds 59 | |
} |