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

4399 Commits

Author SHA1 Message Date
djalal
2ad517622b Add the nfs-ls script entry to the script.db 2010-06-12 23:53:20 +00:00
djalal
921f052f0b Merge r17766:18060 from /nmap-exp/djalal/nselib and nmap-exp/djalal/scripts contains new scripts nfs-ls.nse and lot of new code to the rpc.lua library to check files type and attributes to marshall/unmarshall file attributes and some new high level functions to manipulate NFS objects. 2010-06-12 23:45:59 +00:00
drazen
48ead20324 Added a NOTUP notification if the target service is down (not started). 2010-06-12 22:13:30 +00:00
drazen
0f4d199b1e Fixed a simple bad gameplay in which I attempt to close
an already closed SMB session.
2010-06-12 21:45:16 +00:00
djalal
24807128d2 Merge r17640:18062 from /nmap-exp/djalal/nmap, this is a port of the LuaFileSystem directory iterator in order to use Lua code to list scripts. 2010-06-12 21:41:09 +00:00
drazen
62c2d97f93 MS06-025:
-- Finished, tested and merged into smb-check-vulns
	-- msrpc.lua contains the code required to interface with the RASRPC interface
2010-06-12 19:32:50 +00:00
david
e4162e6771 o [NSE] Added dns-cache-snoop.nse by Eugene Alexeev. This script does
cache snooping by either sending non-recursive queries or by measuring
  response times.
2010-06-12 02:25:44 +00:00
fyodor
6cdc29e49c note an ipv6 problem task 2010-06-11 23:15:28 +00:00
david
35fbec3055 TODO: Testing the removal of PacketSetReadTimeout is done. 2010-06-11 22:49:47 +00:00
david
82e2cc323d Copy the nselib directory as we do in the POSIX makefile, to avoid installing
.svn directories. These were previously present in the Windows zip file, in the
nselib/data and nselib/data/psexec directories.
2010-06-11 22:39:10 +00:00
david
3291dcf898 Some done TODO items. 2010-06-11 16:48:58 +00:00
fyodor
35a28ea343 canonicalize some license text that differed in whitespace or quote character or line-ending or (in a couple cases) the slightly older wording 2010-06-11 06:54:56 +00:00
fyodor
3ceb44b4f7 Moved some information from the license field of these two scripts to the description field. I felt this was a better place since the URL leads to a description of the service rather than license information 2010-06-11 06:49:15 +00:00
fyodor
6ac6e2fad5 loosen the requirements for a split-handshake syn detection to allow the likes of SYN|PSH. See this thread: http://seclists.org/nmap-dev/2010/q2/739 2010-06-11 06:17:52 +00:00
fyodor
0585746788 latest todo updates 2010-06-11 06:15:41 +00:00
fyodor
e0652ac237 Update the vcredist URL to the one we currently use, also note the /q option to run it in quiet mode 2010-06-10 20:39:07 +00:00
luis
79c5e1564b Updated configure script to reflect the changes in r18001 2010-06-10 15:14:23 +00:00
luis
186c990bd9 Fixed a bug that caused Nping to be left out of the makeclean-ing or makedistclean-ing process 2010-06-10 15:13:39 +00:00
fyodor
46a819b034 changed a URL to use %28 and %29 rather than ( and ) to fix an nsedoc parsing issue noted by Jason DePriest 2010-06-10 05:36:39 +00:00
fyodor
0f4bf784be commented out an hp-pjl empty softmatch which was causing problems for other services as described by Tom Sellers in this thread: http://seclists.org/nmap-dev/2010/q2/753 2010-06-09 23:24:08 +00:00
luis
0c8dd438e1 Added a few common protocols to proto2ascii(). Some ifdef directives were included, to avoid breaking compilation if the protos are not defined in some systems. 2010-06-09 17:37:52 +00:00
luis
58c18f80cf Revert mistaken r17962. 2010-06-09 17:20:50 +00:00
luis
003e23c4e8 Merge r17853:17879 from /nmap-exp/luis/nping-dedup.
------------------------------------------------------------------------
r17854 | luis | 2010-06-06 15:47:34 +0200 (Sun, 06 Jun 2010) | 1 line

