Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Hello. I actually didn't believe any of this would work but since I'm getting a some sort of reasonable output of 1075460 i think this may actually work... What do you think? The kernel_end address is probably correct but can I trust my printing methods?
For example if address = 2794238 (=0x2aa2fe), adding 4095 to that will get you 2798333 = 0x2ab2fd, and ANDing that with 0xfffff000 gives you 2797568 = 0x2ab000.