Fixed mawk vs gawk bug & added missing quotes.

This commit is contained in:
Matias Barcenas 2017-08-09 23:30:23 -05:00
parent c5a15bcb6c
commit 4a47ee2f88
3 changed files with 5 additions and 5 deletions

View File

@ -864,8 +864,8 @@ function start_attack() {
CaptivePortalServerPID=$!
echo -e "$FLUXIONVLine Starting access point jammer as daemon..."
echo -e "$APTargetMAC" > "$FLUXIONWorkspacePath/mdk3.txt"
xterm $FLUXIONHoldXterm $BOTTOMRIGHT -bg "#000000" -fg "#FF0009" -title "FLUXION AP Jammer [mdk3] $APTargetSSID" -e mdk3 $WIMonitor d -b "$FLUXIONWorkspacePath/mdk3.txt" -c $APTargetChannel &
echo -e "$APTargetMAC" > "$FLUXIONWorkspacePath/mdk3_blacklist.lst"
xterm $FLUXIONHoldXterm $BOTTOMRIGHT -bg "#000000" -fg "#FF0009" -title "FLUXION AP Jammer [mdk3] $APTargetSSID" -e mdk3 $WIMonitor d -b "$FLUXIONWorkspacePath/mdk3_blacklist.lst" -c $APTargetChannel &
echo -e "$FLUXIONVLine Starting authenticator script..."
xterm -hold $TOPRIGHT -title "FLUXION AP Authenticator" -e "$FLUXIONWorkspacePath/captive_portal_authenticator.sh" &

View File

@ -21,8 +21,8 @@ function handshake_verifier_daemon() {
local handshakeCheckResult=1 # Assume invalid
while [ $handshakeCheckResult -ne 0 -a "$handshakeVerifierState" = "running" ]; do
sleep 3
pyrit -r $4 -o ${4/.cap/-clean.cap} stripLive
hash_check_handshake $3 ${4/.cap/-clean.cap} "${@:5:2}"
pyrit -r "$4" -o "${4/.cap/-clean.cap}" stripLive
hash_check_handshake "$3" "${4/.cap/-clean.cap}" "${@:5:2}"
handshakeCheckResult=$?
done

View File

@ -27,7 +27,7 @@ function hash_check_handshake() {
if [ "$hashMeta" ]; then
local hashID=$(echo "$hashMeta" | awk -F'[ #:]' '{print $3}')
hashData=$(echo "${analysis[@]}" | awk "\$0~/#$hashID: HMAC_[[:alnum:]]+_AES/{ print \$0 }")
hashData=$(echo "${analysis[@]}" | awk "\$0~/#$hashID: HMAC_SHA[0-9]+_AES/{ print \$0 }")
fi;;
"aircrack-ng")
readarray analysis < <(aircrack-ng "$handshakePath" 2> $HashOutputDevice)