bashbunny-payloads/payloads/extensions/mac_happy.sh

30 lines
593 B
Bash
Raw Normal View History

#!/bin/bash
# Title: Mac_Happy
# Author: thehappydinoa
2018-01-30 22:17:56 +00:00
# Target: macOS
# Version: 0.3
#
# Makes Mac happy by correctly setting pid and vid
2018-01-30 22:17:56 +00:00
# Use by running MAC_HAPPY HID/ETHERNET/...
#
function MAC_HAPPY() {
2018-01-30 22:17:56 +00:00
[[ "$#" -gt 1 ]] || exit 1
case "$1" in
HID)
ATTACKMODE HID vid_0x05ac pid_0x021e
;;
ETHERNET)
ATTACKMODE ECM_ETHERNET vid_0x05ac pid_0x021e
;;
ATTACKMODE)
eval "$@ vid_0x05ac pid_0x021e"
;;
*)
exit 1
;;
esac
}
export -f MAC_HAPPY