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
| #!/bin/bash | |
| # Must run as root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "Please run as root (sudo ./disable-security.sh)" | |
| exit 1 | |
| fi | |
| echo "[+] Disabling password complexity requirements..." |
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 log_clean | |
| set logfile $argv[1] | |
| while read -l line | |
| echo $line | |
| echo $line | string replace -ra '\x1B\[[0-?]*[ -/]*[@-~]' '' >> $logfile | |
| end | |
| end | |
| function update |
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
| #!/usr/bin/bash | |
| # Run this when using this script for 1st time | |
| # echo "%wheel ALL=(root) NOPASSWD: /usr/sbin/efibootmgr" | sudo tee /etc/sudoers.d/efibootmgr-config | |
| # Look up the boot number for Windows in the EFI records | |
| boot_number=$(echo $(efibootmgr) | grep -Po "(?<=Boot)\S{4}(?=( |\* )Windows)") | |
| # Check that Windows EFI entry was found | |
| if [ -z "$boot_number" ]; then |