Nmap package problem



  • I get this error, when using nmap (pfsense 1.0)

    Fatal error: Call to undefined function:  nmap_custom_add_php_command() in /usr/local/www/pkg_edit.php(113) : eval()'d code on line 1

    and there is this message above:

    function nmap_custom_add_php_command() { $nmap_options = ""; if($_POST['option'] == "-sT: TCP connect() scan.") $nmap_options .= " -sT"; if($_POST['option'] == "-sP: Ping scanning") $nmap_options .= " -sP"; if($_POST['option'] == "-sU: UDP Scanning") $nmap_options .= " -sU"; if($_POST['noping']) $nmap_options .= " -P0"; if($_POST['servicever']) $nmap_options .= " -sV"; if($_POST['osdetect']) $nmap_options .= " -O"; $nmap_options .= " " . $_POST['hostname']; system("/usr/local/bin/nmap" . $nmap_options); }


Log in to reply