Skip to content

Instantly share code, notes, and snippets.

@v3ss0n
Last active August 29, 2015 14:23
Show Gist options
  • Save v3ss0n/fa80083dc14c5fdfa669 to your computer and use it in GitHub Desktop.
Save v3ss0n/fa80083dc14c5fdfa669 to your computer and use it in GitHub Desktop.
enjoy
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