(text:str)
| 58 | |
| 59 | |
| 60 | def 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 | |
| 78 | def select_weak_password(text:str) -> str: |
no outgoing calls
no test coverage detected