1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 15:09:02 +00:00
Commit Graph

4571 Commits

Author SHA1 Message Date
david
a1566e895f Add to CHANGELOG:
o Reduced memory usage in several areas. The size of the internal
  representation of nmap-os-db was reduced more than 90%. The size of
  individual Port structures without service scan results was reduced
  about 70%. When a port receives no response, Nmap now avoids
  allocating a Port structure at all, so scans against filtered hosts
  can be light on memory. Thanks to Pavel Kankovsky for the Post size
  reduction patch. [David]
2009-12-20 03:35:45 +00:00
david
d703875821 Use a list instead of a vector for ScriptResults; it's 8 bytes instead
of 12.
2009-12-20 03:29:35 +00:00
david
7db7da0007 Merge again from /nmap-exp/david/nmap-mem; this fixes a couple of bugs. 2009-12-20 03:22:19 +00:00
david
1c6030709b Revert r16307:16309, the merge from nmap-mem. I just found a
segmentation fault which I am investigating.
2009-12-19 22:49:16 +00:00
david
10f39ddd92 Use a u8 instead of int for Port::state. This allows better struct
packing and reduces the size of objects by 4 bytes.
2009-12-19 22:33:23 +00:00
david
b838242e01 Merge from /nmap-exp/david/nmap-mem. This brings in two memory-reducing
changes. The first is that Port objects don't allocate memory for
service and RPC results unless that information is set. This reduces the
size of a bare Port from 92 to 40 bytes on my machine. The second change
is that PortList now has the notion of a "default port state," which is
the state of any ports that didn't receive a response. These ports don't
need an allocated Port object, which saves a lot of memory in scans
where most ports didn't get a response.
2009-12-19 21:26:14 +00:00
tomsellers
9f0e11f035 Set port product and state when a DB2 database service is positively matched.
Previously just set port.version.name and confidence.
2009-12-19 16:30:57 +00:00
tomsellers
2615dbbca1 Enhance error reporting to include script name and port protocol.
Correct internal revision date (its not 2010 yet!)
2009-12-19 13:43:32 +00:00
david
9801a5f2f2 Change a couple of match lines with i/Chinese/ to i/Korean/. I tried
decoding the bytes with various Chinese encodings but they were all
gibberish in Google translate. It turns out they are EUC-KR–encoded
Korean, translating to "The server version 6.5.7226.0 (a) has been
prepared."
2009-12-19 10:01:01 +00:00
david
1cfa4d940a Handle imap version submissions. 2009-12-19 09:31:55 +00:00
david
b3597eb3a3 Add an n parameter to ServiceProbe::testMatch to enable getting all of
the available matches.
2009-12-19 08:30:18 +00:00
david
0530fa2f2d Add a lineno member to MatchDetails. 2009-12-19 06:08:47 +00:00
david
5020f2bb94 Remove 11 nmap-service-probes match lines that are identical within a
probe.
2009-12-18 23:48:27 +00:00
david
06afa7b303 Add a constructor for FingerPrint. 2009-12-18 07:59:31 +00:00
david
a12c181883 Add new service matches for a couple of submissions handled today. 2009-12-18 07:11:56 +00:00
david
e945eb0c8d Change the static functions getattrbyname and gettestbyname into public
methods of AVal and FingerTest, respectively.
2009-12-18 00:04:35 +00:00
fyodor
c97ea86473 Rename port 2000 from callbook to cisco-sccp, include 4190 as sieve (ManageSieve). Patch from Matt Selsky) 2009-12-17 06:32:42 +00:00
david
ae1d8e23ea Move citrix-enum-apps.nse out of the intrusive category and into safe. 2009-12-14 16:28:29 +00:00
ron
50f8718389 Added some extra information to an error message -- I realized the current error wasn't descriptive enough 2009-12-14 16:27:05 +00:00
david
f2ae05968b Add the scripts
citrix-brute-xml
  citrix-enum-apps
  citrix-enum-apps-xml
  citrix-enum-servers
  citrix-enum-servers-xml
and the citrixxml modules, all by Patrik Karlsson.
2009-12-14 07:30:38 +00:00
david
304762b07d Remove a function I accidentally duplicated in snmp.lua (encodeLength).
Reverse some byte strings after constructing them instead of building
the arrays from the front.
2009-12-14 01:03:53 +00:00
david
3f7be738ad Allow encoding OID component greater than 127 in snmp.lua. Previously
the code just took each value mod 256 and stored it as a single byte.
The OID 1.3.1000.5 would encode as follows

tag len 1.3 1000%256  5
 06  03  2b       e8 05

What you're supposed to do is break each value into 7-bit chunks, and
set the high bit in every octet but the last. Now it is correctly
encoded as

tag len 1.3 1000  5
 06  04  2b 8768 05

The length also would not have been correct for lengths over 127, and
that is fixed also.
2009-12-14 00:55:05 +00:00
david
ee0fee26c0 Skip over a single 100 Continue response, if present, before parsing the
real response in http.lua. This patch is by Patrik Karlsson.
2009-12-13 22:52:08 +00:00
david
696d5cb66d Consolidate recent new scripts in the CHANGELOG. 2009-12-13 22:47:29 +00:00
david
f4262ff0cf Add 5061 to the sslports for the TCP SIPOptions probe in
nmap-service-probes.
2009-12-13 04:07:27 +00:00
david
315e6ef9b0 Remove a debugging statement from http.lua. 2009-12-13 01:51:05 +00:00
david
5eca175a11 Don't encode a POST body and set the content-type
application/x-www-form-urlencoded if the body is a string. Only do it
when the body is a table, meaning we want to do a form submission.
2009-12-13 01:50:26 +00:00
david
f9fc544e32 Add retrieval of the current time to ntp-info.nse. This is adapted from
code submitted by Richard Sammet.
2009-12-12 23:27:23 +00:00
david
24e0dceb8e Show all variables in ntp-info with verbosity. 2009-12-12 22:53:33 +00:00
david
6a57dd876a Add the ntp-info script from Richard Sammet. This version is modified
from the one he submitted in the thread at
http://seclists.org/nmap-dev/2009/q4/550. It doesn't yet include the
time retrieval he posted in a later message.
2009-12-12 22:42:39 +00:00
david
8ee634688b Give --quiet to setup.py when installing Zenmap files to make the output
less noisy.
2009-12-12 20:26:15 +00:00
fyodor
4a953dc454 2009-12-10 04:33:30 +00:00
ron
96a390203c Updated http-iis-webdav-vuln.nse to run against SSL-enabled servers 2009-12-08 17:29:43 +00:00
tomsellers
c5c2b3220e ms-sql-info.nse commented version bump. 2009-12-07 00:44:45 +00:00
tomsellers
29014d1118 Updated ms-sql-info.nse to support Microsoft SQL Server 2008
detection.
2009-12-07 00:43:27 +00:00
tomsellers
26c5722d81 Added matchlines for Microsoft SQL Server 2008 RTM and SP1, tweaked
matchline for CTP.
2009-12-06 21:48:27 +00:00
tomsellers
08d80d81e6 Added update to Microsoft SQL Server 2005 matchlines
to support detection of recent Microsoft security 
update (MS09-062)  [Tom]
2009-12-01 11:53:53 +00:00
tomsellers
85012c858b Add version probe/matchline for IBM DB2 DAS service
listening on 523/UDP provided by Patrik Karlsson.
2009-12-01 11:49:54 +00:00
fyodor
68b01680c4 identify port 9418 as git revision control system as suggested by Matt Selsky 2009-11-30 23:03:20 +00:00
fyodor
c993172b87 Cyrus POP3 v2.3.12 through v2.3.13 have an extra space before the hostname. - signature update by Matt Selsky 2009-11-30 22:53:40 +00:00
fyodor
f0d8b0b702 Improve a couple Polycom SoundStation sip match lines - patch by Matt Selsky 2009-11-30 06:10:37 +00:00
fyodor
c272e68cf3 Use a looser match pattern for retrieving the owner out of the identd response. This patch was from Richard Sammet - http://seclists.org/nmap-dev/2009/q4/549 2009-11-30 05:58:01 +00:00
david
0f8c77ba4c Restore all threads that are waiting on a socket lock when a thread
relinquishes its lock. We expect only one of them to be able to grab the
newly freed lock, and the rest to go back to waiting. This seems to have
helped with a deadlock in running a large-scale favicon survey.
2009-11-28 16:58:02 +00:00
david
24ba29a3b3 Fix what looks like a typing error in portlist.cc. There's no point to
assigning to our argument.
2009-11-26 22:28:55 +00:00
david
d2519e4e12 Fix a comment that was probably mistyped. 2009-11-26 19:50:26 +00:00
david
971a11f3fe Add the nfs-showmount script by Patrik Karlsson. 2009-11-26 16:52:30 +00:00
david
a4c2e4fc9b Add a UDP SIPOptions service probe. 2009-11-26 01:52:13 +00:00
david
69ae959d53 Small formatting changes in Makefile.in. 2009-11-25 23:31:52 +00:00
david
dc569f0417 Add Citrix MetaFrame UDP payload from Thomas Buchanan. 2009-11-25 20:49:08 +00:00
david
7f21296ec2 Adjust the Citrix MetaFrame (icabrowser) match line. The final two bytes
were part of an IP address (\xc0\xa8 = 192.168) and could vary in
different environments.
2009-11-25 20:40:48 +00:00