Updated to latest memflow/next

pull/7/head
ko1N 3 years ago
parent ff7b9929d0
commit f0c992abc4

@ -18,12 +18,12 @@ crate-type = ["lib", "cdylib"]
[dependencies]
memflow = { git = "https://github.com/memflow/memflow", branch = "next", features = ["plugins", "memmapfiles"] }
log = { version = "0.4", default-features = false }
simple_logger = "1.0"
leechcore-sys = { path = "../leechcore-sys" }
[dev-dependencies]
clap = "2.33"
memflow-win32 = { git = "https://github.com/memflow/memflow", branch = "next" }
simple_logger = "1.0"
memflow-win32 = { git = "https://github.com/memflow/memflow-win32", branch = "main" }
[features]
default = []

@ -32,7 +32,7 @@ fn main() {
Args::new().insert("device", "FPGA")
};
let connector = memflow_pcileech::create_connector(&connector_args, Level::Debug)
let connector = memflow_pcileech::create_connector(&connector_args)
.expect("unable to create pcileech connector");
let mut os = Win32Kernel::builder(connector)

@ -22,7 +22,7 @@ fn main() {
Args::new().insert("device", "FPGA")
};
let mut connector = memflow_pcileech::create_connector(&connector_args, Level::Debug)
let mut connector = memflow_pcileech::create_connector(&connector_args)
.expect("unable to create pcileech connector");
let metadata = connector.metadata();

@ -5,7 +5,7 @@ use std::ptr;
use std::slice;
use std::sync::{Arc, Mutex};
use log::{error, info, Level};
use log::{error, info};
use memflow::cglue;
use memflow::mem::phys_mem::*;
@ -424,14 +424,9 @@ fn validator() -> ArgsValidator {
/// Creates a new PciLeech Connector instance.
#[connector(name = "pcileech", help_fn = "help", target_list_fn = "target_list")]
pub fn create_connector(args: &Args, log_level: Level) -> Result<PciLeech> {
simple_logger::SimpleLogger::new()
.with_level(log_level.to_level_filter())
.init()
.ok();
pub fn create_connector(args: &Args) -> Result<PciLeech> {
let validator = validator();
match validator.validate(&args) {
match validator.validate(args) {
Ok(_) => {
let device = args
.get("device")

Loading…
Cancel
Save