fenrir

Crates.iofenrir
lib.rsfenrir
version0.1.1
sourcesrc
created_at2020-07-13 20:08:55.868324
updated_at2020-07-14 17:43:12.072202
descriptionLocates wifi devices using services such as wigle.net
homepage
repositoryhttps://github.com/wisespace-io/fenrir
max_upload_size
id264806
size39,192
Flávio Oliveira (wisespace-io)

documentation

README

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(())
    })
}
Commit count: 10

cargo fmt