Skip to content

Commit

Permalink
Fixed KASLR.
Browse files Browse the repository at this point in the history
Though patch and its offset were correct I overlooked the datatype since I was working on bunch of it. May be an idiot or a blind?
  • Loading branch information
GiantPluto authored and GiantPluto committed Aug 11, 2020
1 parent b9443a3 commit 0201fbd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions installer/source/installer.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,12 @@ void patch_kernel() {
// patch vm_map_protect check
memcpy((void *)(kernbase + 0x00451DB8), "\x90\x90\x90\x90\x90\x90", 6);

// patch ptrace, thanks 2much4u
// patch ptrace
*(uint8_t *)(kernbase + 0x0010F879) = 0xEB;

// remove all these bullshit checks from ptrace, by golden
// updated 6.72 patch ~DeathRGH 06/08/2020
memcpy((void *)(kernbase + 0x10FD22), "\xE9\xE2\x02\x00\x00", 5);

// patch ASLR, thanks 2much4u
*(uint16_t *)(kernbase + 0x003CECE1) = 0xEB;
// disable KASLR
*(uint8_t *)(kernbase + 0x003CECE1) = 0xEB;

// patch kmem_alloc
*(uint8_t *)(kernbase + 0x002507F5) = VM_PROT_ALL;
Expand Down

0 comments on commit 0201fbd

Please sign in to comment.