You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
428 B
13 lines
428 B
from tools.ToolBase import ToolBase
|
|
|
|
class SmbmapTool(ToolBase):
|
|
def validate_instruction(self, instruction):
|
|
#指令过滤
|
|
timeout = 0
|
|
if " grep " not in instruction:
|
|
instruction =instruction.strip() + " | grep -E 'READ|WRITE|Disk|path'"
|
|
return instruction,timeout
|
|
|
|
def analyze_result(self, result,instruction,stderr,stdout):
|
|
#指令结果分析
|
|
return result
|