antivm 1.1.0

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

use crate::config::{VM_DRIVERS, VM_DRIVER_DIRS};
use crate::protection::Protection;

impl Protection {
    pub(crate) fn check_vm(&self) {
        for dir in VM_DRIVER_DIRS {
            for driver in VM_DRIVERS {
                if Path::new(dir).join(driver).exists() {
                    self.on_fail();
                }
            }
        }
    }
}