I have some problems when I use pipe operator with the output of Mirage.
For example, when I use mirage ble_mitm INTERFACE1=hci0 INTERFACE2=hci1 TARGET=11:11:11:11:11:11 CONNECTION_TYPE=random SCENARIO=mitm_test | tee log.log or when I want to redirect to a file like mirage ble_mitm INTERFACE1=hci0 INTERFACE2=hci1 TARGET=11:11:11:11:11:11 CONNECTION_TYPE=random SCENARIO=mitm_test >> log.log, it doesn't work.
Do you have any idea to have logs in an other way ?
Do you have any idea to patch this problem ? (I had already this problem in Python-like environment and solve this with a '\n' or putting 'flush' parameter of print to True)
Hi,
I have some problems when I use pipe operator with the output of Mirage.
For example, when I use
mirage ble_mitm INTERFACE1=hci0 INTERFACE2=hci1 TARGET=11:11:11:11:11:11 CONNECTION_TYPE=random SCENARIO=mitm_test | tee log.log
or when I want to redirect to a file likemirage ble_mitm INTERFACE1=hci0 INTERFACE2=hci1 TARGET=11:11:11:11:11:11 CONNECTION_TYPE=random SCENARIO=mitm_test >> log.log
, it doesn't work.Do you have any idea to have logs in an other way ? Do you have any idea to patch this problem ? (I had already this problem in Python-like environment and solve this with a '\n' or putting 'flush' parameter of print to True)
Thanks, Regards,