Skip to content

Instantly share code, notes, and snippets.

@caioluders
Created June 17, 2014 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caioluders/f7d5e170eba61f38c582 to your computer and use it in GitHub Desktop.
Save caioluders/f7d5e170eba61f38c582 to your computer and use it in GitHub Desktop.
'''
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