Пример #1
0
 def csv_mbr(self):
     """Extract MBR and BootLoader"""
     informations = DiskAnalysis(self.output_dir)
     partition = Partitions(self.output_dir, self.logger)
     disk = Disks()
     operatingSystem = OperatingSystem()
     envVar = EnvironmentVariable()
     mbr = Mbr(self.output_dir)
     informations.os = operatingSystem.os_information(
         informations.currentMachine)
     informations.listDisks = disk.get_disk_information(
         informations.currentMachine)
     self.logger.info('MBR Extracting')
     for d in informations.listDisks:
         informations.mbrDisk = mbr.mbr_parsing(d.deviceID)
         mbr.boot_loader_disassembly()
         for p in informations.mbrDisk.partitions:
             if p.state == "ACTIVE":
                 vbr = Vbr(d.deviceID, p.sector_offset, self.output_dir)
                 self.logger.info('VBR Extracting')
                 vbr.extract_vbr()
                 vbr.vbrDisassembly()
     self.logger.info('BootLoader Extracting')
     informations.envVarList = os.environ
     informations.listPartitions = partition.partition_information(
         informations.currentMachine)
     informations.save_informations()
Пример #2
0
 def csv_mbr(self):
     """Extract MBR and BootLoader"""
     informations = DiskAnalysis(self.output_dir)
     partition = Partitions(self.output_dir, self.logger)
     disk = Disks()
     operatingSystem = OperatingSystem()
     envVar = EnvironmentVariable()
     mbr = Mbr(self.output_dir)
     informations.os = operatingSystem.os_information(informations.currentMachine)
     informations.listDisks = disk.get_disk_information(informations.currentMachine)
     self.logger.info('MBR Extracting')
     for d in informations.listDisks:
         informations.mbrDisk = mbr.mbr_parsing(d.deviceID)
         mbr.boot_loader_disassembly()
     self.logger.info('BootLoader Extracting')
     informations.envVarList = os.environ
     informations.listPartitions = partition.partition_information(informations.currentMachine)
     informations.save_informations()
Пример #3
0
	def csv_mbr(self):
		''' Extract MBR and BootLoader '''
		informations = DiskAnalysis(self.output_dir)
		partition = Partitions(self.output_dir,self.logger)
		disk = Disks()
		operatingSystem = OperatingSystem()
		envVar = EnvironmentVariable()
		mbr = Mbr(self.output_dir)
		informations.os = operatingSystem.os_informations(informations.currentMachine)
		informations.listDisks = disk.getDiskInformations(informations.currentMachine)
		self.logger.info('MBR Extracting')
		for d in informations.listDisks:
			informations.mbrDisk = mbr.mbr_parsing(d.deviceID)
			mbr.bootLoaderDisassembly()
		self.logger.info('BootLoader Extracting')
		informations.envVarList = os.environ
		informations.listPartitions = partition.partitionInformations(informations.currentMachine)
		informations.saveInformations()