Skip to content

Commit

Permalink
Fix i.e. bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed May 5, 2015
1 parent 4a2769b commit c1134de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Windows/src/LaZagne/softwares/browsers/ie.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ def get_hash_table(self, list):
# calculate the hash for all urls found on the history
hash_tables = []
for u in range(len(urls)):
h = (urls[u] + '\0').encode('UTF-16LE')
hash_tables.append([h, hashlib.sha1(h).hexdigest().lower()])
try:
h = (urls[u] + '\0').encode('UTF-16LE')
hash_tables.append([h, hashlib.sha1(h).hexdigest().lower()])
except:
pass
return hash_tables

def write_binary_file(self):
Expand Down Expand Up @@ -273,17 +276,17 @@ def decipher_password(self, cipher_text, u):
values = {}
# list username / password in clear text
for s in range(length):
if s % 2 != 0:
try:
try:
if s % 2 != 0:
values = {}
values['Site'] = u.decode('UTF-16LE')
values['Username'] = secret[length - s]
values['Password'] = password
pwdFound.append(values)
except:
else:
password = secret[length - s]
except:
pass
else:
password = secret[length - s]

def run(self, historic=''):
# print title
Expand Down
Binary file modified Windows/standalone/laZagne.exe
Binary file not shown.

0 comments on commit c1134de

Please sign in to comment.