Skip to content

Commit 2967f5f

Browse files
authored
Update how-to-kernel-pwn.md
1 parent 2912041 commit 2967f5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main/content/post/how-to-kernel-pwn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ gdb.attach(io, gdbscript=gdbscript, exe="./vmlinux")
6969
io.interactive()
7070
```
7171

72-
Inside the VM, it may also be desirable to be able to see pointer offsets and such at runtime. For this, you'll need root in the VM, which is usually done by patching the init script in the challenge to not drop privileges or create a root user account for yourself.
72+
Inside the VM, it may also be desirable to be able to see pointer offsets and such at runtime (i.e. reading from `/proc/kallsyms`, checking `dmesg` if this isn't already allowed, etc.). For this, you'll need root in the VM, which is usually done by patching the init script in the challenge to not drop privileges or create a root user account for yourself. See below for writing custom init scripts, though oftentimes if you're simply working on a challenge, the challenge author will have done most of this for you. You just need to build yourself some way of elevating privileges to root.
7373
7474
## Building a challenge
7575

0 commit comments

Comments
 (0)