1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00
Commit Graph

9911 Commits

Author SHA1 Message Date
d33tah
5083b40527 Make the script detect \r\n correctly. 2013-09-10 23:24:09 +00:00
fyodor
080015cd24 Add an item noted on dev list 2013-09-08 07:45:54 +00:00
sophron
c084e2fd8d [NSE] Updated script.db. 2013-09-06 21:08:00 +00:00
david
502339c92c Revert to r32212.
My recent changes are causing problems when I try to integrate them into
the ncat-sa-take2 branch.
2013-09-06 06:16:13 +00:00
david
4fdde97639 Factor out lua_call_traceback.
This does a lua_pcall with the standard traceback error handler.
2013-09-05 22:10:15 +00:00
david
3ada0d56c3 Don't use global o.cmdexec in lua_setup.
Pass the name of the file to read as a parameter.
2013-09-05 20:35:50 +00:00
david
a16dd65503 Get rid of static lua-exec state.
Have lua_setup return the state it creates. Store the state created from
--lua-exec in the global options table. Use a temporary local for
--lua-exec-internal.
2013-09-05 20:35:49 +00:00
david
7ab4da3581 Get rid of the global traceback index.
Just push the traceback function before lua_pcall. The now has to be
less meticulously maintained between lua_setup and lua_run.
2013-09-05 20:35:48 +00:00
david
c38367b8c8 Remove obsolete comment. 2013-09-05 20:35:46 +00:00
sophron
27f241e20f [NSE] Added http-devframework (along with its fingerprints file) that tries to find out the technology behind the target website. 2013-09-05 19:31:40 +00:00
d33tah
ca3ceecbf3 Fix echo.lua bug related to how io.stdin:read(n) works. 2013-09-04 15:40:51 +00:00
d33tah
fad24ba53e Fix a typo. 2013-09-04 15:40:47 +00:00
d33tah
143a8acc8a Don't consider "\r" an end of line. 2013-09-04 15:40:41 +00:00
d33tah
4b07187873 Make conditional.lua use read_line too. 2013-09-04 14:33:39 +00:00
d33tah
e718536eaf Send 414 if the first line is longer than 8096 bytes. 2013-09-04 14:25:53 +00:00
d33tah
6f472f154c Replace io.stdin:read("*line") with a custom read_line function. 2013-09-04 14:04:55 +00:00
d33tah
bbadf79933 Copy httpd.lua from lua-exec-examples branch. 2013-09-03 18:44:46 +00:00
d33tah
ad2b15b88f Make ncat-test.pl work on both Windows and *nix without modification;
feel free to revert it if you believe it needs some discussion first.
(I find it useful when working from both VM and Linux on a shared
directory)
2013-09-03 01:01:38 +00:00
dmiller
989ae60dd2 Update traceroute-geolocation for new geoplugin.net API 2013-09-02 11:36:24 +00:00
david
f6c83d2a37 Performance improvement in telnet-brute.
By nnposter.
http://seclists.org/nmap-dev/2013/q3/413
2013-08-30 16:04:19 +00:00
d33tah
695be03e60 Fix a copy-paste mistake in Ncat test suite. 2013-08-30 10:23:22 +00:00
d33tah
d68d608d7d Fix coding style of all scripts with Lunadry. 2013-08-29 13:34:23 +00:00
d33tah
02b7b0ac8e Mention the HTTP server in --lua-exec section. 2013-08-29 12:26:28 +00:00
d33tah
520e1a4fc5 Add some more --lua-exec documentation. 2013-08-29 12:18:14 +00:00
d33tah
fde17a7db5 Mention the SSH built-in proxy. 2013-08-26 17:26:20 +00:00
d33tah
fe202d25f2 Add <command> tags to the Ncat Users' Guide. 2013-08-26 17:20:14 +00:00
d33tah
8c063aad3c Add a section on HTTP servers to Ncat Users' Guide. 2013-08-26 15:53:37 +00:00
fyodor
b490777101 Add the source code for the Ncat Guide (http://nmap.org/ncat/guide/index.html) to the Ncat docs directory 2013-08-24 06:08:21 +00:00
sophron
441f840ba9 [NSE] Updated script.db 2013-08-23 02:38:20 +00:00
sophron
f7a0989391 [NSE] Added http-csrf.nse that detects Cross Site Request Forgeries (CSRF) vulnerabilities in HTML forms. 2013-08-23 02:08:09 +00:00
sophron
2283671742 [NSE] cccam-version.nse makes use of the new 'formulas' library. 2013-08-23 02:03:46 +00:00
sophron
bb23a89965 [NSE] Added a new library, formulas.lua, that holds some formula functions. 2013-08-23 01:58:15 +00:00
sophron
1586dc3163 [NSE] Added http-feed.nse that crawls through the website and returns any rss or atom feeds. 2013-08-23 01:53:34 +00:00
sophron
ba35d3b087 [NSE] Added http-errors.nse that crawls through the website and returns any HTTP error pages. 2013-08-23 01:48:21 +00:00
david
699142c299 nmap-service-probes typo. 2013-08-21 22:20:07 +00:00
d33tah
4993befdb4 Fix a typo in nsock documentation. 2013-08-21 20:06:38 +00:00
dmiller
c3a165609d A couple minor typos in refguide related to --proxies 2013-08-20 15:01:51 +00:00
fyodor
f2be278c32 Add some items suggested by Henri 2013-08-18 18:44:25 +00:00
sophron
9561155701 Patch by nnposter that improves performance of http-default-accounts
http://seclists.org/nmap-dev/2013/q3/346

For any given fingerprint from http-default-accounts-fingerprints
script http-default-accounts currently tests corresponding default
credentials if at least one  of the probe URLs succeeded, namely
returned with status other than 404.

Some web servers, such as Linksys devices, respond with HTTP/401 even
for non-existent URLs. This causes the script to assume that these URLs
do exist and to test the credentials, while ideally they should be
tested only on those servers where they make sense.

The purpose of the attached patches is to reduce unnecessary credential
guessing by implementing a new optional fingerprint element, function
target_check(), which takes some already collected target information,
including a probe URL response, and returns true or false, indicating
whether the credential guessing should be attempted or not.

All of the current fingerprints have been retrofitted with simple
target validations as follows:

* If the fingerprint uses native HTTP authentication, validate that the
target's realm matches the server type.

* If the fingerprint uses form-based authentication, validate that the
probe URL returned with HTTP/200 (as opposed to perhaps HTTP/401).

When testing against the above-mentioned Linksys the difference was
notable: 14 login attempts before the patch versus 1 attempt after the
patch.

This functionality provides opportunity for further improvement by
being able to match page content to differentiate between real HTTP/200
and a custom error page. (As of now the script completely skips targets
that return HTTP/200 for non-existent pages.)
2013-08-18 01:42:48 +00:00
fyodor
9f0db3819e Add some Nsock proxy todos and note some done tasks 2013-08-17 20:13:00 +00:00
fyodor
85e74c4075 Regen man pages 2013-08-17 20:09:25 +00:00
fyodor
9a4d5de988 Update --proxies docs 2013-08-17 20:09:03 +00:00
henri
179451f485 Document --proxies option. 2013-08-17 11:47:42 +00:00
henri
59e68ddffb Add --proxies to nmap help screen. 2013-08-17 11:46:34 +00:00
sophron
683e83117b [NSE] Convert these values to numeric (for example, when they passed as command line args). 2013-08-17 06:03:45 +00:00
fyodor
f6fb3a7773 Update CHANGELOG for Nmap 6.40. I didn't realize just how many great improvements were in this release until I had to write them all down :) 2013-08-17 05:46:26 +00:00
david
f372e17877 CHANGELOG for ICMP ID matching. 2013-08-17 02:18:13 +00:00
david
262c147308 Match icmpid in icmp_probe_match.
Remainder of Chris Johnson's patch from
http://seclists.org/nmap-dev/2013/q3/296.

Previously, Nmap could match replies that came in response to an
original probe, with one of the retransmissions of the probe. One effect
was that latency would be measured to be smaller than it should. Chris
Johnson summarized the problem and showed how to reproduce it at
http://seclists.org/nmap-dev/2013/q3/113.
2013-08-17 02:18:09 +00:00
david
4b47eae996 Store ICMP ID in ICMP probes.
Part of Chris Johnson's patch from
http://seclists.org/nmap-dev/2013/q3/296.
2013-08-17 02:18:07 +00:00
david
f49e3435f8 Factor out icmp_probe_match.
Part of Chris Johnson's patch from
http://seclists.org/nmap-dev/2013/q3/296.
2013-08-17 02:18:05 +00:00