| 1 |
Test if disasm spread $mem[idx] correctly |
| 2 |
CLI |
| 3 |
disasm - -a x86_64 |
| 4 |
STDIN |
| 5 |
20 00 00 00 00 00 00 00 |
| 6 |
02 00 00 00 05 00 00 00 |
| 7 |
00 00 00 00 00 00 00 00 |
| 8 |
60 00 00 00 05 00 00 00 |
| 9 |
15 00 01 00 3b 00 00 00 |
| 10 |
06 00 00 00 00 00 ff 7f |
| 11 |
06 00 00 00 00 00 ff 7f |
| 12 |
STDOUT |
| 13 |
#Label CODE JT JF K |
| 14 |
#--------------------------------- |
| 15 |
L0001: 0x20 0x00 0x00 0x00000000 $A = $syscall_nr |
| 16 |
L0002: 0x02 0x00 0x00 0x00000005 $mem[0x5] = $A |
| 17 |
L0003: 0x00 0x00 0x00 0x00000000 $A = 0x0 |
| 18 |
L0004: 0x60 0x00 0x00 0x00000005 $A = $mem[0x5] |
| 19 |
L0005: 0x15 0x01 0x00 0x0000003b if ($A == execve) goto L0007 |
| 20 |
L0006: 0x06 0x00 0x00 0x7fff0000 return ALLOW |
| 21 |
L0007: 0x06 0x00 0x00 0x7fff0000 return ALLOW |
| 22 |
#--------------------------------- |