1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-11-14 11:29:15 +00:00
bddisasm/bdshemu_test
Andrei Vlad LUTAS d61a6fa5dd * INC/DEC do not modify the CF.
* Fixed FXSAVE64, PUSHAD and POPAD emulation - when explicit mnemonics were added for them, emulation support was not added, thus causing emulation to stop when encountering one of these.
2020-08-19 19:14:22 +03:00
..
basic * INC/DEC do not modify the CF. 2020-08-19 19:14:22 +03:00
README.md Initial commit. 2020-07-21 11:19:18 +03:00
test_all.py Fixed RET with immediate - the immediate is not sign-extended. 2020-07-23 14:08:01 +03:00

Shellcode Emulator Tests

These tests are used to validate basic bdshemu functionality. Each test consists of up to three files:

  • The binary test file. The name format for this type of file is name_32|64[_r0]. No extension must be provided; 32 indicates 32 bit test file, 64 indicates 64 bit test file, and r0 indicates kernel payload
  • The output result file. Must be named the same as the binary test file, but with the extension .result
  • Optional assembly file, used to generate the binary test file

The test_all.py script will iterate all the test folders, and it will run bdshemu on each identified test file. The result file will be compared with the output of the test run. If they are not the same, the test will fail.

NOTE: This test will assume disasm is in the path. Works on Windows only.