(tests)
| 187 | |
| 188 | |
| 189 | def nmap_probes2sig(tests): |
| 190 | # type: (Dict) -> Dict |
| 191 | tests = tests.copy() |
| 192 | res = {} |
| 193 | if "PU" in tests: |
| 194 | res["PU"] = nmap_udppacket_sig(*tests["PU"]) |
| 195 | del tests["PU"] |
| 196 | for k in tests: |
| 197 | res[k] = nmap_tcppacket_sig(tests[k]) |
| 198 | return res |
| 199 | |
| 200 | |
| 201 | def nmap_search(sigs): |
no test coverage detected