def run(self):
self.success = False
try:
self.establish_session()
self.logger.info("Gathering running services")
self.running_services = self.create_process("c:\\windows\\system32\\net.exe start")
self.logger.info("Gathering running processes")
self.running_processes = self.get_processes()
# get the current user
users = set([proc['username'].split('\\')[-1]
for proc in self.running_processes if proc['path'].find('explorer.exe') != -1])
for user in users:
self.logger.info("Gathering Chrome browser history for %s" % user)
self.browser_history = \
self.get_file("c:\\users\\%s\\appdata\\local\\google\\chrome\\user data\\default\\history" % user)
self.logger.info("LR done")
except Exception as e:
import traceback
traceback.print_exc()
else:
self.success = True
评论列表
文章目录