mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
* Updated all Payloads for Version 1.2+ Fixed Style Issues on extensions and payloads. Added GET TARGET_OS to get.sh Removed and Fixed all uses ducky_helper.sh (Issue #248) Removed all mention of DUCKY_LANG (Issue #248) Renamed Payloads with spaces in name Added an extension to keep Macs Happy Added a payload for Mac DNS poisoning Fixed Issue #271 changed wget to curl -o Implemented PR #268 Implemented PR #273 * Fixed e.cmd * Fix e.cmd pt2 * Fixed Issues Fixed issues pointed out by @sebkinne Fixed styling errors
27 lines
529 B
Bash
27 lines
529 B
Bash
#!/bin/bash
|
|
|
|
#Title: Mac_Happy
|
|
# Author: thehappydinoa
|
|
# Target: Mac
|
|
# Version: 0.1
|
|
#
|
|
# Makes Mac happy by correctly setting pid and vid
|
|
# Use by running mac_happy ATTACKMODE HID <attack modes here>
|
|
#
|
|
|
|
function mac_happy() {
|
|
[[ -z "$1" ]] && exit 1 # parameter must be set
|
|
|
|
[[ ! $1 =~ "ATTACKMODE" ]] && exit 1 # parameter must be for ATTACKMODE
|
|
|
|
for i in $*;
|
|
do
|
|
command=$(echo $command $i)
|
|
done
|
|
|
|
command=$(echo $command VID_0X05AC PID_0X021E)
|
|
|
|
eval $command
|
|
}
|
|
export -f mac_happy
|