Skip to content

Instantly share code, notes, and snippets.

@opnchaudhary
Created December 3, 2013 04:29
Show Gist options
  • Save opnchaudhary/7763878 to your computer and use it in GitHub Desktop.
Save opnchaudhary/7763878 to your computer and use it in GitHub Desktop.
Used only for https://www.facebook.com/download/1485276195031896/hackme Challenge: Hackers! Are you ready to face a challenge? This is a program compiled for linux. Which -> accepts an integer from command line argument . -> compares that argv with a pre-stored 4-digit integer. -> prints a msg and returns 0 if they match -> returns 1 if they don…
#!/usr/bin/python
import os
var=0
while var<10000:
var+=1
temp='{0:04}'.format(var)
result=os.system('./hackme '+temp)
if result==0:
print "Found : "+temp
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment