Modify nmap to symlink libpcap and fix dependency issue

pull/7/head
Henry Pitcairn 2018-01-10 01:39:00 -05:00
parent 1f4f1248a7
commit c3071f9922
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ class nmap extends Module
private function handleDependencies() 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")) if(!$this->checkDependency("nmap"))
{ {
$this->execBackground("/pineapple/modules/nmap/scripts/dependencies.sh install ".$this->request->destination); $this->execBackground("/pineapple/modules/nmap/scripts/dependencies.sh install ".$this->request->destination);