Fixed parameter bug & removed localized targetting.
This commit is contained in:
parent
7c0af05860
commit
e37c200989
|
@ -308,8 +308,12 @@ handshake_snooper_set_verifier_synchronicity() {
|
||||||
# =================== < Parse Parameters > =================== #
|
# =================== < Parse Parameters > =================== #
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
if [ ! "$HandshakeSnooperCLIArguments" ]; then
|
if [ ! "$HandshakeSnooperCLIArguments" ]; then
|
||||||
if ! HandshakeSnooperCLIArguments=$(getopt --options="b:e:c:v:i:j:a" --longoptions="bssid:,essid:,channel:,verifier:,interval:,jammer:,asynchronous" --name="Handshake Snooper V$FLUXIONVersion.$FLUXIONRevision" -- "$@")
|
if ! HandshakeSnooperCLIArguments=$(
|
||||||
then echo -e "${CRed}Aborted$CClr, parameter error detected..."; exit 10
|
getopt --options="v:i:j:a" \
|
||||||
|
--longoptions="verifier:,interval:,jammer:,asynchronous" \
|
||||||
|
--name="Handshake Snooper V$FLUXIONVersion.$FLUXIONRevision" -- "$@"
|
||||||
|
); then
|
||||||
|
echo -e "${CRed}Aborted$CClr, parameter error detected..."; exit 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
declare -r HandshakeSnooperCLIArguments=$HandshakeSnooperCLIArguments
|
declare -r HandshakeSnooperCLIArguments=$HandshakeSnooperCLIArguments
|
||||||
|
@ -321,20 +325,20 @@ fi
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
# ============= < Argument Loaded Configurables > ============ #
|
# ============= < Argument Loaded Configurables > ============ #
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
while [ "$1" != "--" ]; do
|
while [ "$1" != "" -a "$1" != "--" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-b|--bssid) APTargetMAC=$2; shift;;
|
-v|--verifier)
|
||||||
-e|--essid) APTargetSSID=$2; shift;;
|
HandshakeSnooperVerifierIdentifier=$2; shift;;
|
||||||
-c|--channel) APTargetChannel=$2; shift;;
|
-i|--interval)
|
||||||
-v|--verifier) HANDSHAKEVerifierIdentifier=$2; shift;;
|
HandshakeSnooperVerifierInterval=$2; shift;;
|
||||||
-i|--interval) HANDSHAKEVerifierInterval=$2; shift;;
|
-j|--jammer)
|
||||||
-j|--jammer) exit;;
|
HandshakeSnooperJammerInterface=$2; shift;;
|
||||||
-a|--asynchronous) HANDSHAKEVerifierSynchronicity="non-blocking";;
|
-a|--asynchronous)
|
||||||
|
HandshakeSnooperVerifierSynchronicity="non-blocking";;
|
||||||
esac
|
esac
|
||||||
shift # Shift new parameters
|
shift # Shift new parameters
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
# ===================== < Fluxion Hooks > ==================== #
|
# ===================== < Fluxion Hooks > ==================== #
|
||||||
# ============================================================ #
|
# ============================================================ #
|
||||||
|
|
Loading…
Reference in New Issue