Repository navigation
Reinstate the kernel32.dll exphash test - #647
Conversation
the kernel32.dll in pefile-tests is a different build from the one ce0e9801 was taken from . the old sha256 values from 2022 still match mfc40.dll and the 66c74e4c sample , but neither the old sha256 nor the md5 matches this kernel32.dll . radare2 ( rabin2 -E ) lists the same 954 exports in the same order , and the lowercase , comma joined names give 247dcd1aa98526819ecf3c09cb12ad83 , the same as get_exphash().
|
On reflection, adding comments to the tests is a good idea, specifically what has been tested. The plan is for each test involving an actual file from pefile-tests to get cross checked with an external tool. @HuzaifaChaudary would you be okay for every test you have cross-checked with radare2, to add a comment to the test, something like:
Then I can open an issue listing the tests that have been cross-checked by you (for reference as well as to give credit) and the tests that have the TODO comment. The issue will be asking for PRs that have checked the TODO tests externally and replace their comments with something like:
Adding @nightlark for information and any guidance on this. Also is "cross-referenced" better than "cross-checked"? |
part of #584 .
ce0e9801...was computed on a different kernel32.dll from the one in pefile-tests . the sha256 values from before 0c747a7 still matchmfc40.dlland the66c74e4csample , so those are the same files , but neither the sha256 nor the md5 value matches this kernel32.dll .radare2 (
rabin2 -Ej) lists the same 954 exports in the same order as pefile , and the md5 of the lowercase names joined with,is247dcd1aa98526819ecf3c09cb12ad83, the valueget_exphash()returns .