From c3071f99226a6fb0f01a8cc2b965adba7cf4341f Mon Sep 17 00:00:00 2001 From: Henry Pitcairn <735tesla@gmail.com> Date: Wed, 10 Jan 2018 01:39:00 -0500 Subject: [PATCH] Modify nmap to symlink libpcap and fix dependency issue --- nmap/api/module.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nmap/api/module.php b/nmap/api/module.php index 259c0eb..2ba1ae3 100644 --- a/nmap/api/module.php +++ b/nmap/api/module.php @@ -61,6 +61,9 @@ class nmap extends Module private function handleDependencies() { + if (!file_exists("/usr/lib/libpcap.so.1.3") && file_exists("/usr/lib/libpcap.so")) { + symlink("/usr/lib/libpcap.so", "/usr/lib/libpcap.so.1.3"); + } if(!$this->checkDependency("nmap")) { $this->execBackground("/pineapple/modules/nmap/scripts/dependencies.sh install ".$this->request->destination);