This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This PoC is based on http://www.immunityinc.com/downloads/x86leaks_old.pdf | |
The PoC finds direct physical map and kernel text address in Linux kernel without PTI on Intel x64. | |
The PoC might not work correctly in VM. For example, this PoC cannot find correct direct physical map | |
address in KVM. The reason is in https://www.kernel.org/doc/Documentation/virtual/kvm/mmu.txt | |
$ ./break_linux_kaslr_nopti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import ghidra.program.model.symbol.SourceType | |
import re | |
functionManager = currentProgram.getFunctionManager() | |
#minAddress = currentProgram.getMinAddress() | |
baseAddress = currentProgram.getImageBase() | |
USER_DEFINED = ghidra.program.model.symbol.SourceType.USER_DEFINED |
OlderNewer