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

Function select_ip_exp

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

Source from the content-addressed store, hash-verified

58
59
60def select_ip_exp(text:str) -> str:
61 ip_exp_list = re.findall(
62 r'\[\+]\s*(.*)\s*(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\s+(.*)', text
63 )
64 if ip_exp_list == []:
65 return 'Exp 检测漏洞结果为空'
66
67 ip_exp_list = [(' '.join(line)).strip() for line in ip_exp_list]
68
69 ip_exp_list = [
70 line for line in ip_exp_list if (
71 line.startswith('http') == False and line.startswith('InfoScan') == False
72 )
73 ]
74
75 return '[+] ' + '\n[+] '.join(ip_exp_list)
76
77
78def select_weak_password(text:str) -> str:

Callers 1

classify_fscan_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected