From c00757438106406613449ec4f52ca8194d7ddcc4 Mon Sep 17 00:00:00 2001 From: strasharo Date: Fri, 18 Mar 2016 02:43:32 +0200 Subject: [PATCH] save handshakes to predefined path --- fluxion | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/fluxion b/fluxion index b324171..c991aa0 100755 --- a/fluxion +++ b/fluxion @@ -15,6 +15,7 @@ clear ##################################### < CONFIGURATION > ##################################### DUMP_PATH="/tmp/TMPflux" +HANDSHAKE_PATH="/root/handshakes" # Deauth duration during handshake capture DEAUTHTIME="30" revision=1 @@ -449,11 +450,17 @@ function checkdependences { mostrarheader checkdependences -# Create Workbook +# Create working directory if [ ! -d $DUMP_PATH ]; then - mkdir $DUMP_PATH &>$flux_output_device + mkdir -p $DUMP_PATH &>$flux_output_device fi +# Create handshake directory +if [ ! -d $HANDSHAKE_PATH ]; then + mkdir -p $HANDSHAKE_PATH &>$flux_output_device +fi + + if [ $FLUX_DEBUG != 1 ]; then @@ -2298,6 +2305,7 @@ function checkhandshake { if [ "$handshakemode" = "normal" ]; then if aircrack-ng $DUMP_PATH/$Host_MAC-01.cap | grep -q "1 handshake"; then killall airodump-ng &>$flux_output_device + wpaclean $HANDSHAKE_PATH/$Host_SSID-$Host_MAC.cap $DUMP_PATH/$Host_MAC-01.cap &>$flux_output_device webinterface break else @@ -2308,13 +2316,14 @@ function checkhandshake { if pyrit -r $DUMP_PATH/test.cap analyze 2>&1 | grep -q "good,"; then killall airodump-ng &>$flux_output_device + pyrit -r $DUMP_PATH/test.cap -o $HANDSHAKE_PATH/$Host_SSID-$Host_MAC.cap strip &>$flux_output_device webinterface break else if aircrack-ng $DUMP_PATH/$Host_MAC-01.cap | grep -q "1 handshake"; then - Handshake_statuscheck="${yellow}Corrupt$transparent" + Handshake_statuscheck="${yellow}Corrupted$transparent" else - Handshake_statuscheck="${red}Not_Found$transparent" + Handshake_statuscheck="${red}Not_found$transparent" fi fi