from tools.ToolBase import ToolBase class DirSearchTool(ToolBase): def validate_instruction(self, instruction): #指令过滤 timeout = 0 if "-o " not in instruction or "--output=" not in instruction: instruction += " -o ds_result.txt" return instruction,timeout def analyze_result(self, result,instruction,stderr,stdout): #指令结果分析 return result