Nmap Development mailing list archives

Re: Nmap Script Engine on OpenWrt


From: Bruno <bruno () streamfeed com>
Date: Thu, 5 Apr 2018 17:32:13 -0300

The lua version on the OpenWRT device that is being used is Lua 5.1.5.

Trying with the "--with-liblua=included" option, it tried to compile liblua, however it still failed with the attached error log.

But it seems some progress were made. Do you have any other suggestions I could try?

Thanks Daniel

On 04/05/2018 10:30 AM, Daniel Miller wrote:
Bruno,

Thanks for following up. It appears that you might have a version of Lua installed that is incompatible with Nmap. You can force Nmap to build and statically link the Lua 5.3.3 source that's included with Nmap by passing --with-liblua=included to configure. Let us know if this fixes the issue for you.

Dan

On Mon, Apr 2, 2018 at 1:24 PM, Bruno <bruno () streamfeed com <mailto:bruno () streamfeed com>> wrote:

    Thanks Daniel Miller for your prompt answer,

    I'm attaching the error log. (Not sure if it works for the dev
    list. If it doesn't I will reply with the error on clear text).

    Compiling with the "--without-liblua" works flawlessly.

    On 04/02/2018 02:42 PM, Daniel Miller wrote:
    Bruno,

    NSE doesn't make sense outside the context of Nmap, and many of
    the libraries it uses are compiled in to nmap itself. However,
    there shouldn't be any reason that it wouldn't compile on
    OpenWrt. Can you change the package's makefile so that it doesn't
    use --without-liblua in configure and then report what actually
    happens? What are the specific errors that happen?

    Dan

    On Mon, Apr 2, 2018 at 11:28 AM, Bruno <bruno () streamfeed com
    <mailto:bruno () streamfeed com>> wrote:

        Is it possible to run NSE scritps, but without the nmap
        scripting?

        I'm trying to run nmap scripting on OpenWRT, so the router
        let me know if there are vulnerabilities on my network to be
        patched. However, the nmap version for OpenWRT is missing
        scripting support
        (https://github.com/openwrt/packages/issues/4472
        <https://github.com/openwrt/packages/issues/4472>)

        The scripts are written in lua. So, what I'm planning to do
        is run all the scripts available from lua itself. Do I have
        to rewrite part of NSE or is there an easy way to do it? Or
        is there a way to enable scripting on OpenWRT with liblua?

        Thanks


        _______________________________________________
        Sent through the dev mailing list
        https://nmap.org/mailman/listinfo/dev
        <https://nmap.org/mailman/listinfo/dev>
        Archived at http://seclists.org/nmap-dev/





Attachment: errorNmap.txt
Description:

_______________________________________________
Sent through the dev mailing list
https://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: