![]() Any key without information provided from NMAP is filled as null. All methods return an array of JSON objects containing information on each host. All input accepts either a space separated string, or an array of strings to make it easier to work with a complex set of hosts. Simply define a variable as one of the methods, and that variable will become a new instance of NmapScan with appropriately set commands. It emits two events: 'complete' and 'error'. NmapScan is the core function of the package. 'error' : event - triggers when an error is encountered.'complete' : event - triggers when entire queue has been processed.percentComplete() - returns the percentage completion through the processing queue.index() - returns the current index of the queue processing.shiftResults() - returns the first item of the results objects and removes it from the results list.results() - returns Array of current scan result Host objects.shift(count) - processes the next count queued items while removing them from the queue.next(count) - processes the next count queued items.resume() - resumes processing the queue.pause() - pauses the queue processing (take affect between scans.).startShiftScan() - begins processing entire queue while removing scanned hosts.startRunScan() - begins processing the entire queue without removing scanned hosts.saveNotFoundToResults : boolean(default:false) - save host not found error object to results array.singleScanTimeout : number in ms - timeout value to be supplied to eachs single scan.saveErrorsToResults : boolean(default:false) - save error data to the results array.runActiononError : boolean(default:false) - run the supplied action function when an error is encountered.currentScan - reference to the current scan object if needed.scanTime : number in ms - collective duration of all scans.Queued scans instance variables, methods, and events 'error' : event - returns string with error information.'complete' : event - returns array of host objects.scanTimeout : number in ms - scan will cancel if timeout is reached.scanTime : number in ms - duration of scan.scanResults : Array of host objects - contains the results of the scan.Scan instance variables, methods, and events QueuedOsAndPortScan - Queued version for greater control.QueuedQuickScan - Queued version for greater control.QueuedNmapScan - Queued version for greater control.OsAndPortScan - Scans for open ports as well as NMAP gathered OS information. Nmap for Mac OS X 7.92 - Designed to be a free utility for network exploration or security auditing - offers free software downloads for.QuickScan - Scans supplied hosts without portscan(-sP).NmapScan - This is the core of the package and runs the NMAP command.If there is a common or useful NMAP feature that you would like to see included, please submit an issue and I will work it in. Request: While NmapScan() will accept valid NMAP arguments, the XML to JSON conversion is only checking for specific things. ![]() d.ts file is located at /node_modules/node-nmap/index.d.ts.Īs a part of this update, there is an additional maping for the namespace/module, as well as a requirement to use new for each scan. UPDATE v2: I have rewritten the module in TypeScript. Building against the latest version of NMAP (v7).Added a Queued version of each scan allowing for a highler level of feedback and control over the scanning process. ![]()
0 Comments
Leave a Reply. |