Jump to content

OS X Hide Terminal


HH1
 Share

Recommended Posts

This small part of a payload will open the terminal and hide it in the top left of the screen. This is done thanks to a built in tool that allows you to use AppleScript from the terminal. It is called osascript and can be used in many other ways. You can use this at the beginning of a large payload.

REM Coded by HH1
REM hh1rimrock@gmail.com
REM
REM Target:
REM “Mac OS X”
REM
REM Description:
REM This script will open a Terminal window
REM And then shrink and hide it in the top
REM of the screen using osascript
REM 
REM
DELAY 1500
GUI SPACE
DELAY 30
STRING “Terminal”
DELAY 200
ENTER
DELAY 500
STRING osascript \
STRING	-e 'tell application "Terminal"' \
STRING	-e 'set size of front window to {36, 36}' \
STRING	 -e 'set position of front window to {0,25}' \
STRING	 -e 'end tell'
DELAY 200
ENTER
REM
REM You can add whatever you want to the end here
REM Keep in mind a terminal window is alread

 

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.

 Share

  • Recently Browsing   0 members

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