Created
August 26, 2012 13:18
-
-
Save pajp/3479177 to your computer and use it in GitHub Desktop.
print out oauth tokens from a process using dtrace
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
#!/bin/sh | |
/Applications/Twitter.app/Contents/MacOS/Twitter & | |
sudo dtrace -q -p $! -n 'pid$target::free:entry /arg0 != 0/ { printf("%s\n", copyinstr(arg0)) }' 2> /dev/null | grep oauth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works surprisingly well. It was inspired by this: https://twitter.com/joedamato/statuses/237583522003574784