sn0int 0.25.0

Semi-automatic OSINT framework and package manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::engine::ctx::State;
use crate::hlua::{self, AnyLuaValue};
use std::sync::Arc;


pub fn keyring(lua: &mut hlua::Lua, state: Arc<dyn State>) {
    lua.set("keyring", hlua::function1(move |query: String| -> Vec<AnyLuaValue> {
        state.keyring(&query).into_iter()
            .map(|x| x.to_lua().unwrap())
            .collect()
    }))
}