Go to file
2020-06-22 23:15:28 +07:00
.cargo Update scan algorithm 2020-06-09 04:13:15 +07:00
logs Update scan algorithm 2020-06-09 04:13:15 +07:00
other check read access when dump file name in _FILE_OBJECT 2020-05-29 01:39:32 +07:00
src Sample repl setup 2020-06-22 23:15:28 +07:00
.gitignore first init 2020-02-15 17:39:45 +07:00
Cargo.lock Generalize the API for common scan and return json 2020-06-17 01:47:20 +07:00
Cargo.toml Generalize the API for common scan and return json 2020-06-17 01:47:20 +07:00
nonpaged-pool-range.md Update non-paged pool range documentation 2020-05-21 17:36:06 +07:00
README.md update READMME 2020-05-19 04:20:04 +07:00

LPUS (A live pool-tag scanning solution)

This is the frontend to the live pool tag scanning solution, the backend is a driver (which is now closed source).

How this works

In simple way, we use PDB files to get the global variable offsets and structure definitions. The backend finds the kernel base and use these values to calculate the nonpaged-pool range. A more detailed report is in nonpaged-pool-range.md The frontend calls the backend to scan for a specific tag.

How to use

Example is here.

use lpus::{
    driver_state::{DriverState}
};

fn main() -> Result<(), Box<dyn Error>> {
    let mut driver = DriverState::new();
    println!("NtLoadDriver()   -> 0x{:x}", driver.startup());
    driver.scan_pool(b"Tag ", |pool_addr, header, data_addr| {
    })?;
    println!("NtUnloadDriver() -> 0x{:x}", driver.shutdown());
}

The closure is a mutable closure, so you can just put a vector and saves the result. The function signature for the closure is: FnMut(u64, &[u8], u64) -> Result<bool, std::error::Error> Parsing the struct data is up to you. You can use driver.deref_addr(addr, &value) to dereference an address in kernel space and driver.pdb_store.get_offset_r("offset")? to get an offset from PDB file.