Created
December 3, 2013 04:29
-
-
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…
This file contains hidden or 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
#!/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