Initial commit: local_machine docs and scripts

This commit is contained in:
ahauimix
2026-03-14 20:03:57 +03:00
commit a39ef89125
85 changed files with 14500 additions and 0 deletions

26
docs/security/spoof-mac-now.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/zsh
# Wrapper script to spoof MAC with password prompt
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
MAC="7a:ef:be:50:00:55"
echo "=== Подмена MAC Wi-Fi ==="
echo "Текущий MAC будет заменен на MAC точки доступа: $MAC"
echo ""
# Try to get password via osascript
PASSWORD=$(osascript -e 'Tell application "System Events" to display dialog "Введите пароль администратора для подмены MAC:" default answer "" with hidden answer' -e 'text returned of result' 2>/dev/null || echo "")
if [ -z "$PASSWORD" ]; then
echo "Запуск скрипта подмены MAC..."
echo "Вам будет предложено ввести пароль sudo"
echo ""
cd "$SCRIPT_DIR"
./spoof-wifi-mac.sh "$MAC"
else
echo "Использование предоставленного пароля..."
echo "$PASSWORD" | sudo -S "$SCRIPT_DIR/spoof-wifi-mac.sh" "$MAC"
fi