2017-10-25 00:10:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-01-27 23:25:55 +00:00
|
|
|
# Title: Mac_Happy
|
2017-10-25 00:10:17 +00:00
|
|
|
# Author: thehappydinoa
|
|
|
|
# Target: Mac
|
2018-01-27 23:25:55 +00:00
|
|
|
# Version: 0.2
|
2017-10-25 00:10:17 +00:00
|
|
|
#
|
|
|
|
# Makes Mac happy by correctly setting pid and vid
|
|
|
|
# Use by running mac_happy ATTACKMODE HID <attack modes here>
|
|
|
|
#
|
|
|
|
|
2018-01-27 23:25:55 +00:00
|
|
|
function MAC_HAPPY() {
|
|
|
|
[[ "$#" -gt 1 && "$1" == "ATTACKMODE" ]] || exit 1
|
|
|
|
eval "$@ vid_0x05ac pid_0x021e"
|
2017-10-25 00:10:17 +00:00
|
|
|
}
|
2018-01-27 23:25:55 +00:00
|
|
|
export -f MAC_HAPPY
|