Removed a few things from the documentation that were rerefenced but not yet implemented
------------------------------------------------------------------------
r17855 | luis | 2010-06-06 15:53:45 +0200 (Sun, 06 Jun 2010) | 1 line

Fixed a bug that caused ARP Requests to be sent no matter what the user supplied as the ARP operation code
------------------------------------------------------------------------
r17856 | luis | 2010-06-06 16:23:47 +0200 (Sun, 06 Jun 2010) | 1 line

Fixed a bug that produced a buffer overflow when non-RFC-compliant ICMP types were set. Now, if user supplies a weird ICMP type, a regular 8-byte ICMP header will be sent
------------------------------------------------------------------------
r17858 | luis | 2010-06-06 22:08:13 +0200 (Sun, 06 Jun 2010) | 1 line

Added a function (and a helper) so the number parsing in Nping is consistent. The new function, parse_unsigned_number() may parse 8, 16, or 32 bit unsigned integers, specified in hexadecimal, octal or decimal. Alternatively, source string may be the special value <<rand>> or <<random>>, and the function will generate a random number of the desired length. Function validate_number_spec() is needed due to the limitations of strtoul() that doesn't report errors on things like 1zzzppp, and gives undesired results when a minus sign is supplied. validate_number_spec() performs various checks, trying to detect bogus input. However, if something is not catched by it, strtoul() may take care of it. I've been testing both functions for hours, even with automatically generated input and I haven't been able to find any bug, so I think its safe to start using this.
------------------------------------------------------------------------
r17859 | luis | 2010-06-06 23:43:04 +0200 (Sun, 06 Jun 2010) | 1 line

Added the possibility to supply special value <<rand>> in MAC address specification
------------------------------------------------------------------------
r17860 | luis | 2010-06-07 00:01:30 +0200 (Mon, 07 Jun 2010) | 1 line

Added the possibility to specify the special value <<broadcast>> so the address FF:FF:FF:FF:FF:FF is set. Also, fixed move string length check so the function does not return OP_FAILURE before checking for these special values
------------------------------------------------------------------------
r17866 | luis | 2010-06-07 01:05:31 +0200 (Mon, 07 Jun 2010) | 1 line

Implemented function getRandomTextPayload() to support <<random>> value in payload string specification
------------------------------------------------------------------------
r17867 | luis | 2010-06-07 01:08:29 +0200 (Mon, 07 Jun 2010) | 1 line

Lots of changes in Nping's  command-line argument parser to use the new parse_unsigned_number() function. Now virtually all parameters may be specified in hexadecimal, octal or decimal base, or even using the special value <<random>>
------------------------------------------------------------------------
r17868 | luis | 2010-06-07 01:12:02 +0200 (Mon, 07 Jun 2010) | 1 line

Removed useless var declarations. There is already an aux32 var declared at the start of the function
------------------------------------------------------------------------
r17869 | luis | 2010-06-07 01:24:00 +0200 (Mon, 07 Jun 2010) | 1 line

Fixed a bug that caused the SYN flag to be set even when the user had specified --flags 0x00.
------------------------------------------------------------------------
r17870 | luis | 2010-06-07 01:27:33 +0200 (Mon, 07 Jun 2010) | 1 line

Fixed another bug in flag parsing. When an empty string was being passed, the SYN bit was being set. Now if an empty string is passed, no flags will be set
------------------------------------------------------------------------
r17873 | luis | 2010-06-07 13:12:36 +0200 (Mon, 07 Jun 2010) | 1 line

Fixed a bug that caused -g to be ignored in TCP-Connect or UDP unprivileged modes. Now, providing the user has enough privileges on his system, the specified source port will be set, at least in the first packet send to each target.  I've tested this on Linux and the OS complains when Nping attempts to use the same source port twice for the same target IP address in TCP-Connect mode. For this reason, a new warning was added so the users know that it will probably fail.
------------------------------------------------------------------------
r17875 | luis | 2010-06-07 13:25:04 +0200 (Mon, 07 Jun 2010) | 1 line

Fixed a bug that caused message <<Operation now in progress>> to be displayed in TCP-Connect mode when RST packets were being received. The problem was that errno was being used and by the time it was referenced, its value had changed so the wrong message was being printed. Now, the error code is obtained from nsock trough a call to nse_errorcode() and the correct message is displayed: <<Connection refused>>
------------------------------------------------------------------------
r17876 | luis | 2010-06-07 13:29:04 +0200 (Mon, 07 Jun 2010) | 1 line

Minor fix
------------------------------------------------------------------------
r17877 | luis | 2010-06-07 13:49:52 +0200 (Mon, 07 Jun 2010) | 1 line

Fixed a bug that caused Nping to fail when the first supplied target was not resolvable (eg: nping bogushost.fkz scanme.insecure.com tcpdump.com).
------------------------------------------------------------------------
r17878 | luis | 2010-06-07 14:56:02 +0200 (Mon, 07 Jun 2010) | 1 line

Fixed a bug that causes Nping to fail when scanning an IP address assigned to a local network interface. The problem is complex and difficult to solve due to the way Nping handles targets and determines things like src IP addresses. This patch introduces an ugly hack (an explicit check for a particular situation in route_dst() ). This is not the most elegant solution and it probably only works in Linux, but it should be OK until a better solution is found.
------------------------------------------------------------------------
r17879 | luis | 2010-06-07 18:46:44 +0200 (Mon, 07 Jun 2010) | 1 line

