MCPcopy Create free account
hub / github.com/chasingboy/Xtools / select_web_poc

Function select_web_poc

lib/format_tools_result.py:23–29  ·  view source on GitHub ↗
(text:str)

Source from the content-addressed store, hash-verified

21
22
23def select_web_poc(text:str) ->str:
24 web_poc_list = re.findall(r'(http.*?) (poc-.*)', text)
25 if web_poc_list == []:
26 return 'POC 检测漏洞结果为空'
27
28 web_poc_list = [('{url} {poc}').format(url=line[0],poc=line[1]) for line in web_poc_list]
29 return '[+] ' + '\n[+] '.join(web_poc_list)
30
31
32

Callers 1

classify_fscan_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected