Commit Graph

5 Commits

Author SHA1 Message Date
dmiller 2db52ae951 Force numeric values to string to avoid assertion in tab.lua. Related #266 2016-03-13 20:29:10 +00:00
dmiller f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller 829fbef715 Fix human-readable sizes in ls.lua
First, enforce significant digits when converting, e.g. 1.1K to bytes.
Next, use the server-returned human-readable format instead of
converting to bytes by default. The conversion to bytes is still done to
get total byte count.

Also changed how boolean options work to better match existing
convention: --script-args ls.human or --script-args ls.human=1 now work.
You must explicitly say "false", "no", or "0" to make a boolean flag
false (or just leave it out).
2015-09-04 14:23:14 +00:00
dmiller 998da3d070 Fix an assertion error in ls.lua: size is a number, not a string 2015-09-04 12:52:09 +00:00
dmiller 087fadf2a9 Add ls.lua library. Closes #106 2015-09-04 12:52:08 +00:00