Projects STRLCPY cupp Commits 8c7d11d2
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    cupp.py
    skipped 275 lines
    276 276   
    277 277   unique_list_finished = [x for x in unique_list if len(x) > wcfrom and len(x) < wcto]
    278 278   
    279  - print_to_file(sys.argv[2] + ".cupp.txt", unique_list_finished)
     279 + print_to_file(file_to_open + ".cupp.txt", unique_list_finished)
    280 280   
    281 281   fajl.close()
    282 282   
    skipped 792 lines
  • ■ ■ ■ ■ ■ ■
    test_cupp.py
    skipped 69 lines
    70 70   download_wordlist_http("16")
    71 71   
    72 72   filename = "dictionaries/hindi/hindu-names.gz"
    73  - 
    74 73   self.assertTrue(os.path.isfile(filename), "file " + filename + "exists")
    75 74   
    76 75   def test_print_cow(self):
    skipped 12 lines
    89 88   os.path.isfile("alectodb-passwords.txt"),
    90 89   "file alectodb-passwords.txt exists",
    91 90   )
     91 + 
     92 + def test_improve_dictionary(self):
     93 + 
     94 + filename = "improveme.txt"
     95 + open(filename, "a").write("password123\n2018password\npassword\n")
     96 + 
     97 + __builtins__.input = lambda _: "Y" # Mock
     98 + improve_dictionary(filename)
     99 + 
     100 + def test_download_wordlist(self):
     101 + """ Download wordlists via menu """
     102 + __builtins__.input = lambda _: "31" # Mock
     103 + download_wordlist()
     104 + filename = "dictionaries/russian/russian.lst.gz"
     105 + self.assertTrue(os.path.isfile(filename), "file " + filename + "exists")
    92 106   
    93 107   
    94 108  if __name__ == "__main__":
    skipped 2 lines
Please wait...
Page is in error, reload to recover