1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 08:51:36 +00:00
Commit Graph

20 Commits

Author SHA1 Message Date
nnposter
4b46fa7097 Label the function as intentionally empty
See https://seclists.org/nmap-dev/2021/q1/31
2021-04-07 18:42:28 +00:00
dmiller
0500811f5a Move string utility functions to stringaux.lua 2018-10-18 01:08:19 +00:00
dmiller
3e3f600b8a Update default-category scripts to use bitwise operators instead of bit.lua 2017-03-13 14:58:56 +00:00
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
a8d34b7635 Prevent address-info from crashing when the IPv6 address is "not interesting" 2014-08-08 14:43:10 +00:00
dmiller
31a2c432e1 Final re-indent for scripts. 2014-02-02 15:33:39 +00:00
dmiller
620f9fdb34 Remove trailing whitespace in lua files
Whitespace is not significant, so this should not be a problem.
https://secwiki.org/w/Nmap/Code_Standards
2014-01-23 21:51:58 +00:00
dmiller
197f28265f New function stdnse.format_mac
This function will format a MAC address as colon-separated hex bytes.
It's really very simple: stdnse.tohex(mac, {separator=":"})

This commit updates all the instances I could find of the varying
convoluted attempts at performing this conversion.
2014-01-16 21:50:30 +00:00
henri
1ebe659bd5 Prevent script from crashing when running against ::1.
This case wasn't properly handled. Simply return nil.

It could also return 127.0.0.1 or 127.0.0.0/8 instead
of early exit though I doubt it makes that much sense
for user.
2013-06-29 18:36:24 +00:00
henri
b45f3e89f5 Indentation fix. 2013-06-29 18:36:16 +00:00
dmiller
612b1c11ea Structured output for address-info 2013-05-07 15:56:41 +00:00
dmiller
b868e7f3ce Move caching code to datafiles lib
Scripts no longer need to implement caching of datafiles tables in the
registry, since the datafiles.lua library keeps its own cache in the
registry. A side-effect is that scripts should not change the tables
returned by datafiles.parse_{protocols,rpc,services,mac_prefixes}(), as
doing so will affect all other scripts that use those functions.
2012-07-27 20:07:38 +00:00
batrick
000f6dc4d9 Lua 5.2 upgrade [1] for NSE.
[1] http://seclists.org/nmap-dev/2012/q2/34
2012-05-27 08:53:32 +00:00
david
8080f1dd41 Exclude ::1 from being an IPv4-compatible address (0.0.0.1) in address-info.
It said:
|_address-info: IPv4-compatible; IPv4 address: 0.0.0.1
which is not right.
2011-12-23 21:14:53 +00:00
david
d2b063b206 Add missing datafiles import to address-info. 2011-10-04 19:40:04 +00:00
gorjan
653cf8fcbd Update address-info to show MAC address related manufacturer. 2011-09-26 22:42:08 +00:00
fyodor
5743a26565 trivial nsedoc change 2011-09-12 21:07:57 +00:00
david
d2bce72bee Doc typo in address-info.nse. 2011-09-11 21:05:57 +00:00
fyodor
a5d81c3b35 Improve some NSEDoc descriptions 2011-09-11 20:44:07 +00:00
gorjan
b12bb4fba2 Adding address-info.nse, which shows extra information about IP addresses. 2011-08-23 10:36:16 +00:00