Hello! In the string:
cap2hccapx "/tmp/hc_captures/$bssid-01.cap" "/tmp/hc_handshakes/$bssid.hccapx" &> /dev/null
the script checks the *-01.cap file permanently. Even if there are new captures, the script will test only the first one. So it makes impossible to catch a handshake if in the first capture it is absent.
So to fix it, we should replace the string with something like:
*cap2hccapx "`ls /tmp/hc_captures/$bssid-.cap | tail -n 1`" "/tmp/hc_handshakes/$bssid.hccapx" &> /dev/null**
Or instead to add
rm "/tmp/hc_captures/$bssid-01.cap"
just after
rm "/tmp/hc_handshakes/$bssid.hccapx" &> /dev/null
Hello! In the string:
cap2hccapx "/tmp/hc_captures/$bssid-01.cap" "/tmp/hc_handshakes/$bssid.hccapx" &> /dev/null
the script checks the *-01.cap file permanently. Even if there are new captures, the script will test only the first one. So it makes impossible to catch a handshake if in the first capture it is absent.So to fix it, we should replace the string with something like: *cap2hccapx "`ls /tmp/hc_captures/$bssid-.cap | tail -n 1`" "/tmp/hc_handshakes/$bssid.hccapx" &> /dev/null**
Or instead to add
rm "/tmp/hc_captures/$bssid-01.cap"
just afterrm "/tmp/hc_handshakes/$bssid.hccapx" &> /dev/null