Crates.io | bluesniff |
lib.rs | bluesniff |
version | 1.0.0 |
source | src |
created_at | 2024-11-02 20:43:25.490877 |
updated_at | 2024-11-02 20:43:25.490877 |
description | A fast and simple Bluetooth scanner which uses the btleplug library to scan for nearby Bluetooth devices. |
homepage | https://github.com/0x646e73/bluesniff#readme |
repository | https://github.com/0x646e73/bluesniff |
max_upload_size | |
id | 1433166 |
size | 30,239 |
bluesniff is a simple Bluetooth device scanner written in Rust. It scans for nearby Bluetooth devices and lists their MAC addresses and names. This project uses the btleplug
crate to handle Bluetooth operations and the tokio
crate for asynchronous functionality.
To build and run bluesniff, you need:
You can install bluesniff directly from crates.io
:
cargo install bluesniff
Alternatively, if you want to build from source, clone the repository:
Clone the repository:
git clone https://github.com/yourusername/bluesniff.git
cd bluesniff
Build the project:
cargo build
Run the scanner with:
cargo run
Note: You may need to run the command with sudo
depending on your system configuration.
Upon running bluesniff, the program will start scanning for Bluetooth devices for a specified duration (5 seconds). It will display the MAC addresses and names of any detected devices.
Example output:
[BLUESNIFF] Initializing scan...
[BLUESNIFF] Scanning for Bluetooth devices...
[BLUESNIFF] Address: XX:XX:XX:XX:XX:XX, Name: Device Name
[BLUESNIFF] Done scanning...
Contributions are welcome! If you would like to improve bluesniff, feel free to fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.