2 releases

0.1.1 Jul 14, 2020
0.1.0 Jul 13, 2020

#801 in Authentication

MIT/Apache

14KB
310 lines

fenrir

Locates wifi devices using services such as wigle.net

Crates.io Build Status MIT licensed Apache-2.0 licensed

Documentation

Wigle.net api

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

## Mylnikov api

It does not require an API token, it is completely free.

```rust
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(())
    })
}

Dependencies

~6.5MB
~120K SLoC