1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 15:39:03 +00:00
Commit Graph

10291 Commits

Author SHA1 Message Date
dmiller
8bb13ebf81 Localize more functions in stdnse.lua 2014-09-03 19:49:59 +00:00
d33tah
1c10f5f926 Keep the file list in order and add a header file for nse_lpeg.h as
well.
2014-09-03 14:34:54 +00:00
batrick
2b36d23f01 Include missing nse_lpeg.cc file for mswin32. 2014-09-03 14:30:06 +00:00
d33tah
b9fb766a4f Move a lot of raw/connect scanning routines. 2014-09-03 14:27:11 +00:00
d33tah
b6b92f6564 Move most (if not all) data structure declarations from scan_engine.cc
to scan_engine.h. Some method definitions remain in the header files and
should be moved to .cc later.
2014-09-03 14:27:04 +00:00
d33tah
c86b862501 Introduce scan_engine_connect.cc, scan_engine_connect.h,
scan_engine_raw.cc, scan_engine_raw.h and add them to Windows and Unix
build systems.
2014-09-03 14:27:00 +00:00
dmiller
40f36a4e3e Some string optimizations in NSE
Changes fall into these categories:

1. Avoid pathological string building. Loops over x = x .. "foo" can
become very slow. Instead, use strbuf.lua, table.concat, or just one
continuous concatenation; a = x .. y .. z is one operation, better than
a = x .. y; a = a .. z

2. Use hex-escaped strings instead of string.char. I find this more
readable in many cases, and it avoids a table lookup and function call.

3. Don't duplicate code. A few libraries and scripts had re-implemented
stdnse.generate_random_string or openssl.rand_bytes.
2014-09-03 04:49:54 +00:00
dmiller
25725d369e Localize a few functions in stdnse.generate_random_string for performance reasons 2014-09-03 04:49:49 +00:00
dmiller
d0b360b1a2 normalize capitalization for ttl output 2014-09-03 04:49:48 +00:00
dmiller
55da3727b6 Fix an error in iax2-version
The logic:

    byte12 == ("03" or "04")

is the same as:

    byte12 == "03"

so the second comparison was never able to succeed.

Additionally, some expressions were simplified, such as not formatting
numbers into strings in order to compare them.
2014-09-03 04:49:47 +00:00
dmiller
c615bee688 New convenience function stdnse.get_timeout 2014-09-02 18:23:09 +00:00
dmiller
2692746c42 NSEdoc cleanup
Mostly splitting function summaries (the first paragraph of NSEdoc) from
the body of the description to make the summary indexes shorter and
easier to scan.

Also fixed some unbalanced code tags like <code>foo</table>
2014-09-02 18:23:06 +00:00
d33tah
165595517f Don't include libnetutil here - it's already included in FPEngine.h. 2014-08-31 12:33:38 +00:00
sophron
ced66e5b3f [NSE] Refactored get_admin_cookie method in http-adobe-coldfusion-apsa1301. Patch by nnposter. 2014-08-30 15:48:12 +00:00
dmiller
667be96764 Fix some nsedoc 2014-08-29 19:58:15 +00:00
dmiller
5f7f87b74b Bump version from 6.46 to 6.47SVN 2014-08-29 18:43:18 +00:00
dmiller
964006b223 Adjust default timeout for rpc.lua
Reported: http://seclists.org/nmap-dev/2014/q3/378

Changes the default timeout for rpc.lua from 30s to 5 times Nmap's
calculated host timeout or 10s if no timeout info is available.
2014-08-29 16:34:56 +00:00
sophron
17d115d469 [NSE] http-adobe-coldfusion-apsa1301 missed a sanity check. 2014-08-29 16:31:37 +00:00
dmiller
a4d51ff8d6 Handle 'foo=,' case in ntp-info 2014-08-27 19:41:32 +00:00
dmiller
8e4f61725e Allow IPv6 fingerprinting to continue if sendto fails
http://seclists.org/nmap-dev/2014/q3/201

