Skip to content

Commit

Permalink
Added "noxml" Flag For Scan File Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
esc0rtd3w committed Jan 25, 2017
1 parent c26f706 commit ad396e6
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions wifi-hacker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3049,6 +3049,7 @@ getESSID(){
;;

"t" | "T")
cleanTempScanResultsFile "noxml"
openScanTargetsAsText
getESSID
;;
Expand Down Expand Up @@ -3094,6 +3095,7 @@ getBSSID(){
;;

"t" | "T")
cleanTempScanResultsFile "noxml"
openScanTargetsAsText
getBSSID
;;
Expand Down Expand Up @@ -3139,6 +3141,7 @@ getChannel(){
;;

"t" | "T")
cleanTempScanResultsFile "noxml"
openScanTargetsAsText
getChannel
;;
Expand Down Expand Up @@ -6942,7 +6945,7 @@ openScanTargetsAsText(){

while readXML "essid" ""; do

if [[ $E = essid ]]; then
if [[ $E = " cloaked=\"false\"" ]]; then
echo $C
fi

Expand Down Expand Up @@ -6970,9 +6973,22 @@ openScanTargetsAsText(){

cleanTempScanResultsFile(){

rm "$defaultScanOutputIVS"
rm "$defaultScanOutputXML"
rm "$defaultScanOutputTXT"
flag="$1"

case "$flag" in

"")
rm "$defaultScanOutputIVS"
rm "$defaultScanOutputXML"
rm "$defaultScanOutputTXT"
;;

"noxml")
rm "$defaultScanOutputIVS"
rm "$defaultScanOutputTXT"
;;

esac

}

Expand Down

0 comments on commit ad396e6

Please sign in to comment.