save handshakes to predefined path
This commit is contained in:
parent
ef73ad35e2
commit
c007574381
17
fluxion
17
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue