|
1
|
from module import Module
|
|
2
3
|
from runcmd import runProcess
import tomb
|
|
4
|
|
|
5
6
|
def getInstance():
return MFTModule()
|
|
7
8
9
|
class MFTModule(Module):
|
|
10
|
def __init__(self):
|
|
11
12
|
self.name = "mft"
self.description = "Extracts NTFS MFT"
|
|
13
14
|
self.requiredVars = ["ntfsvol"]
self.vars = {}
|
|
15
16
|
def run(self):
|
|
17
18
19
20
21
|
for vol in self.vars['ntfsvol'].value:
result = runProcess(["icat","/dev/" + vol,"0"])
mftbin = open(tomb.getPath() + "mft/" + vol + ".bin",'wb')
mftbin.write(result[0])
mftbin.close()
|
|
22
|
|