Added a few wrappers for the new parse_unsigned_number() function. This should minimize the risks of calling it with an invalid pointer type. Also, its prototype has been removed from utils.h and it has been declared static. Additionally, the validate_number_spec() function was removed, relying on strtoul() to perform the appropriate validation.
------------------------------------------------------------------------
2010-06-09 17:16:09 +00:00
luis
021d8b1a14 Removed duplicate sentence 2010-06-09 07:22:26 +00:00
david
2a8d0f2301 Break apart host groups when a new host has the same address as one already in
the current host group. This was already done in nexthost but only affected
ping scanning. Here in nmap.cc it takes effect for port scanning.
2010-06-09 03:12:38 +00:00
david
d638f68826 New TODO items today. 2010-06-09 02:13:13 +00:00
ron
f91c3d0136 Added a minor patch contributed by the Nepenthes Development Team. It changes the 'alloc hint' argument to be the expected value, which happens to be the size of the arguments, instead of the static value I was using. No target I've ever seen cares about the value of this argument, but this brings us slightly more in line with the standard 2010-06-09 01:31:28 +00:00
fyodor
21ba2011a4 Some changes from chat w/David 2010-06-08 22:24:08 +00:00
jah
a17609e6b4 Ports are now considered open during a SYN scan if a SYN packet (without the ACK
flag) is received in response. This can be due to an extremely rare TCP feature
known as a simultaneous open or split handshake connection.
see http://nmap.org/misc/split-handshake.pdf
Added a reason code: ER_SYN and associated reason string: "split-handshake-syn".
2010-06-08 01:50:45 +00:00
fyodor
77ef606d52 Update the refguide (man page) to note our new (soon-to-be) support for TCP simultaneous-open/split-handshake connections 2010-06-08 00:47:08 +00:00
david
58e1d664a6 Force a new host group whenever the next host has the same IP address as
one already present in the current group. This is because ultra_scan
does not cope with multiple targets sharing the same IP address. However
this alone isn't enough to force a new host group, because the loop in
nmap.cc concatenates groups that nexthost splits apart, with its own
duplicate logic for breaking up groups.
2010-06-07 23:43:07 +00:00
david
a70b8dd5fd Break apart target_needs_new_hostgroup to it's easier to read, not just
one big expression. Also fix a dumb bug I just introduced where I was
comparing the same value with itself.
2010-06-07 22:36:21 +00:00
david
f6358d1f3a Factor out the logic that decides if a target needs to go into a
different host group. Also insert the target into the group only after
we're sure we want it, instead of provisionally inserting it and then
removing it after we find it's unwanted.
2010-06-07 22:13:20 +00:00
david
3a0b829ea1 Make const these methods of Target:
deviceName
deviceFullName
directlyConnected
directlyConnectedOrUnset
2010-06-07 22:09:37 +00:00
david
138745fda6 Remove the unused gethostnum static function. I think this was used in
checking responses for weird_responses, which we don't do anymore.
2010-06-07 21:27:04 +00:00
david
2111c0ab54 Fix up indentation in targets.cc. 2010-06-07 21:25:53 +00:00
david
7c790dbf3b Update pcap-int.h from http://www.winpcap.org/install/bin/WpcapSrc_4_1_1.zip.
We use this file to get at the LPADAPTER member of struct pcap on Windows,
which we need in order to pass to PacketSetReadTimeout in a few places.
(Normally pcap_t is an opaque type so we're not supposed to see inside it.) I
don't see an easy way to get rid of the calls to PacketSetReadTimeout right
now.
2010-06-07 20:34:33 +00:00
david
2501b14e23 Remove nbase/Gnuc.h. This doesn't seem to actually be required for anything. It
was originally part of WinPcap, currently at
http://www.winpcap.org/install/bin/WpcapSrc_4_1_1.zip in
winpcap/wpcap/libpcap/Win32/Include/Gnuc.h.
2010-06-07 19:43:41 +00:00
david
198282a9c3 Remove some Windows-only function prototypes that are obsolete. There are not
defined anywhere.

void nmapwin_init();
void nmapwin_cleanup();
void nmapwin_list_interfaces();
int if2nameindex(int ifi);
2010-06-07 18:42:17 +00:00
robert
3859e3dc64 Latest version number. 2010-06-07 07:05:48 +00:00
tomsellers
7ada457645 Adding match lines for two services:
Cisco Site Selector ftpd
LanSafe UPS monitoring HTTPd
2010-06-05 15:55:14 +00:00
tomsellers
76ac0f5b85 Added 3 PostgreSQL softmatch lines. Two of these lines are
are French and Spanish and are derived from the English version
as well as text from other match lines for the appropriate language.
2010-06-05 15:31:59 +00:00
robert
565d6a524d Improved anonymous ftp detection. Now supports ACCT and has improved parsing of server responses. 2010-06-05 12:37:39 +00:00
kris
3a0aa06db1 Fix a bug in qscan.nse which kept a confidence level of 0.9995 from working;
Marcin Hoffmann reported the problem.
2010-06-05 00:46:48 +00:00
david
8174849509 TODO item: check out pcap-int.h. 2010-06-04 22:51:36 +00:00
jah
722f10670a Some improvements based on a review by David: comments, less convoluted code and
a silly mistake. Also removed some length checks for Mode 7 implementation 2
data which are no longer used.
2010-06-04 10:05:32 +00:00
jah
cb879a313f Update script.db with added ntp-monlist.nse 2010-06-03 12:37:05 +00:00
jah
ab6e84b40d Added ntp-monlist discovers NTP server, peer and client hosts associated with a
scanned target by sending NTPv2 Private Mode 'monitor' and 'peers' commands to
the target.
2010-06-03 12:15:40 +00:00
jah
5bdc8cda93 ntp-monlist discovers NTP server, peer and client hosts associated with a
scanned target by sending NTPv2 Private Mode 'monitor' and 'peers' commands to
the target.
2010-06-03 12:14:15 +00:00
fyodor
a07870678f Note that an item was finished by David 2010-06-03 09:15:18 +00:00