schollz / find3-cli-scanner

The command-line scanner that supports Bluetooth and WiFi
https://www.internalpositioning.com/doc/tracking_your_computer.md
149 stars 55 forks source link

possible wrong option sequence? #12

Closed richig-vienna closed 6 years ago

richig-vienna commented 6 years ago

In the source file "find3-cli-scanner/reverse.go" in line "36" is the code snippet "... tshark -I -i %s -a duration:%d -w %s", wifiInterface ..."

According to Wireshark manual [https://www.wireshark.org/docs/man-pages/tshark.html] the "-I" option before the "-i" option affects all interfaces (not only the specified one).

"... If used before the first occurrence of the -i option, it enables the monitor mode for all interfaces. If used after an -i option, it enables the monitor mode for the interface specified by the last -i option occurring before this option. ..."

I'm not sure, if this was the purpose in this specific code location.