forked from NationalSecurityAgency/ghidra
-
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.
GP-1864 Added loader for dump files. Initial implementation supports MS
Minidump, Userdump and Pagedump formats.
- Loading branch information
Showing
83 changed files
with
13,552 additions
and
50 deletions.
There are no files selected for viewing
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
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
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
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
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
48 changes: 48 additions & 0 deletions
48
Ghidra/Features/FileFormats/data/languages/dumpfile.opinion
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,48 @@ | ||
<opinions> | ||
<constraint loader="Dump File Loader"> | ||
<constraint compilerSpecID="windows"> | ||
<!-- Page/Userdump MachineImageType values --> | ||
<!-- constraint primary="21064" processor="ALPHA" endian="little" size="64" --> | ||
<constraint primary="1824" processor="ARM" endian="little" size="32" variant="v8" /> | ||
<constraint primary="2080" processor="ARM" endian="little" size="32" variant="v8T" /> <!-- THUMB --> | ||
<constraint primary="2336" processor="ARM" endian="little" size="32" variant="v8T" /> <!-- THUMB --> | ||
<constraint primary="2577" processor="ARM" endian="little" size="32" variant="v8T" /> <!-- THUMB --> | ||
<constraint primary="70001" processor="ARM" endian="little" size="32" variant="v8T" /> <!-- THUMB --> | ||
<!-- constraint primary="2200" processor="IA64" endian="little" size="64" --> | ||
<constraint primary="4000" processor="MIPS" endian="little" size="32" variant="default" /> <!-- R4000 --> | ||
<!-- constraint primary="821" processor="MOTOROLA" endian="little" size="64" --> | ||
<!-- constraint primary="18767" processor="OPTIL" endian="little" size="64" --> | ||
<constraint primary="103" processor="SuperH3" endian="little" size="32" /> | ||
<constraint primary="104" processor="SuperH4" endian="little" size="32" /> | ||
<constraint primary="10003" processor="SuperH4" endian="little" size="32" /> | ||
<constraint primary="10004" processor="SuperH4" endian="little" size="32" /> | ||
<constraint primary="10005" processor="SuperH4" endian="little" size="32" /> | ||
<constraint primary="386" processor="x86" endian="little" size="32" /> | ||
<constraint primary="486" processor="x86" endian="little" size="32" /> | ||
<constraint primary="586" processor="x86" endian="little" size="32" /> | ||
<constraint primary="8664" processor="x86" endian="little" size="64" /> | ||
<!-- MDMP Architecture values --> | ||
<constraint primary="0" processor="x86" endian="little" size="32" /> | ||
<constraint primary="1" processor="MIPS" endian="little" size="32" /> | ||
<!-- constraint primary="2" processor="ALPHA" endian="little" size="32" --> | ||
<constraint primary="4" processor="SuperH4" endian="little" size="32" /> | ||
<constraint primary="5" processor="ARM" endian="little" size="32" /> | ||
<!-- constraint primary="6" processor="IA64" endian="little" size="32" --> | ||
<!-- constraint primary="7" processor="ALPHA64" endian="little" size="32" --> | ||
<!-- constraint primary="8" processor="MSIL" endian="little" size="32" --> | ||
<constraint primary="9" processor="x86" endian="little" size="64" /> | ||
<!-- constraint primary="10" processor="IA32/64" endian="little" size="32" --> | ||
<!-- constraint primary="11" processor="NEUTRAL" endian="little" size="32" --> | ||
<constraint primary="12" processor="ARM" endian="little" size="64" /> | ||
<constraint primary="13" processor="ARM" endian="little" size="32" /> | ||
<!-- constraint primary="14" processor="IA32" endian="little" size="32" --> | ||
</constraint> | ||
<constraint compilerSpecID="default"> | ||
<constraint primary="601" processor="PowerPC" endian="little" size="32" /> | ||
<constraint primary="603" processor="PowerPC" endian="little" size="32" /> | ||
<constraint primary="604" processor="PowerPC" endian="little" size="32" /> | ||
<constraint primary="620" processor="PowerPC" endian="little" size="32" /> | ||
<constraint primary="3" processor="PowerPC" endian="little" size="32" /> | ||
</constraint> | ||
</constraint> | ||
</opinions> |
35 changes: 35 additions & 0 deletions
35
Ghidra/Features/FileFormats/ghidra_scripts/ApplyPEToDumpFileScript.java
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,35 @@ | ||
/* ### | ||
* IP: GHIDRA | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
//Given a raw binary PE image, | ||
//this script will create data structures | ||
//representing the PE header. Including, | ||
//but not limited to, the PE header, | ||
//section headers, optional header, etc. | ||
//@category Binary | ||
|
||
import ghidra.app.script.GhidraScript; | ||
import ghidra.file.formats.dump.cmd.ModuleToPeHelper; | ||
|
||
public class ApplyPEToDumpFileScript extends GhidraScript { | ||
|
||
@Override | ||
public void run() throws Exception { | ||
if (currentProgram != null) { | ||
ModuleToPeHelper.queryModules(currentProgram, monitor); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.