Commit 47f1376
Add MIPS32 big-endian shellcode test
test_shellcode.py only exercised little-endian MIPS. Add a big-endian
counterpart (MIPS32EB_LIN) so MIPS BE emulation is covered too.
The shellcode is the byte-swapped form of MIPS32EL_LIN (instruction words
reversed, '/bin/sh' string left intact) and is run with endian=QL_ENDIAN.EB,
reusing the existing graceful_execve EXIT hook to end emulation cleanly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 46f2d47 commit 47f1376
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
108 | 122 | | |
109 | 123 | | |
110 | 124 | | |
| |||
0 commit comments