Commit 6320acf43133a0989291e8f94e8ef6cbf5f753bb
1 parent
4877251c
Showing
4 changed files
with
19 additions
and
8 deletions
README.md
modules/info.py
... | ... | @@ -16,6 +16,14 @@ class INFOModule(Module): |
16 | 16 | |
17 | 17 | def run(self): |
18 | 18 | path = tomb.getPath() + self.name + "/" |
19 | - os.mkdir(path) | |
20 | - #TODO | |
21 | - #getinfo | |
19 | + if(not os.path.exists(path)): | |
20 | + os.mkdir(path) | |
21 | + output,code = runProcess("lshw") | |
22 | + lshw = open(path + "lshw.txt", 'wb') | |
23 | + lshw.write(output) | |
24 | + lshw.close() | |
25 | + | |
26 | + output,code = runProcess("dmidecode") | |
27 | + lshw = open(path + "dmidecode.txt", 'wb') | |
28 | + lshw.write(output) | |
29 | + lshw.close() | |
22 | 30 | \ No newline at end of file | ... | ... |
modules/mft.py
... | ... | @@ -16,10 +16,11 @@ class MFTModule(Module): |
16 | 16 | |
17 | 17 | def run(self): |
18 | 18 | path = tomb.getPath() + self.name + "/" |
19 | - os.mkdir(path) | |
19 | + if(not os.path.exists(path)): | |
20 | + os.mkdir(path) | |
20 | 21 | for vol in self.vars['ntfsvol'].value: |
21 | - result = runProcess(["icat","/dev/" + vol,"0"]) | |
22 | + result,code = runProcess(["icat","/dev/" + vol,"0"]) | |
22 | 23 | mftbin = open(path + vol + ".bin",'wb') |
23 | - mftbin.write(result[0]) | |
24 | + mftbin.write(result) | |
24 | 25 | mftbin.close() |
25 | 26 | ... | ... |
modules/winreg.py
... | ... | @@ -18,7 +18,8 @@ class RegistryModule(Module): |
18 | 18 | |
19 | 19 | def run(self): |
20 | 20 | path = tomb.getPath() + self.name + "/" |
21 | - os.mkdir(path) | |
21 | + if(not os.path.exists(path)): | |
22 | + os.mkdir(path) | |
22 | 23 | for vol in self.vars['winvol'].value: |
23 | 24 | mntpoint = "/mnt/" |
24 | 25 | mntid = mount("/dev/" + vol) | ... | ... |