The fingerprint will be marked G=N, so ineligible for submission. Still
matches well against scanme.nmap.org, though.
2014-08-27 03:08:29 +00:00
dmiller
062b780a48 Relax ntp mode 7 key-value parsing
http://seclists.org/nmap-dev/2014/q3/372
2014-08-27 02:23:08 +00:00
dmiller
467bc7d3a5 Correct an incompatibility (#define X 1 instead of /**/) 2014-08-26 20:02:24 +00:00
dmiller
d6bc7eed0b Add some code from Patrick for debugging lpeg grammars 2014-08-26 18:53:52 +00:00
dmiller
b27feed980 Support diffie-hellman-group14-sha1 in ssh2.lua
ssh-hostkey was hitting an assertion failure when scanning OpenSSH 6.7.
The cause was a failure to check for a shared KEX algorithm. We just
assumed diffie-hellman-group1-sha1 would be supported, since RFC 4253
says it "MUST be supported". This adds support for group14, which is a
2048-bit modulus; key strength was likely the reason for dropping
group1. A more complete solution would be to support more KEX
algorithms, but that's beyond the scope of the bug report.
2014-08-26 13:35:25 +00:00
dmiller
cdc4260b6e Add templates/definitions for AC_DEFINEd symbols 2014-08-26 13:35:24 +00:00
dmiller
defa6c5c87 Add a todo item: nselib hierarchy 2014-08-26 02:54:03 +00:00
dmiller
4aaaba1992 Remove empty directory nselib/lpeg/ 2014-08-25 22:36:45 +00:00
dmiller
8f609b060d Move lpeg/utility.lua up a directory to fix installation issues 2014-08-25 22:22:15 +00:00
paulino
64b40b7a93 Adds signature for Lantronix SLC (http://www.lantronix.com/it-management/console-servers/slc.html) to http-default-accounts 2014-08-25 01:12:59 +00:00
dmiller
1a1dc0e47a Fix some typos 2014-08-23 21:35:32 +00:00
dmiller
c633079123 Use lpeg parsing in ntp-info to handle escape-quoted strings 2014-08-23 20:47:49 +00:00
dmiller
77fad1ed1a New lpeg utility function to parse quoted strings 2014-08-23 20:47:48 +00:00
dmiller
f8917a59a3 Compatibility changes for ntp-info
http://seclists.org/nmap-dev/2014/q3/222
2014-08-23 20:47:46 +00:00
dmiller
2bd4134b30 Note a completed task (Ndiff installation issues) 2014-08-23 04:27:35 +00:00
dmiller
86a945e666 Fix syntax issues with python-wrap.bat 2014-08-23 04:22:20 +00:00
dmiller
b113a27a04 Give python-wrap.bat Windows CRLF lines 2014-08-23 04:22:18 +00:00
dmiller
4603df3d0a Make py2exe include ndiff when building Zenmap 2014-08-23 04:22:17 +00:00
dmiller
699fe77571 Make make-bundle.sh change local dylib paths to relative ones 2014-08-23 04:22:16 +00:00
dmiller
ed5e0921f5 Update make-bundle.sh to reflect changes in fontconfig 2014-08-23 04:22:14 +00:00
dmiller
2251726609 Update make-bundle.sh to reflect changes in Pango 2014-08-23 04:22:12 +00:00
dmiller
6c28288c0a Update Macports instructions for zenmap 2014-08-23 04:22:10 +00:00
dmiller
b75df9d8f9 Add a test loader script for Zenmap, so tests don't fail with Python <2.7 2014-08-23 04:22:09 +00:00
dmiller
552b0bf226 Update CHANGELOG from the 6.47 release 2014-08-23 04:22:07 +00:00
dmiller
345bfce521 Parameterize xml_start_document and remove external DTD URI
http://seclists.org/nmap-dev/2014/q3/182
2014-08-21 20:13:59 +00:00
dmiller
1ea3557757 Let Windows build find VCExpress on any drive letter (mine is N) 2014-08-21 20:13:58 +00:00
jay
8367f8534a Add things to CHANGELOG 2014-08-18 13:05:26 +00:00
jay
4167e85cab Add items to todo list 2014-08-18 12:35:30 +00:00
batrick
de27812fe4 Revert libssh2 branch, for now.
$ svn merge -r r33518:r33513 .

and removed added scripts to the script.db.

The branch needs further refinement/testing for Windows and Mac before merging
into the trunk. There is also the latent EOF bug which is giving performance
issues.

Further work on the branch will continue in Devin's latest branch:

/nmap-exp/devin/nmap-libssh2
2014-08-18 03:12:00 +00:00
paulino
3702d44201 Adds entry about 'supermicro-ipmi-conf' in the CHANGELOG. 2014-08-18 02:11:36 +00:00
paulino
0343eabd69 Updated script.db. 2014-08-18 02:03:24 +00:00