diff options
| author | Mason Reed <mason@vector35.com> | 2024-11-12 23:15:56 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2024-11-12 23:15:56 -0500 |
| commit | 30a0fbb5839b08dc58efe602a5cd19c90fbd4c50 (patch) | |
| tree | 09dba4a58fb0954d902ef48b45dd5c457350c7da /plugins | |
| parent | 0bf7fa015147168cd23dbd1c2e334c76b37eeefc (diff) | |
WARP: Set fixed image base for `sigem`
Should fix low address sections colliding with non relocatable constants
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/warp/src/bin/sigem.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/warp/src/bin/sigem.rs b/plugins/warp/src/bin/sigem.rs index 69193404..6076e7d5 100644 --- a/plugins/warp/src/bin/sigem.rs +++ b/plugins/warp/src/bin/sigem.rs @@ -50,10 +50,16 @@ struct Args { } fn default_settings(bn_settings: &Settings) -> Value { + // TODO: Make these settings configurable through the CLI let mut settings = json!({ "analysis.linearSweep.autorun": false, "analysis.signatureMatcher.autorun": false, "analysis.mode": "full", + // The reason we need to do this is a little unfortunate. + // Basically some of the COFF's have really low image bases that confuses + // Analysis and also our basic block GUID when a constant value points to a low address section. + // TODO: This might not exist, we should set this based on the view. + "loader.imageBase": 0x1000000, }); // If WARP is enabled we must turn it off to prevent matching on other stuff. |
