Package: nmap-scan
Nmap scanNmap wrapper for python withfull Nmap DTD support, parallel scans and threaded callback methods support for faster analytics.Copyright (c) 2020 Fabian Fröhlichmail@nmap-scan.dehttps://nmap-scan.deFull License Information seeLICENSEfile in root directory of this source code and License section of this File.DonateThis project needs donations. Please check outhttps://nmap-scan.de/Donatefor details.Quick setupSee ourdocumentationfor details.Requiredinstall python 3.7 (other versions may also work)install python3-pipinstallNmappip3 install nmap-scanBasic usageSimple script to scan a network with parallel TCP and UDP scan and save the report into a file. Note that thecallback_methodis called asynchronous in the scanning thread of each scan method. If you don't need a callback on report finishing just remove the function call argument.fromnmap_scan.NmapArgsimportNmapArgsfromnmap_scan.NmapScanMethodsimportNmapScanMethodsfromnmap_scan.ScannerimportScannerargs=NmapArgs(['192.168.0.1/24'])scanner=Scanner(args)defcallback_method(report,scan_method):filename={NmapScanMethods.TCP:'tcp',NmapScanMethods.UDP:'udp',}report.save('reports/scan-'+filename.get(scan_method)+'.xml')scanner.scan_udp_background(callback_method)scanner.scan_tcp_background(callback_method)scanner.wait_all()LicenseThis section contains the additional terms of the AGPLv3 license agreement, a copy of the AGPLv3 is included in theLICENSEfile.Security analytic / "White had" use only.You are only allowed to use this tool, if you don't act against a law of your Country and if you don't planning a cyber attack on the scanned servers.You are only allowed to scan your own Servers and those, where you have the permission to do so.Adaptation of theREADME.mdis prohibited. The file must also be included with each copy without any modification.Adjustments of any kind must be listed in the attachedCHANGELOG.mdfile. It is sufficient to name the change and the reason for the change here and to give appropriate references to the processing in the source code at the appropriate place.All edited copies must be made available ongithub. You have to fork the original repository or use a fork from the original repository.You have to place the following link on your Homepage in a suitable place, if you using this software in a commercial way:We using server scan tools from<ahref="https://nmap-scan.de">Fabian Fr&ouml;hlich</a>The wording is decisive here, so another language may be used. Attributes of the link may also be adjusted, but the link must be followable by web crawlers (e.g. Googlebot).Furthermore, the imprint has to include a clear reference to the original github repositoryhttps://github.com/f-froehlich/nmap-scanas well as the link mentioned above in the body text.You are not allowed to earn money with this tool.ContributorsNameemailinfoFabian Fröhlichmail@nmap-scan.deMain contributor and code ownerChangelog1.0.0Complete implementation of thenmap DTDParallel executed scans with threaded callbacksParallel analysed scan reports for performance boostSome useful helper methods for Hosts, Ports, Services, ...CLI callable withargparseOS, Host, Service, Sequence, Trace and Stats supportspecific script handling (Default script for other)SSLEnumCiphers