Merge branch 'main' of https://github.com/narstybits/MacOS-DuckyScripts
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
REM This script automates the process of generating
|
||||
REM a strong and secure password on macOS.
|
||||
|
||||
REM Author: Narsty
|
||||
REM Title: Password Generator
|
||||
REM Version 1.0 MacOs
|
||||
|
||||
DELAY 2000
|
||||
GUI SPACE
|
||||
DELAY 500
|
||||
STRING terminal
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "USB Script Utility"
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "-------------------"
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "Generating Password..."
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING password=$(openssl rand -base64 12)
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "Generated Password: $password"
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "-------------------"
|
||||
ENTER
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
REM Locks the screen on macOS
|
||||
REM Provides a quick way to secure your computer when stepping away
|
||||
REM Ensures privacy and data protection
|
||||
REM Author: Narsty
|
||||
REM Title: Quick Lock Screen
|
||||
REM Version 1.0 MacOs
|
||||
|
||||
DELAY 2000
|
||||
GUI SPACE
|
||||
DELAY 500
|
||||
STRING terminal
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "Locking Screen..."
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING osascript -e 'tell application "System Events" to keystroke "q" using {control down, command down}'
|
||||
ENTER
|
||||
DELAY 1000
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
REM Toggle Wifi
|
||||
REM You'll need to STOP the Script after you see the wifi turn off (about 3 seconds)
|
||||
REM To turn the wifi Back On let the script run all the way through
|
||||
|
||||
REM Author: Narsty
|
||||
REM Title: REM Toggle Wifi
|
||||
REM Version 1.0 MacOs
|
||||
|
||||
DELAY 2000
|
||||
GUI SPACE
|
||||
DELAY 500
|
||||
STRING terminal
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "Toggling Wi-Fi..."
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING networksetup -setairportpower en0 off
|
||||
ENTER
|
||||
DELAY 2000
|
||||
STRING networksetup -setairportpower en0 on
|
||||
ENTER
|
||||
DELAY 500
|
||||
STRING echo "Wi-Fi toggled!"
|
||||
ENTER
|
||||
|
||||
Reference in New Issue
Block a user