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
<# | |
.SYNOPSIS | |
Applies UEFI dbx updates to fix BootHole vulnerability. | |
.DESCRIPTION | |
Applies the UEFI dbxupdates to fix the BootHole vulnerability. Prior to running, | |
edit this script to choose between Embedded files or link to a file share. | |
See https://www.rufflabs.com/post/nessus-plugin-139239-remediating-boothole-windows/ | |
.EXAMPLE |
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
Add tun0 IP to top panel in Kali | |
1. Right click top panel and choose Add | |
2. Add a Generic Monitor | |
3. Right click the new monitor in the panel and choose Properties | |
4. Label as "tun0: " and enter the following for the command to run: | |
bash -c 'base64 -d <<< aXAgYSBzIHR1bjAgfCBncmVwICJpbmV0ICIgfCBhd2sgJ3twcmludCAkMn0nIHwgc2VkICdzL1wvLiovL2cn | bash' | |
This is piping the below base64 encoded command to bash. Without the base64 encoding, the pipes and parameters caused errors for me in the panel: |
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
############################################################################### | |
# # | |
# File name PSService.ps1 # | |
# # | |
# Description A sample service in a standalone PowerShell script # | |
# # | |
# Notes The latest PSService.ps1 version is available in GitHub # | |
# repository https://github.com/JFLarvoire/SysToolsLib/ , # | |
# in the PowerShell subdirectory. # | |
# Please report any problem in the Issues tab in that # |
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
Import-Module ActiveDirectory | |
Import-Module DhcpServer | |
Import-Module PSReadLine | |
Add-PsSnapin VMware.VimAutomation.Core | |
Add-PSSnapin VeeamPSSnapIn | |
## | |
# Authenticode Signing | |
## |
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
Add-PSSnapin VMware.VimAutomation.Core | |
Set-PowerCliConfiguration -InvalidCertificateAction Ignore -Confirm:$False | |
Connect-VIServer $vCenterServer | |
# vCenter hostname | |
$vCenterServer = '' | |
$smtpServer = '' | |
# Email report from address |
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
# Create a HashTable for logonHours, contents is a byte array. | |
# The code given by AD Admin Center's PowerShell History does not appear to work, but this does. | |
$logonHours = @{"logonHours" = [byte[]]$hours=@(255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255)} | |
Set-ADUser $User -Replace $logonHours |
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-Hash { | |
param( | |
[Parameter(Position=0,Mandatory=$true)]$Path | |
) | |
# Load crypto library if needed | |
if(([AppDomain]::CurrentDomain.GetAssemblies() | ? {$_ -Match 'System.Security'}) -eq $Null) { | |
[Reflection.Assembly]::LoadWithPartialName("System.Security") | Out-Null | |
} |
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 Send-Notification { | |
param( | |
$Status | |
) | |
Send-MailMessage -To '' -From "" -SmtpServer ''` | |
-Subject "$($env:computername) $($Drive) RAID $($Status)" -Body "$($Drive)RAID status is: $($Status)" | |
} | |
# Drive letter to check |
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 Test-Administrator | |
{ | |
$user = [Security.Principal.WindowsIdentity]::GetCurrent(); | |
(New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator) | |
} |
NewerOlder