Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Nmap package problem

    Scheduled Pinned Locked Moved pfSense Packages
    1 Posts 1 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      beko
      last edited by

      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); }

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.