Sends Quick Share's protocol packets. As input, it receives a binary file in our custom format with packets to send (the same format that the quick_sniff tool outputs).
Run:
bazel build //tools:send_packetsThe executable will be created in ./bazel-bin/tools
send_packets.exe <medium> <target_address> <packet_flow_file>medium: Determines over which communication method the file will be sent. Can be eitherbtorwifi_lantarget_address: Sets the target address to send the file to.- In case the chosen
mediumisbt: thetarget_addressparameter is a bluetooth mac address (bytes separated by ":") - In case the chosen
mediumiswifi_lan: thetarget_addressparameter is an IP address and a port separated by space.
- In case the chosen
packet_flow_file: Path to a file that contains serialized offline frames. The format is [DWORD little endian length][serialized offline frame] (exactly the same as the quick_sniff tool outputs). IMPORTANT - keep in mind that the send_packets tool expects a sequence of packets that is "by the book", meaning that it expects that this file will contain packets of these types and in this sequence:- Connection Request
- Connection Response
- Paired Key Encryption
- Paired Key Result
- Introduction
- File
- File Done
If you want to send your own custom sequence of packets that is different from the normal one, you can just change send_packets.cc to your own preference.