This file contains 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
#!/usr/bin/env python3 | |
""" | |
This is a Python3 improved/interactive version of the script made by khr0x40sh for decrypting encrypted session keys in a PCAP file to view encrypted traffic. | |
If you don't specify the parameters, it should ask you for the parameter values. | |
It will check to see if pycryptodomex is installed, and if not, it will install it. | |
It can also accept NTML hashes directly as well as passwords. |
This file contains 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
#!/bin/bash | |
# This script contains an if function which will open the Software Update section on the user's Mac when they select OK, please feel free to remove or change this as you wish. | |
# Function to display the warning message using AppleScript | |
display_warning() { | |
local window_title="<WINDOW TITLE HERE>" | |
osascript -e 'display dialog "<YOUR TEXT HERE>" with icon POSIX file "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AppleTraceFile.icns" buttons {"OK", "Cancel"} default button "OK" with title "'"$window_title"'"' -e 'button returned of result' 2>/dev/null | |
} |
This file contains 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
# Connect to Microsoft Teams PowerShell module | |
Import-Module MicrosoftTeams | |
# Connect to Microsoft Teams | |
Connect-MicrosoftTeams | |
# Get a list of all the users who currently have Teams phone numbers assigned | |
$phoneNumber = Get-csonlineuser | where-object { $_.LineURI -notlike $null } | select UserPrincipalName, LineURI | |
# Create a CSV file with these phone numbers |
This file contains 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
#!/bin/bash | |
total=$(df -h /dev/sda5 --output=size | tail -1) | |
used=$(df -h /dev/sda5 --output=used,pcent | tail -1) | |
available=$(df -h /dev/sda5 --output=avail | tail -1) | |
echo "Total Disk Space: $total" | |
echo "Space Used: $used" |
This file contains 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-Type -AssemblyName System.Windows.Forms | |
Add-Type -AssemblyName System.Drawing | |
$form = New-Object System.Windows.Forms.Form | |
$form.Text = 'Select a Computer' | |
$form.Size = New-Object System.Drawing.Size(300,200) | |
$form.StartPosition = 'CenterScreen' | |
$okButton = New-Object System.Windows.Forms.Button | |
$okButton.Location = New-Object System.Drawing.Point(75,120) |