06.11.2015 Views

Practical SMEP bypass techniques on Linux

RUXCON15-Vitaly

RUXCON15-Vitaly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ROPing<br />

• vmlinux vs vmlinuz?<br />

• Kernel debugging RPM, DEB, etc.<br />

• https://github.com/torvalds/linux/blob/master/scripts/extract-vmlinux<br />

• ./extract-vmlinux /boot/vmlinuz-… > elf.bin<br />

• Finding gadgets<br />

• objdump -d ./vmlinux (aligned addresses <strong>on</strong>ly)<br />

• ROPgadget http://shell-storm.org/project/ROPgadget/<br />

• ./ROPgadget.py --binary ./vmlinux > rop.txt # Intel syntax

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!