Skip to content

Instantly share code, notes, and snippets.

@a-nogikh
Created February 12, 2024 11:36
Show Gist options
  • Save a-nogikh/f68aa687a72aad4bb46a64d995c2415f to your computer and use it in GitHub Desktop.
Save a-nogikh/f68aa687a72aad4bb46a64d995c2415f to your computer and use it in GitHub Desktop.
$ wget https://storage.googleapis.com/syzbot-assets/035deffa4187/disk-2639772a.raw.xz
$ unxz disk-2639772a.raw.xz
$ wget -O 'repro.c' 'https://syzkaller.appspot.com/text?tag=ReproC&x=15ebd1f6e80000'
$ gcc repro.c -lpthread -static -o repro
$ qemu-system-x86_64 -m 2G -smp 2,sockets=2,cores=1 -drive file=./disk-2639772a.raw,format=raw -net nic,model=e1000 -net user,host=10.0.2.10,hostfwd=tcp::10022-:22 -enable-kvm -nographic -snapshot -machine pc-q35-7.1
$ scp -P 10022 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes ./repro root@127.0.0.1:/root/
$ ssh -p 10022 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes root@127.0.0.1 'chmod +x ./repro && ./repro'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment