Skip to content

Commit

Permalink
feat: dump the raw content of ESE databases and analyse SRUM databases
Browse files Browse the repository at this point in the history
  • Loading branch information
catarinadf authored and alexkornitzer committed Oct 7, 2023
1 parent 5d908fd commit 8acca7c
Show file tree
Hide file tree
Showing 20 changed files with 1,464 additions and 301 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ target
# Profiling
flamegraph.svg
perf.data
perf.data.old
perf.data.old
38 changes: 38 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "chainsaw"
version = "2.7.3"
repository = "https://github.com/countercept/chainsaw"
repository = "https://github.com/WithSecureLabs/chainsaw"
description = "Rapidly Search and Hunt Through Windows Forensic Artefacts"
authors = ["James Dorgan <james@dorgan.io>","Alex Kornitzer <alex.kornitzer@withsecure.com>"]
readme = "README.md"
Expand All @@ -20,8 +20,10 @@ chrono-tz = { version = "0.8", features = ["serde"] }
clap = { version = "4.0", features = ["derive"] }
crossterm = "0.27"
evtx = "0.8"
hex = "0.4.3"
indicatif = "0.17"
lazy_static = "1.4.0"
libesedb = "0.2.4"
mft = "0.6"
notatin = "1.0"
once_cell = "1.0"
Expand Down
552 changes: 344 additions & 208 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/analyse/mod.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub mod shimcache;
pub mod srum;
8 changes: 4 additions & 4 deletions src/analyse/shimcache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use chrono::{DateTime, Utc};
use regex::Regex;

use crate::file::hve::{
amcache::{AmcacheArtifact, FileEntry, ProgramEntry},
amcache::{AmcacheArtefact, FileEntry, ProgramEntry},
shimcache::{EntryType, ShimcacheEntry},
Parser as HveParser,
};
Expand Down Expand Up @@ -47,12 +47,12 @@ impl TimelineEntity {
}
}

pub struct ShimcacheAnalyzer {
pub struct ShimcacheAnalyser {
amcache_path: Option<PathBuf>,
shimcache_path: PathBuf,
}

impl ShimcacheAnalyzer {
impl ShimcacheAnalyser {
pub fn new(shimcache_path: PathBuf, amcache_path: Option<PathBuf>) -> Self {
Self {
amcache_path,
Expand Down Expand Up @@ -83,7 +83,7 @@ impl ShimcacheAnalyzer {
);

// Load amcache
let amcache: Option<AmcacheArtifact> = if let Some(amcache_path) = &self.amcache_path {
let amcache: Option<AmcacheArtefact> = if let Some(amcache_path) = &self.amcache_path {
let mut amcache_parser = HveParser::load(amcache_path)?;
cs_eprintln!(
"[+] Amcache hive file loaded from {:?}",
Expand Down
Loading

0 comments on commit 8acca7c

Please sign in to comment.