PYTHON 30
Crack.py Guest on 29th August 2020 01:58:47 PM
  1.  
  2. from misc import *
  3. import crypt
  4.  
  5. def load_words(filename,regexp):
  6.     """Load the words from the file filename that match the regular
  7.       expression regexp.  Returns a list of matching words in the order
  8.       they are in the file."""
  9.     raise Failure("to be written")
  10.  
  11. def transform_reverse(str):
  12.     raise Failure("to be written")
  13.  
  14. def transform_capitalize(str):
  15.     raise Failure("to be written")
  16.  
  17. def transform_digits(str):
  18.     raise Failure("to be written")
  19.  
  20. def check_pass(plain,enc):
  21.     """Check to see if the plaintext plain encrypts to the encrypted
  22.       text enc"""
  23.     raise Failure("to be written")
  24.  
  25. def load_passwd(filename):
  26.     """Load the password file filename and returns a list of
  27.       dictionaries with fields "account", "password", "UID", "GID",
  28.       "GECOS", "directory", and "shell", each mapping to the
  29.       corresponding field of the file."""
  30.     raise Failure("to be written")
  31.  
  32. def crack_pass_file(fn_pass,words,out):
  33.     """Crack as many passwords in file fn_pass as possible using words
  34.       in the file words"""
  35.     raise Failure("to be written")

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.