def resultPasswordsView(request, partition_id): partition = Partition.objects.get(id=partition_id) process = Passwords(Log(), Log(), partition) process.start() process.join() #FIXME hardcoded categoryListCpy = copy.deepcopy(categoryList) hardDrive = partition.harddrive pages = categoryListCpy[0]['pages'] pages.insert(1, { 'name': hardDrive, 'address': 'result_harddrive_%d' % hardDrive.id }) pages.insert(2, { 'name': partition, 'address': 'result_partition_%d' % partition.id }) pages.insert(2, { 'name': 'Credentials', 'address': 'result_passwords_%d' % partition.id }) return render_to_response("result_passwords.html", { 'category': 'Cases', 'page': 'Credentials', 'credentials': process.credentials_, 'passwords': process.passwords_, 'users': process.users_, 'mails': process.mails_, 'categoryList': categoryListCpy, }, context_instance=RequestContext(request))
def credentials(self, partition): passwords = Passwords(self.internLog_, self.terminalLog_, partition) passwords.start() passwords.join() self.credentials_ = passwords.credentials_ self.passwords_ = passwords.passwords_ self.users_ = passwords.users_ self.mails_ = passwords.mails_
def resultPasswordsView(request, partition_id): partition = Partition.objects.get(id=partition_id) process = Passwords(Log(), Log(), partition) process.start() process.join() #FIXME hardcoded categoryListCpy = copy.deepcopy(categoryList) hardDrive = partition.harddrive pages = categoryListCpy[0]['pages'] pages.insert(1, {'name':hardDrive, 'address':'result_harddrive_%d' % hardDrive.id}) pages.insert(2, {'name':partition, 'address':'result_partition_%d' % partition.id}) pages.insert(2, {'name':'Credentials', 'address':'result_passwords_%d' % partition.id}) return render_to_response("result_passwords.html", { 'category':'Cases', 'page':'Credentials', 'credentials':process.credentials_, 'passwords':process.passwords_, 'users':process.users_, 'mails':process.mails_, 'categoryList':categoryListCpy, }, context_instance=RequestContext(request))