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
|