Hi guys, how can i install the module nmap on pythonista or SO ?
i use stash shell, and i'm already installed the python-nmap, but it depend of the program installed on PATH.
can someone help me to use nmap on Pythonista?
i tryed to download the bz2 and extract via stash, but it's impossible to install this way.
Forum Archive
Nmap on Pythonista
You can't use nmap on iOS, as it is not pure python.
You might try https://github.com/scivision/findssh.
@JonB
understand! i think the just one way to solve this, it's develop a tool for get the real ip and openned doors from a domain or public ip. because utilizing the method gethostbyname('parameter') from lib sockets, maybe i'm wrong, but this method can't show the "real ip" from especified domain.
For an easy python nmap intergration there is python3-nmap which is easy to use. A python 3 library which helps in using nmap port scanner. This is done by converting each nmap command into a callable python3 method or function. System administrators can now automatic nmap scans using python. for example.
$ nmap 192.168.178.2 --top-ports 10
But in this python3 script you would do something like this
import nmap3
nmap = nmap3.Nmap()
results = nmap.scan_top_ports("192.168.178.2")
# And you would get your results in json
This tool was developed when building a pentest site, and they wanted to extend there Nmap feature with easy, so they developed this tool and it's not amoung those automating pentesting. There is more to this tool like dns.brute.script for Subdomain finder and advanced nmap features like OS, version detection
https://github.com/wangoloj/python3-nmap
@latest-release I assume this is just a spam post? Python-nmap3 is just a wrapper around the shell nmap command, so of course won't work on iOS