-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jan Starke
committed
Jun 29, 2021
1 parent
98c71a9
commit 4429632
Showing
6 changed files
with
67 additions
and
53 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#[allow(non_snake_case)] | ||
#[allow(non_camel_case_types)] | ||
mod pefile; | ||
|
||
#[allow(non_snake_case)] | ||
#[allow(non_camel_case_types)] | ||
mod winnt; | ||
mod utils; | ||
mod msg; | ||
|
||
pub use pefile::PEFile as PEFile; | ||
pub use msg::Message as Message; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use std::path::PathBuf; | ||
use libpefile::*; | ||
|
||
#[test] | ||
fn last_last() -> Result<(), std::io::Error> { | ||
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap(); | ||
let dll_file = PathBuf::from(format!("{}/samples/msaudite.dll", manifest_dir)); | ||
let pefile = PEFile::new(dll_file)?; | ||
|
||
let msg = pefile.messages_iter()?.last().unwrap(); | ||
assert_eq!("Highest System-Defined Audit Message Value.\r\n\u{0}", msg.text); | ||
Ok(()) | ||
} |