mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Updates to nmap and urlsnarf (#79)
* nmap: Check internal space available to avoid confusion with large depends. * arpspoof: fix accidental recursion.
This commit is contained in:
@@ -142,7 +142,10 @@ class nmap extends Module
|
||||
$device = $this->getDevice();
|
||||
$sdAvailable = $this->isSDAvailable();
|
||||
|
||||
$this->response = array("device" => $device, "sdAvailable" => $sdAvailable, "status" => $status, "statusLabel" => $statusLabel, "installed" => $installed, "install" => $install, "installLabel" => $installLabel, "processing" => $processing);
|
||||
// 2143000 is the installed size of nmap.
|
||||
$internalAvailable = (disk_free_space("/") - 64000) > 2143000;
|
||||
|
||||
$this->response = array("device" => $device, "internalAvailable" => $internalAvailable, "sdAvailable" => $sdAvailable, "status" => $status, "statusLabel" => $statusLabel, "installed" => $installed, "install" => $install, "installLabel" => $installLabel, "processing" => $processing);
|
||||
}
|
||||
|
||||
private function refreshOutput()
|
||||
|
||||
Reference in New Issue
Block a user