Ver código fonte

always set mitm status first time through

tags/v0.4.0
Jonathan Cobb 5 anos atrás
pai
commit
94f04d7046
1 arquivos alterados com 1 adições e 0 exclusões
  1. +1
    -0
      automation/roles/mitmproxy/files/mitmdump_monitor.sh

+ 1
- 0
automation/roles/mitmproxy/files/mitmdump_monitor.sh Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar