Modify nmap to symlink libpcap and fix dependency issue
parent
1f4f1248a7
commit
c3071f9922
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue