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.
15 lines
518 B
15 lines
518 B
2 months ago
|
#git clone https://github.com/aquasecurity/kube-hunter.git
|
||
|
#pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
|
||
|
#环境变量设置:echo 'export PATH="$PATH:'$(pwd)'"' >> ~/.bashrc
|
||
|
|
||
|
from tools.ToolBase import ToolBase
|
||
|
|
||
|
class KubehunterTool(ToolBase):
|
||
|
def validate_instruction(self, instruction):
|
||
|
#指令过滤
|
||
|
timeout = 0
|
||
|
return instruction,timeout
|
||
|
|
||
|
def analyze_result(self, result,instruction,stderr,stdout):
|
||
|
#指令结果分析
|
||
|
return result
|