Locates wifi devices using services such as wigle.net
After creating an account on wigle.net, visit https://wigle.net/account to get your API Token. It correspondes to the "Encoded for use" field.
use async_std::task;
use fenrir::api::*;
use fenrir::wigle::api::*;
fn main() -> Result<(), surf::Exception> {
let token = std::env::var("WIGLE_TOKEN").expect("Provide your WIGLE_TOKEN as an environment variable");
task::block_on(async {
let wigle: Wigle = Fenrir::new(Some(token));
let geo_response = wigle.geocode("1600 Amphitheatre Parkway").await?;
dbg!(geo_response);
let search_response = wigle.search_bssid("00:00:00:00:00:00").await?;
dbg!(search_response);
Ok(())
})
}
It does not require an API token, it is completely free.
use async_std::task;
use fenrir::api::*;
use fenrir::mylnikov::api::*;
fn main() -> Result<(), surf::Exception> {
task::block_on(async {
let mylnikov: Mylnikov = Fenrir::new(None);
let search_response = mylnikov.search_bssid("00:00:00:00:00:00").await?;
dbg!(search_response);
Ok(())
})
}