|
8
9
10
11
12
13
14
15
16
17
18
|
def getInstance():
return INFOModule()
class INFOModule(Module):
def __init__(self):
self.name = "info"
self.description = "Extracts information about this machine"
self.requiredVars = []
self.vars = {}
|
|
21
22
23
24
25
26
27
28
29
30
31
|
if(not os.path.exists(path)):
os.mkdir(path)
output,code = runProcess("lshw")
lshw = open(path + "lshw.txt", 'wb')
lshw.write(output)
lshw.close()
output,code = runProcess("dmidecode")
lshw = open(path + "dmidecode.txt", 'wb')
lshw.write(output)
lshw.close()
|