All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning. (or tries to...)
- Linting and coveralls issues
- Fix for security issue on arguments injections - CVE-2022-30284
- Added pre-commit hook support to enforce code style (black, isort)
- Added unittest for defusedxml to fix billionlaugh and external entities security issues
- Added extra_requires for plugins deps and defusedxml
- Added banner_dict support + unittest (Merge edited PR from @cfoulds)
- Added black, isort in tox environment
- Added more unit tests in several modules to improve code collaboration and automated tested
- Added GitHub action pipeline to run pytests, black and isort checks
- Added GitHub action pipeline to publish pypi package
- Code linted and styled with black and isort
- Changed Licence from CC-BY to Apache 2.0, considering that CC is not appropriate for code licensing
- Changelog now using Keep-a-changelog specs
- Removed travis build in favor of GitHub Actions pipelines
- Fix empty nmap outputs due to subprocess race condition (Merge PR#79 from @Shouren)
- Add extra_requires for plugins deps and defusedxml
- Removed code duplication in sudo_run and sudo_run_background from process.py
- Fix for security issue on XXE (XML External Entities) - CVE-2019-1010017
- Fix of endless loop in Nmap.Process. Fix provided by @rcarrillo, many thanks!
- Merged pull requests for automatic pypi upload, thanks @bmx0r
- Added cpe_list method
- Added elasticsearch example code
- Fixed issues: 37, 41, 42, 43, 44, 46
- Added full support for python 3.X: python now supports python 2.6, 2.7, 3.3, 3.4
- Basic API for class CPE interface similar to python-cpe for more advanced usage of CPE, I strongly recommend you to use python-cpe.
- Added NmapTask class
- Added NmapProcess.current_task
- Added NmapProcess.tasks list
- Use of semaphore to not consume CPU while looping
- Removed Threads to read stdout/stderr
- Fixed bug in NmapProcess.state
- Added code samples
- Fix for issue 28
- Changes in OS fingerprint data API
- NmapHost now holds its OS fingerprint data in NmapHost.os (NmapOSFingerpring object)
- fingerprint is now a property which means you have to call it without (); e.g.: NmapHost.os.fingerprint
- NmapHost.os.fingerprints return an array of os fingerprints (strings)
- NmapHost.os.fingerprint return a concatenated string of all fingerprints
- Fingerprints data are now accessible via NmapHost.os.osmatches which returns a list of NmapOSMatch objects
- NmapOSMatch objects might contain a list of NmapOSClass objects matching with it
- NmapOSClass objects might contain a list of CPE object related to the os class (CPE class will be improved and API enriched)
- added support for if present in : accessible via NmapService.owner
- Minor fix for issue25
- Fixed exception when optional service tag is not present in tag
- Added support to run scan in background with sudo support
- Added NmapProcess.sudo_run_background()
- Corrected missing incomplete parameter on parse_fromfile and parse_fromstring
- Fixed issue with run() blocking when an error triggered during the scan
- Added "incomplete" argument in NmapReport.parse() in order to enable parsing of incomplete or interrupted nmap scans. Could be useful to use with a background scan to parse incomplete data blocks from callback function (thanks @Sibwara for the idea).
- Added NmapReport.endtimestr
- Added and tested cElementTree support (performance)
- Fixed bug when NmapReport.summary is empty
- Added support for tunnel attribute from tag
- Added support for servicefp (service fingerprint) in attributes from tag
- Added support for reasons attributes from tag
- Added support for extraports/extrareasons tags
- corrected bug in serialization: missing extra data (pull request from @DougRoyal)
- API change for NmapService.scripts_results:
- NmapHost.address property returns the IPv4 or IPv6 or MAC in that preference order. Use specific calls for determinists results
- NmapService.scripts_results is now a property
- NmapService.scripts_results return an array of scripts results
- Added new properties in hosts object API:
- NmapHost.ipv4
- NmapHost.ipv6
- NmapHost.mac
- Fix issue#14: better scripts parsing
- Fix issue#9 address field not correcly parsed: MAC Address would erase an ipv4 address type.
- Fix API issue#10: os_ports_used
- Fixed #issue8: There is no guarantee that "finished" or "runstats" will be received by event parser of process.py.
- Summary functions are now flagged as deprecated. To use data from scan summary of numbers of hosts up, the user of the lib will have to use NmapParser.parse() and the appropriate accessors.
- Fixed issue#6: Infinite loop while launching several nmap scans in background
- Added stop() to terminate nmap scan running in background
- Bug corrected in missing data from nmap scan output
- Refactory of objects to isolate each nmap object in a separate file
- Added fingerprint class
- Added NmapOSFingerprint class to provide better API to fingerprint data
- Added unit tests for basic NmapHost API check
- Added unit test for basic NmapOSFingerprint class
- Add S3 plugin, allow to store nmapreport object to aws S3 compatible object storage backend (via boto)
- Prepare packaging for pypi
- Code Docstring and added support for additional data
- Added support for scripts in NmapService
- Added support for hosts extra data in NmapHost (uptime, distance,...)
- Added support for OS fingerprint data in NmapHost
- Added python docstrings for all modules
- Added sphinx documentation
- Reviewed API for libnmap objects
- Fixed errors with hash() in diff
- Fixed errors/exceptions in NmapParser
- Added Serialization and Plugin support
- Added serialization encoders and decoders for NmapReport
- Added basic plugin capability to NmapReport
- Added basic mongodb plugin to validate plugin setup
Refactory of NmapDiff system
- Rework of NmapHost and NmapService API
- Added hash, id and get_dict() for common Nmap Objects
- Added NmapDiff class
- Full rework of unittests
- NmapParser now supports parsing from file
- NmapParser is able to handle nmap XML portions
- Added import in reports
- Added unittest for diff on NmapHost
- Added unittest for diff on NmapService
- Fixed: eq in NmapService: protocol not honoured
- Fixed: sudo_run hardened and added exception handling
- Full refactory of NmapParser with static method
- Added support for diffing NmapHost and NmapService
- Added NmapParserException class
- Added NmapReport class
- Added unittest for report api
- Added unittest for parser
- Corrected en hardened code for NmapParser
- Added scaninfo parsing
- Corrected unused variables and wrong unittests
- Parse() method reviewed to call "independent" XML bloc parsers
- Complete refactory of code to isolate NMAP objects.
- First developement release packaged for Project Ninaval