kernel pwn基础知识

[TOC]

通用保护机制

  • KASLR alt text
  • FGKASLR alt text
  • STACK PROTECTOR alt text
  • SMAP/SMEP alt text
  • KPTI alt text alt text

内核 “堆” 上保护机制

  • Hardened Usercopy alt text
  • Hardened freelist alt text
  • Random freelist alt text
  • CONFIG_INIT_ON_ALLOC_DEFAULT_ON alt text

调试相关

  • 在启动sh脚本后加上 -gdb tcp::1234 ,然后在pwndbg中target remote 127.0.0.1 1234