Last active
August 29, 2015 14:23
-
-
Save v3ss0n/fa80083dc14c5fdfa669 to your computer and use it in GitHub Desktop.
enjoy
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
import subprocess | |
def fuzz_overflow(cmd,rng = 1*1024*1024 ): | |
for payload in xrange (1, rng): | |
payload = "A" * payload | |
try: | |
output = subprocess.check_output([cmd, '%s' % payload ]) | |
except: | |
output = "" | |
print "Overflow occoured" | |
if output.startswith("Congratulations!"): | |
return payload | |
if __name__=='__main__': | |
print fuzz_overflow("./slack") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment