Hi hi, cám ơn bạn, trước giờ chưa thử crackme viết bằng python
Code:
print '\n Crackme ver 1.0\n Coded by M3g4tr0n\n Language: Pyth0n\n Rules: No Patching\n'
import sys
if (len(sys.argv) != 2):
print 'Usage: ./crackme1.pyc your_input'
exit()
serial = sys.argv[1]
try:
f = open('keys')
except:
print 'Error'
exit()
for line in f:
if (str(line) == serial):
print 'Good boy'
exit()
else:
print 'Bad boy! Bad boy'
exit()
exit()