Rewrote target AP view to utilize FormatUtils.

This commit is contained in:
Matias Barcenas 2017-08-13 00:25:53 -05:00
parent 8e0a37218b
commit 9a041d95bd
1 changed files with 7 additions and 6 deletions

View File

@ -72,7 +72,7 @@ function exitmode() {
if [ ! $FLUXIONDebug ]; then
fluxion_header
echo -e "\n\n$CWht[$CRed-$CWht]$CRed $FLUXIONCleanupAndClosingNotice$CClr"
echo -e "$CWht[$CRed-$CWht]$CRed $FLUXIONCleanupAndClosingNotice$CClr"
local processes
readarray processes < <(ps -A)
@ -778,11 +778,12 @@ function set_target_ap() {
}
function view_target_ap_info() {
format_autosize "%*s$CBlu%7s$CClr: %-32b%*s\n"
printf "$FormatAutosize" "" "ESSID" "$APTargetSSID / $APTargetEncryption" ""
printf "$FormatAutosize" "" "Channel" "$APTargetChannel" ""
printf "$FormatAutosize" "" "BSSID" "$APTargetMAC ($CYel${APTargetMaker:-UNKNOWN}$CClr)" ""
echo -e " "$CBlu" SSID"$CClr": $APTargetSSID / $APTargetEncryption"
echo -e " "$CBlu"Channel"$CClr": $APTargetChannel"
#echo -e " "$CBlu" Speed"$CClr": ${speed:2} Mbps"
echo -e " "$CBlu" BSSID"$CClr": $APTargetMAC ($CYel${APTargetMaker:-UNKNOWN}$CClr)"
echo
}