NtQuery / Scylla

Imports Reconstructor
GNU General Public License v3.0
1.11k stars 233 forks source link

Can there be an option that "Don't compact raw data"? #49

Open lifenjoiner opened 5 years ago

lifenjoiner commented 5 years ago

Don't compact raw data means keep the RawOffset/RawSize the same as VirutalOffset/VirutalSize.

Why? In most case, we are researching the dumped file. Keep the same address/offset makes it easier to locate the data in hex editors, debuggers and other PE tools. Of course, we can compact raw data giving a smaller final PE file.

Related code: https://github.com/NtQuery/Scylla/blob/0ca2c1a0da5dca4bf124cbc9ab127439b2b8c097/Scylla/PeParser.cpp#L1083-L1092 https://github.com/NtQuery/Scylla/search?q=alignAllSectionHeaders&unscoped_q=alignAllSectionHeaders