Skip to content

Instantly share code, notes, and snippets.

@danfal
Last active December 1, 2018 11:41
Show Gist options
  • Save danfal/c98e8cc5c7a94e94c89964e011650fd4 to your computer and use it in GitHub Desktop.
Save danfal/c98e8cc5c7a94e94c89964e011650fd4 to your computer and use it in GitHub Desktop.
overthewire-day0 köra i bochs emulator
# installera bochs och bochs-x gui plugin
# Skapa en 1.44MB floppy drive med interaktiva programmet 'bximage'
# dd conv=notrunc if=day0.bin of=a.img
# Skapa en bochsrc.txt som innehåller:
megs: 160
floppya: image="a.img", status=inserted # a.img = 1.44MB floppy generated with bximage, day0.bin dd'd into first 513 bytes (dd conv=notrunc if=day0.bin of=a.img)
boot: floppy
cpu: count=1
vga: extension=vbe
mouse: enabled=0
log: bochs.log
logprefix: %t%e%d
panic: action=report
error: action=report
info: action=report
debug: action=report
display_library: x, options="gui_debug"
# KÖR bochs utan arg i samma dir som bochsrc.txt/a.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment