From 94e6c94c13ef9694527cacd8e706fb32a9276319 Mon Sep 17 00:00:00 2001 From: deltaxflux Date: Sun, 10 Sep 2017 13:20:08 +0200 Subject: [PATCH] Fix bad translation, add ui for handshake --- attacks/Handshake Snooper/attack.sh | 14 +++++++++++++- fluxion.sh | 2 +- language/de.sh | 6 +++--- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/attacks/Handshake Snooper/attack.sh b/attacks/Handshake Snooper/attack.sh index af0b4b9..3832af5 100755 --- a/attacks/Handshake Snooper/attack.sh +++ b/attacks/Handshake Snooper/attack.sh @@ -17,6 +17,11 @@ function handshake_verifier_daemon() { trap handle_verifier_abort SIGABRT source lib/HashUtils.sh + touch $FLUXIONWorkspacePath/result.txt + echo "Looking for handshake:" > $FLUXIONWorkspacePath/result.txt + echo "" >> $FLUXIONWorkspacePath/result.txt + + xterm $FLUXIONHoldXterm $BOTTOMLEFT -bg "#000000" -fg "#FF0000" -title "UI for handshake" -e "while (true);do clear;cat $FLUXIONWorkspacePath/result.txt; sleep 1;done" & local handshakeCheckResult=1 # Assume invalid while [ $handshakeCheckResult -ne 0 -a "$handshakeVerifierState" = "running" ]; do @@ -24,6 +29,7 @@ function handshake_verifier_daemon() { pyrit -r "$4" -o "${4/.cap/-clean.cap}" stripLive hash_check_handshake "$3" "${4/.cap/-clean.cap}" "${@:5:2}" handshakeCheckResult=$? + echo -n "." >> $FLUXIONWorkspacePath/result.txt done # If handshake didn't pass verification, it was aborted. @@ -34,6 +40,11 @@ function handshake_verifier_daemon() { if [ ! -d "$hashDirectory" ]; then mkdir -p "$hashDirectory" fi + + # Custom print for ui + echo "+" >> $FLUXIONWorkspacePath/result.txt + echo "" >> $FLUXIONWorkspacePath/result.txt + echo "Handshake was found !" >> $FLUXIONWorkspacePath/result.txt # Move handshake to storage if one was acquired. mv "${4/.cap/-clean.cap}" "$2" @@ -45,6 +56,7 @@ function handshake_verifier_daemon() { function handshake_stop_verifier() { if [ "$HANDSHAKEVerifierPID" ]; then kill -s SIGABRT $HANDSHAKEVerifierPID &> $FLUXIONOutputDevice + killall xterm fi HANDSHAKEVerifierPID="" @@ -150,7 +162,7 @@ function handshake_set_verifier() { case "$IOQueryChoice" in "$FLUXIONHashVerificationMethodPyritOption") HANDSHAKEVerifier="pyrit";; "$FLUXIONHashVerificationMethodAircrackOption") HANDSHAKEVerifier="aircrack-ng";; - "$FLUXIONGeneralBackOption") + "$FLUXIONGeneralBackOption") handshake_unset_verifier handshake_unset_method return 1;; diff --git a/fluxion.sh b/fluxion.sh index ff1406b..84b146e 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -13,7 +13,7 @@ declare -r FLUXIONNoiseFloor=-90 declare -r FLUXIONNoiseCeiling=-60 declare -r FLUXIONVersion=3 -declare -r FLUXIONRevision=2 +declare -r FLUXIONRevision=3 declare -r FLUXIONDebug=${FLUXIONDebug:+1} declare -r FLUXIONWIKillProcesses=${FLUXIONWIKillProcesses:+1} diff --git a/language/de.sh b/language/de.sh index f9e5d0f..f9b0dee 100755 --- a/language/de.sh +++ b/language/de.sh @@ -16,7 +16,7 @@ FLUXIONLoadingWIDriverNotice="Warte auf Netzwerkarte \"\$wiSelected\"..." FLUXIONFindingConflictingProcessesNotice="Suche nach Diensten die Probleme verursachen können..." FLUXIONKillingConflictingProcessesNotice="Beende Diensten die Probleme verursachen können..." FLUXIONPhysicalWIDeviceUnknownError="${CRed}Die Physische Schnittstelle konnte nicht ermittelt werden" -FLUXIONStartingWIMonitorNotice="Starte die Grafikkarte im Monitor Mode" +FLUXIONStartingWIMonitorNotice="Starte die Netzwerkkarte im Monitor Mode" FLUXIONMonitorModeWIEnabledNotice="${CGrn}Monitormode konnte erfolgreich gestartet werden" FLUXIONMonitorModeWIFailedError="${CRed}Monitormode konnte nicht gestartet werden" # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> @@ -27,8 +27,8 @@ FLUXIONScannerFailedNotice="Netzwerkkarte ist möglichweise nicht geeignet ( Kei FLUXIONScannerDetectedNothingNotice="Keine Netzwerke konnten gefunden werden" # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> FLUXIONHashFileDoesNotExistError="Hash Datei existiert nicht" -FLUXIONHashInvalidError="${CRed}Error$CClr, falscher Hash" -FLUXIONHashValidNotice="${CGrn}Success$CClr,Hash Verifizierung erfolgreich" +FLUXIONHashInvalidError="${CRed}Fehler$CClr, falscher Hash" +FLUXIONHashValidNotice="${CGrn}Erfolgreich$CClr,Hash Verifizierung erfolgreich" FLUXIONPathToHandshakeFileQuery="Geben sie den Pfad zum Handshake an $CClr(Beispiel: /.../dump-01.cap)" FLUXIONAbsolutePathInfo="Absoluten Pfad" # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>