Commit Graph

12 Commits

Author SHA1 Message Date
dmiller 7c29b558d1 Fix some nonstandard NSEdoc 2025-05-16 19:28:10 +00:00
dmiller 6f57df02be Don't strip leading 0s in stdnse.tobinary
Every place this function is used, the result is padded with 0s anyway,
so may as well not strip them here. Didn't remove the padding code since
this could return only 4 chars, and most padding is to 8-char width.
2020-11-30 23:22:07 +00:00
dmiller dc996da218 Remove bin.lua calls and add unittests to formulas.lua 2018-08-29 03:06:38 +00:00
dmiller 1df024ec0a Add missing nsedoc marker for formulas.mean_stddev 2017-09-19 22:39:20 +00:00
dmiller d4fd11fc91 Avoid NaN return from formulas.mean_stddev when array has only 1 element 2016-10-24 20:17:07 +00:00
dmiller 75e6c2f64a Add mean, stddev, and median to formulas.lua 2016-07-21 17:05:21 +00:00
dmiller f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller 17c3e9755e NSEdoc cleanup.
1. The first paragraph of a function's NSEdoc is used as a short
summary. Some of these were very long, so I split off a shorter summary.

2. Use asterisks (*) to denote bulletted lists, not 'o'

3. Wrap lines at 80 columns

4. a couple other spelling and formatting fixes
2014-03-10 19:01:19 +00:00
dmiller a56f73effb Add NSEdoc to formulas.lua 2014-02-05 19:02:31 +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 db1d82ad1f Fixed global assignments with nse_check_globals
All fixes made by hand. A couple real bugs/errors fixed, due to
copy-paste of code from other scripts without changing variable names.
2014-01-22 17:45:00 +00:00
sophron bb23a89965 [NSE] Added a new library, formulas.lua, that holds some formula functions. 2013-08-23 01:58:15 +00:00