| 642 | } |
| 643 | |
| 644 | bool network_tool_comm(const std::string& comm) { |
| 645 | auto l = lower_copy(comm); |
| 646 | return l == "nc" || l == "ncat" || l == "socat" || l == "curl" || |
| 647 | l == "wget" || l == "ssh" || l == "sshd" || l == "python" || |
| 648 | l == "python3" || l == "perl" || l == "ruby" || l == "openssl"; |
| 649 | } |
| 650 | |
| 651 | std::string proc_cmdline(const Engine& eng, const Process& p) { |
| 652 | try { return one_line_text(gen_cmdline(eng.phys(), eng.isf(), eng.kernel(), p)); } |
no test coverage detected