Pārlūkot izejas kodu

always set mitm status first time through

tags/v0.4.0
Jonathan Cobb pirms 5 gadiem
vecāks
revīzija
94f04d7046
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      automation/roles/mitmproxy/files/mitmdump_monitor.sh

+ 1
- 0
automation/roles/mitmproxy/files/mitmdump_monitor.sh Parādīt failu

@@ -42,6 +42,7 @@ function ensureMitmOff {
}

log "Watching marker file ${BUBBLE_MITM_MARKER} ..."
touch ${BUBBLE_MITM_MARKER} # first time through, always check and set on/off state
while : ; do
if [[ $(stat -c %Y ${BUBBLE_MITM_MARKER}) -gt $(stat -c %Y ${ROOT_KEY_MARKER}) ]] ; then
if [[ ! -z "$(cmp -b ${ROOT_KEY_MARKER} ${BUBBLE_MITM_MARKER})" ]] ; then


Notiek ielāde…
Atcelt
Saglabāt