iocutil 0.1.3

IoC utilities for malware researchers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use iocutil::prelude::*;

fn main() {
	// read apikey from environment variable `$OTX_APIKEY`
	let client = AlienVaultOTXClient::default();

	let pulses: Vec<Pulse> = client.pulses_from(at!(1, weeks ago)).unwrap();

	pulses
	    .into_iter()
	    .inspect(|x| println!("\n# {}\n", x.name))
	    .map(|x| x.into())
	    .flat_map(|x: Vec<SampleHash>| x)
	    .for_each(|x: SampleHash| println!("* {}", x))
}