在Pyinstaller中使用Python nmap调用,可为Windows执行

发布于 2025-01-18 22:55:29 字数 325 浏览 3 评论 0原文

我想替换使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

年华零落成诗 2025-01-25 22:55:29

非常好的问题。我实际上也在研究这个问题。我发现您可以 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文