Created
June 17, 2014 23:37
-
-
Save caioluders/f7d5e170eba61f38c582 to your computer and use it in GitHub Desktop.
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
''' | |
Login system for brute-force | |
in the Ciphertext-only attack | |
by geolado | g3ol4d0 | |
''' | |
import os | |
def cipher(password) : | |
cmd = "echo "+password+" | perl kouba_encode.pl" # Remote Command Execute lol | |
output = os.popen(cmd).read().split() # encoda e retorna o resultado | |
return output[len(output)-1] | |
def main() : | |
ciphers = ["a9z1p0","QpKzg7QQ21o0","a9z1p0H8f30e","XceW18a9z1p0","XcqZqEPfwJ","oLVg07eWXc","0Lg7VgZzXcqZVg","DDXcs0s0KzVgQQqZ","qE07qZXcQQa9z1p0"] | |
password = raw_input('Senha :') # I Need filter the string uahsdua | |
password_cipher = cipher(password) | |
if password_cipher in ciphers : | |
print "Login aceito (:" | |
else : | |
print "Login recusado :/" | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment