Просмотр исходного кода

always set mitm status first time through

tags/v0.4.0
Jonathan Cobb 5 лет назад
Родитель
Сommit
94f04d7046
1 измененных файлов: 1 добавлений и 0 удалений
  1. +1
    -0
      automation/roles/mitmproxy/files/mitmdump_monitor.sh

+ 1
- 0
automation/roles/mitmproxy/files/mitmdump_monitor.sh Просмотреть файл

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


Загрузка…
Отмена
Сохранить