diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2020-03-02 13:59:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-02 13:59:06 +0100 |
| commit | bc02f150f4d2ca584eb0d757e27fc09d70777cdd (patch) | |
| tree | 512dbc7044b3ee707b8ed85c1b50f67dc64139b7 /test | |
| parent | 886f05bcc6c4285bf60cb296186b9e975698356a (diff) | |
| parent | 2abb748af4b402a4883f11d240fcdcdac37f7d04 (diff) | |
| download | miasm-bc02f150f4d2ca584eb0d757e27fc09d70777cdd.tar.gz miasm-bc02f150f4d2ca584eb0d757e27fc09d70777cdd.zip | |
Merge pull request #1148 from serpilliere/fix_automod_code
Fix Automod code
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test_all.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_all.py b/test/test_all.py index 7fb43525..a8bf5330 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -548,6 +548,13 @@ test_x86_32_if_reg = ExampleShellcode(['x86_32', 'x86_32_if_reg.S', "x86_32_if_r test_x86_32_seh = ExampleShellcode(["x86_32", "x86_32_seh.S", "x86_32_seh.bin", "--PE"]) test_x86_32_dead = ExampleShellcode(['x86_32', 'x86_32_dead.S', "x86_32_dead.bin"]) +test_x86_32_automod_2 = ExampleShellcode( + [ + 'x86_32', 'x86_32_automod_2.S', "x86_32_automod_2.bin", "--PE" + ] +) + + test_x86_32_dis = ExampleShellcode( [ "x86_32", "test_x86_32_dis.S", "test_x86_32_dis.bin", "--PE" @@ -573,6 +580,7 @@ testset += test_x86_32_seh testset += test_x86_32_dead testset += test_human testset += test_x86_32_dis +testset += test_x86_32_automod_2 class ExampleDisassembler(Example): """Disassembler examples specificities: @@ -801,6 +809,8 @@ for script, dep in [(["x86_32.py", Example.get_sample("x86_32_sc.bin")], []), (["arm_sc.py", "0", Example.get_sample("demo_arm_l.bin"), "l", "-a", "0"], [test_arml]), (["sandbox_call.py", Example.get_sample("md5_arm")], []), + (["sandbox_pe_x86_32.py", Example.get_sample("x86_32_automod_2.bin")], + [test_x86_32_automod_2]) ] + [(["sandbox_pe_x86_32.py", Example.get_sample("x86_32_" + name + ".bin")], [test_box[name]]) |