mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Modify nmap to symlink libpcap and fix dependency issue
This commit is contained in:
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…
x
Reference in New Issue
Block a user