-
-
Save ChALkeR/0ae2f111395b353b8e44 to your computer and use it in GitHub Desktop.
Inspecting memory with Buffer: source file variable
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
var token = 'password!ASD'; | |
var step = 0; | |
function inspect() { | |
var buf = (new Buffer(100)).toString('ascii'); | |
if (buf.indexOf(token) !== -1) { | |
console.log('Found at step ' + step + ': ' + buf); | |
} | |
} | |
for (step = 0; step < 100000; step++) { | |
inspect(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment