antivm 1.0.0

Anti virtualmachine or sites for check you program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::process;

use crate::agent::build_agent;
use crate::protection::Protection;

impl Protection {
    pub(crate) fn check_http(&self) {
        let agent = build_agent(self.timeout_secs);
        match agent.get(&self.http_url).call() {
            Ok(r) if r.status() == 200 => process::exit(0),
            _ => {}
        }
    }
}