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.

20 lines
572 B

2 months ago
from tools.ToolBase import ToolBase
class DigTool(ToolBase):
def validate_instruction(self, instruction):
#指令过滤
timeout = 0
return instruction,timeout
def analyze_result(self, result,instruction,stderr,stdout):
#指令结果分析
return result
if __name__ == "__main__":
command = "nmap -sV -p- -T4 --min-rate 1000 haitutech.cn -oN nmap_scan.txt"
TB = DigTool()
bres, instr, output, output_old, ext_res = TB.execute_instruction("")
print(bres)
print(ext_res["test"])
print(ext_res["11"])