【问题标题】:nmap could not locate nse_main.luanmap 找不到 nse_main.lua
【发布时间】:2019-10-20 03:53:08
【问题描述】:

当我尝试使用以下内容时 nmap -p 443 -Pn --script=ssl-cert ip_address 我收到以下错误:

Starting Nmap 7.70 ( https://nmap.org ) at 2019-06-04 15:20 UTC
NSE: failed to initialize the script engine:
could not locate nse_main.lua
stack traceback:
    [C]: in ?

QUITTING!

nmap --version 的回复 是

Nmap version 7.70 ( https://nmap.org )
Platform: x86_64-alpine-linux-musl
Compiled with: liblua-5.3.5 openssl-1.1.1a libssh2-1.8.0 libz-1.2.11 libpcre-8.42 libpcap-1.9.0-PRE-GIT nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select

【问题讨论】:

  • 我是从 deb 安装 nmap,它是用 rpm 中的外星人转换的。得到一样的。重新安装 nmap 有帮助。
  • 同样的错误,重新安装没有任何作用

标签: nmap


【解决方案1】:

您还需要安装软件包 nmap-scripts,因为它不会自动安装在 Alpine 上(请参阅 here)。

所以只需运行 apk add nmap-scripts 或将其添加到您的 dockerfile。

【讨论】:

    猜你喜欢
    • 2015-08-14
    • 2018-03-31
    • 2020-06-05
    • 2021-10-21
    • 1970-01-01
    • 2017-12-19
    • 2022-01-10
    • 1970-01-01
    • 2022-08-15
    相关资源
    最近更新 更多