recon-cli 0.94.1

Versatile network reconnaissance CLI: HTTP/TLS/DNS, multi-protocol probes, and a Rhai script engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Usage: recon --script agent-browser [URL]
//
// Minimal end-to-end browser flow: open, snapshot interactive elements,
// close. Guards on agent-browser availability so the script exits
// cleanly when the binary isn't installed.

if !agentBrowser::available {
    print("agent-browser not installed; skipping");
    return 2;
}
let url = if args.len() > 1 { args[1] } else { "https://example.com" };
agentBrowser::open(url);
let title = agentBrowser::get("title");
let snap = agentBrowser::snapshot(true);
agentBrowser::close();
print(`${url}: ${title.title}`);
print(`  interactive elements captured (${json_stringify(snap).len()} bytes)`);
return 0;