FS#75187 - [nmap] nse scripts can't add new target
Attached to Project:
Arch Linux
Opened by none (vinzzer) - Wednesday, 29 June 2022, 15:50 GMT
Last edited by Toolybird (Toolybird) - Friday, 15 September 2023, 03:31 GMT
Opened by none (vinzzer) - Wednesday, 29 June 2022, 15:50 GMT
Last edited by Toolybird (Toolybird) - Friday, 15 September 2023, 03:31 GMT
|
Details
From version 7.92 untill commit
https://github.com/nmap/nmap/commit/c58b7b25266bf1da9b02dc450d6593489000f3ab
(stil version 7.92.1)
Nmap nse scripts can't add new target. Nmap didn't change version (9.72.1) but need to be rebuild (including the commit c58b7b25266) for resolve the bug. ## Step for repoduce ```sh $ cat << EOF > test.nse local target = require "target" prerule = function() local status, err = target.add( "localhost","1.1.1.1" ) print("status: " .. tostring(status)) print("err: " .. err) end action = function() return true end EOF $ nmap --script ./test.nse --script-args 'newtargets' ``` |
This task depends upon
Closed by Toolybird (Toolybird)
Friday, 15 September 2023, 03:31 GMT
Reason for closing: Fixed
Additional comments about closing: We're now on nmap 7.94 so assuming fixed.
Friday, 15 September 2023, 03:31 GMT
Reason for closing: Fixed
Additional comments about closing: We're now on nmap 7.94 so assuming fixed.
Comment by none (vinzzer) -
Wednesday, 29 June 2022, 17:06 GMT
Since PKGBUILD download binarie from
source=("https://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2")
&nd not build from source this make not sense to rebuild it.
Comment by Doug Newgard (Scimmia) -
Wednesday, 29 June 2022, 17:17 GMT
The PKGBUILD does NOT download a binary.
Comment by none (vinzzer) -
Wednesday, 29 June 2022, 17:29 GMT
My bad but nmap-7.92.tar.bz2 don't have the modification done one
"NewTarget.cc", "NewTarget.h", "nmap.h", "nmap.cc",
"nse_nmaplib.cc" and "target.cc". So rebuild it will resolve
nothing on this bug.
Comment by Doug Newgard (Scimmia) -
Wednesday, 29 June 2022, 17:30 GMT
Yes, the ticket is worded pooly. It needs patched, not rebuilt.