Optimized script to process large wordlists
This commit is contained in:
parent
a912127e33
commit
72cdebd1e5
@ -121,7 +121,7 @@ class StatsGen:
|
||||
def generate_stats(self, filename):
|
||||
""" Generate password statistics. """
|
||||
|
||||
f = open(filename,'r')
|
||||
with open(filename, 'r') as f:
|
||||
|
||||
for password in f:
|
||||
password = password.rstrip('\r\n')
|
||||
@ -172,8 +172,6 @@ class StatsGen:
|
||||
else:
|
||||
self.stats_advancedmasks[advancedmask] = 1
|
||||
|
||||
f.close()
|
||||
|
||||
def print_stats(self):
|
||||
""" Print password statistics. """
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user