RCayre / mirage

Mirage is a powerful and modular framework dedicated to the security analysis of wireless communications.
https://homepages.laas.fr/rcayre/mirage-documentation
MIT License
245 stars 42 forks source link

Problem with pipe to have logs #23

Open clementlagneau opened 3 years ago

clementlagneau commented 3 years ago

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

Thanks, Regards,