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
19 lines
352 B
Bash
Executable File
19 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# REQUIRETOOL v1 by @Hak5Darren
|
|
# Checks for specified directory in /tools, exits with LED FAIL if not found
|
|
# Usage: REQUIRETOOL directory
|
|
#
|
|
# Examples:
|
|
# REQUIRETOOL impacket
|
|
|
|
function REQUIRETOOL() {
|
|
[[ -z "$1" ]] && exit 1 # parameter must be set
|
|
|
|
if [ ! -d /tools/$1/ ]; then
|
|
LED FAIL
|
|
exit 1
|
|
fi
|
|
}
|
|
export -f REQUIRETOOL
|