Added signal indicator to target AP selector.

This commit is contained in:
Matias Barcenas 2017-08-08 20:09:05 -05:00
parent b4d1643b79
commit 0ab5beb965
1 changed files with 8 additions and 4 deletions

View File

@ -9,7 +9,7 @@ FLUXIONWorkspacePath="/tmp/fluxspace"
FLUXIONHashPath="$FLUXIONPath/attacks/Handshake Snooper/handshakes" FLUXIONHashPath="$FLUXIONPath/attacks/Handshake Snooper/handshakes"
FLUXIONScanDB="dump" FLUXIONScanDB="dump"
FLUXIONNoiseFloor=90 FLUXIONNoiseFloor=-90
FLUXIONVersion=3 FLUXIONVersion=3
FLUXIONRevision=0 FLUXIONRevision=0
@ -717,6 +717,7 @@ function set_target_ap() {
local TargetAPCandidatesClientsCount=() local TargetAPCandidatesClientsCount=()
local TargetAPCandidatesChannel=() local TargetAPCandidatesChannel=()
local TargetAPCandidatesSecurity=() local TargetAPCandidatesSecurity=()
local TargetAPCandidatesSignal=()
local TargetAPCandidatesPower=() local TargetAPCandidatesPower=()
local TargetAPCandidatesESSID=() local TargetAPCandidatesESSID=()
local TargetAPCandidatesColor=() local TargetAPCandidatesColor=()
@ -731,14 +732,17 @@ function set_target_ap() {
TargetAPCandidatesChannel[i]=$(echo $candidateAPInfo | cut -d , -f 4) TargetAPCandidatesChannel[i]=$(echo $candidateAPInfo | cut -d , -f 4)
TargetAPCandidatesSecurity[i]=$(echo $candidateAPInfo | cut -d , -f 6) TargetAPCandidatesSecurity[i]=$(echo $candidateAPInfo | cut -d , -f 6)
TargetAPCandidatesPower[i]=$(echo $candidateAPInfo | cut -d , -f 9) TargetAPCandidatesPower[i]=$(echo $candidateAPInfo | cut -d , -f 9)
# Bug: If value < -90, it'll be < 0%, if > -60 it'll be > 100%, too tired to fix this now.
TargetAPCandidatesSignal[i]=$((( ${TargetAPCandidatesPower[i]} * 10 - $FLUXIONNoiseFloor * 10 ) / 3 ))
TargetAPCandidatesESSID[i]=$(echo $candidateAPInfo | cut -d , -f 14) TargetAPCandidatesESSID[i]=$(echo $candidateAPInfo | cut -d , -f 14)
TargetAPCandidatesColor[i]=$([ ${TargetAPCandidatesClientsCount[i]} -gt 0 ] && echo $CRed || echo $CClr) TargetAPCandidatesColor[i]=$([ ${TargetAPCandidatesClientsCount[i]} -gt 0 ] && echo $CGrn || echo $CClr)
done done
local header=$(printf "%44s\n\n$CRed[$CYel * $CRed]$CClr %-34s %4s %3s %4s %6s %18s\n" "WIFI LIST" "ESSID" "PWR" "CL" "CH" "SEC" "MAC ADDRESS") local header=$(printf "%44s\n\n$CRed[$CYel * $CRed]$CClr %-30s %4s %3s %3s %4s %6s %18s\n" "WIFI LIST" "ESSID" "SIG" "PWR" "CL" "CH" "SEC" "MAC ADDRESS")
io_query_format_fields "$header" "$CRed[$CYel%03d$CRed]%b %-34s %4s %3d %4s %6s %18s\n" \ io_query_format_fields "$header" "$CRed[$CYel%03d$CRed]%b %-30s %3s%% %3s %3d %4s %6s %18s\n" \
TargetAPCandidatesColor[@] \ TargetAPCandidatesColor[@] \
TargetAPCandidatesESSID[@] \ TargetAPCandidatesESSID[@] \
TargetAPCandidatesSignal[@] \
TargetAPCandidatesPower[@] \ TargetAPCandidatesPower[@] \
TargetAPCandidatesClientsCount[@] \ TargetAPCandidatesClientsCount[@] \
TargetAPCandidatesChannel[@] \ TargetAPCandidatesChannel[@] \