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
# Wav2Csv converts wav files into csv format (timestamp, amplitude), suitable for data analysis with R. | |
# Input files can be resampled specifying a "sample period" in ms. | |
# | |
# Usage: python3 wav2csv.py INPUT.wav OUTPUT.csv [--period 16] [--plot] | |
# | |
# Before launching the script, install the following libraries: | |
# pip3 install librosa matplotlib pandas | |
# | |
import datetime |
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
import pdb | |
import sys | |
import argparse | |
import logging | |
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) | |
from scapy.all import * | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--ip", help="Filter by host IP address") |
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
import re | |
import ssl | |
import socket | |
import requests | |
import urllib3 | |
from OpenSSL import crypto | |
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
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
$ScanResultsPath = ".\UacPrompts.csv" | |
$DateFormat = "yyyyMMddHHmmss" | |
$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") | |
if (-not $isAdmin) { | |
Write-Host "You must run this script with administrator privileges!" | |
exit | |
} | |
$isAuditEnabled = auditpol /get /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" | select-string "Success" -Quiet |
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
<# | |
.SYNOPSIS | |
Prevent and fix VSTO add-ins for Outlook being disabled due to performance reasons | |
.PARAMETER Fix | |
Fix incorrect values in the Windows Registry (requires Administrator privileges) | |
.EXAMPLE | |
VSTOTroubleshoot.ps1 -Fix | |
#> | |
[CmdletBinding()] |
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
<# | |
.SYNOPSIS | |
This script applies custom settings to KeePassXC config files on both Local and | |
Roaming user profile dirs. | |
To customize the settings to apply, just edit the contents of $SettingsLocal and | |
$SettingsRoaming, following the config file specification available at: | |
https://github.com/keepassxreboot/keepassxc/blob/develop/src/core/Config.cpp | |
.NOTES | |
Author: egglessness |