Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Apr 25, 2017
1 parent 3b8886b commit 80f0730
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Windows/lazagne/softwares/windows/cachedump.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def run(self, software_name=None):
password = dump_file_hashes(constant.hives['system'], constant.hives['security'], isVistaOrHigher)

# remove hives files
# self.delete_existing_system_hives()
self.delete_existing_system_hives()

pwdFound = ['__MSCache__', password]
return pwdFound
12 changes: 6 additions & 6 deletions Windows/lazagne/softwares/windows/hashdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ def save_hives(self):
return True

# try to remove all temporary files
def delete_existing_system_hives(self):
for h in constant.hives:
try:
os.remove(constant.hives[h])
except:
pass
# def delete_existing_system_hives(self):
# for h in constant.hives:
# try:
# os.remove(constant.hives[h])
# except:
# pass

def run_cmd(self, cmdline):
command=['cmd.exe', '/c', cmdline]
Expand Down
4 changes: 0 additions & 4 deletions Windows/lazagne/softwares/windows/lsa_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,6 @@ def run(self, software_name=None):
print_debug('DEBUG', 'Unable to read LSA secrets')
return

# for k in secrets:
# print k
# print self.dump(secrets[k], length=16)

# remove hives files
# self.delete_existing_system_hives()

Expand Down

0 comments on commit 80f0730

Please sign in to comment.