在Pyinstaller中使用Python nmap调用,可为Windows执行
我想替换使用NMAP调用来分辨率分辨率的Ping/ARP代码。
我们使用Pyinstaller使用Python 3.7构建了可执行文件,用于设备测试,以在几个地理位置中分配到多个(20-30)个PC运行Windows 10。
但是,据我了解,我们需要在每个PC上安装NMAP Windows库代码:Python-PIP软件包只是操纵接口的接口,并且不包含实际的NMAP库代码。我在测试PC上的初步调查中发现了这一点。
我对此正确吗?如果是这样,我是否可以安装并构建一个可以处理NMAP库调用的EXE文件中的其他Python软件包?还是其他一些工作或建议?
希望这是有道理的,谢谢!
I'd like to replace our ping/ARP code which does IP address resolution with nmap calls.
We build an executable file for device testing using Python 3.7 with Pyinstaller to distribute to multiple (20 - 30) PCs running Windows 10 in several geographies.
BUT, from what I understand, we will need to have the nmap windows library code installed on each PC: the python-pip package is only the interface to manipulation interfaces, and does not contain the actual nmap library code. I discovered this during initial investigation on my test PC.
Am I correct on this? If so, is there an additional python package I could install and build into the exe file that would handle the nmap library calls? Or some other work-around or suggestion?
Hope this makes sense, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
非常好的问题。我实际上也在研究这个问题。我发现您可以 OEM
nmap
到您的二进制文件中,但这不是免费的。将花费您 5 万至 10 万美元。Very good question. I'm actually looking into this as well. All I found that you can OEM
nmap
into your binary, but that's not free. Will cost you from $50k to $100k.