| 1 |
Notes on experimental afl driven ui fuzzing |
| 2 |
|
| 3 |
only keyboard events for now |
| 4 |
|
| 5 |
vcl/workben/eventtesting.writer is just serialized "hello" + ctrl+a + ctrl+b |
| 6 |
keystrokes to get things started |
| 7 |
|
| 8 |
vcl/workben/eventtesting.impress is a bit more involved and inserts text, |
| 9 |
a new slide via the menu, bullets and undos for all of that |
| 10 |
|
| 11 |
currently an arbitrary limit of 50 keystrokes before application quits in |
| 12 |
order to initially explore that shallow space |
| 13 |
|
| 14 |
writer: |
| 15 |
Xnest :1 |
| 16 |
cp vcl/workben/eventtesting.writer eventtesting |
| 17 |
afl-fuzz -f eventtesting -t 10000 -i ~/fuzz/in.vcl -o ~/fuzz/out.vcl -d -T vcl -m 50000000 instdir/program/soffice.bin --nologo --writer --eventtesting --norestore --display :1 |
| 18 |
|
| 19 |
impress: |
| 20 |
Xnest :1 |
| 21 |
cp vcl/workben/eventtesting.impress eventtesting |
| 22 |
afl-fuzz -f eventtesting -t 10000 -i ~/fuzz/in.vcl -o ~/fuzz/out.vcl -d -T vcl -m 50000000 instdir/program/soffice.bin --nologo --impress --eventtesting --norestore --display :1 |
| 23 |
|
| 24 |
This also works with --headless and no --display entry and thus no Xnest required |