web-analyzer 0.1.10

Enterprise domain security & intelligence platform — WHOIS, DNS, SEO, tech detection, subdomain takeover, API security scanning, and more
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(feature = "cloudflare-bypass")]
#[tokio::test]
async fn test_cloudflare_bypass() {
    use web_analyzer::cloudflare_bypass::find_real_ip;

    let result = find_real_ip("example.com", None).await;
    assert!(result.is_ok(), "Failed: {:?}", result.err());

    let info = result.unwrap();
    assert_eq!(info.domain, "example.com");

    println!(
        "cloudflare_bypass test passed, protected={}, found {} IPs",
        info.cloudflare_protected,
        info.found_ips.len()
    );
}