1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 03:49:01 +00:00
Commit Graph

587 Commits

Author SHA1 Message Date
ron
01f5e7cf51 Added a patch from Chris Woodbury that fixes a serious bug in the SMB Authentication library, where multiple concurrent scripts with valid credentials would fail to log in. 2011-04-28 23:00:01 +00:00
david
832fae4c11 Restore working DNS updates in dns.encode.
This was broken in the merge in r22778. Patrick Donnelly noticed this
with nse_check_globals.
2011-04-27 20:33:04 +00:00
djalal
e91c3505be o [NSE] Removed the nmap.get_interface_link function, which was
deprecated by the new nmap.get_interface_info function.
2011-04-22 22:47:28 +00:00
david
fef214063a Add omp2-brute and omp2-enum-targets from Henri Doreau. 2011-04-20 23:44:16 +00:00
david
3447e2a6a2 Use get_script_args to handle smb-related flag options, to use our
common true/false logic and not hardcode "1" and "true" in places. Patch
by Chris Woodbury.
2011-04-20 21:35:10 +00:00
david
95bca0d2c7 Add port 9001, tor-orport, to LIKELY_SSL_PORTS and LIKELY_SSL_SERVICES. 2011-04-19 00:51:10 +00:00
david
7a2b7781f7 Add an http-enum fingerprint for /crossdomain.xml, which is used to
grant permission to Adobe Flash players to make connections.
2011-04-17 18:32:37 +00:00
david
c36cf833e6 Add the nmap.get_interface and nmap.get_interface_info functions by
Djalal Harouni.
2011-04-05 06:11:58 +00:00
patrik
0ee33e4cb7 o Moved afp.username and afp.password arguments to afp-library.
o Add support for getting file-dates, acls and sizes
[Patrik]
2011-04-03 12:53:12 +00:00
david
4d1b301f43 Enable NSEDoc for json.generate; this should be a public function. 2011-04-02 16:28:14 +00:00
david
cd462ade8f Whitespace in dns.lua: Expand tabs, remove trailing space, change from
3-space to 4-space indents.
2011-03-28 22:52:37 +00:00
david
03a42edfe5 Parse more than one type bitmap block in an NSEC record if present. 2011-03-27 05:07:26 +00:00
david
6d90b593b7 Change the "name" member of a decoded NSEC record to be called
"next_dname" instead.
2011-03-27 05:07:16 +00:00
david
4f054a058e Remove intermediate calculations from a decoded NSEC table: WinBlockNo,
bmplength, and bin. Factor out a function to read the type bitmap.
2011-03-27 05:07:03 +00:00
david
477bd66fc9 Merge r22369:22777 from /nmap-exp/david/nmap-nsec. This adds the
dns-nsec-enum script, originally by John Bond and improved by him and
me.

Changes in dns.lua:
  Add dnssec option to dns.query that adds an OPT RR with the DO (DNSSEC
    okay) flag set.
  Add answer fetcher for NSEC records (unused currently).
  Add decoder for NSEC records.
  Add rudimentary handling of the additional section in dns.encode.
  Add a check that a decoder exists before trying to call it.
 
Also added a copy of the simplified BSD license that the new script is
under.
2011-03-27 04:24:43 +00:00
david
6142158b43 Updates to ssl-known-key by Mak Kolybabi,
http://seclists.org/nmap-dev/2011/q1/934. Change the database format.
Change the output.
2011-03-22 19:44:45 +00:00
david
0e970b4bc6 ssl-known-key.nse: Use shortport.ssl. Rename ssl-fingerprints.txt to
ssl-fingerprints; no extension appears to be the prevailing convention
in nselib/data. Allow comments and blank lines in ssl-fingerprints. Add
Little Black Box copyright and attribution to ssl-fingerprints. Boost
some print_debug thresholds.
2011-03-22 19:44:42 +00:00
david
47557a108b o [NSE] Added ssl-known-key.nse, which checks SSL certificates against a
list of certificates with known keys that have been extracted from
  firmware files. [Mak Kolybabi]
2011-03-22 19:44:40 +00:00
patrik
b62cebc7b3 o [NSE] Fixed a problem in oracle-brute that would fail due to connection
exhaustion. Fixed some debugging messages in the brute library [Patrik]
2011-03-19 08:26:33 +00:00
patrik
b844caa6cd Changed the way cookie table fields are created in http.lua. This change
ensures that attribute names are always treated as lower case. [Patrik]
2011-03-15 21:42:49 +00:00
david
72415c63c2 Remove Vim modeline from mssql.lua; was interfering with NSEDoc parsing. 2011-03-13 04:33:31 +00:00
patrik
eaf01310e7 Replaced an empty password with <empty> in a debug message. 2011-03-13 01:22:32 +00:00
david
5d07bded42 Typo fix. 2011-03-12 23:56:43 +00:00
patrik
72b7fcc299 Fixed bug so that empty passwords are printed as <empty> in script results.
Bug reported by Toni Ruottu http://seclists.org/nmap-dev/2011/q1/789
2011-03-12 23:50:57 +00:00
robert
e7e40bb43a Added some extra Microsoft fingerprints for FrontPage and Remote Desktop Web. 2011-03-09 09:34:02 +00:00
patrik
58edddaedb o [NSE] Merged the ms-sql branch with several improvements and changes to the
ms-sql scripts and library:
  - Improved version detection
  - Improved server discovery
  - Add support for named pipes
  - Add support for integrated authentication
  - Add support for connecting to instances by name or port
  - Improved script and library stability
  - Improved script and library documentation
 [Patrik Karlsson, Chris Woodbury]
2011-02-26 22:41:10 +00:00
david
61543b681e Fix to http.validate_options from Sebastian Prengel: The cookies table
was being iterated over incorrectly.

Also from Sebastian: add "expires" to the list of handled keys in
validate_options.
2011-02-24 20:16:06 +00:00
david
ddaf29c3e4 Fix two bugs in the new shortport.ssl portrule, reported by Tom Sellers.
The first is that "sctp" was being treated as a list of port states,
when it should have been put in the same table as "tcp". The second is
the same bug that we've seen before, which is that it was returning a
function value instead of the result of calling the function.
2011-02-22 20:16:34 +00:00
patrik
e50d65755b * Add a new script snmp-ios-config that pulls the config from a Cisco devices
using SNMP and tftp. The script was created by Vikas Singhal.
* Add tftp library, used by the snmp-ios-config script, that acts as a server
  and receives the config file from the device. [Patrik]
2011-02-22 09:13:03 +00:00
david
c3ab2d5ea4 Create a shortport.ssl function like shortport.http. Use it in ssl
scripts.
2011-02-22 00:46:28 +00:00
ron
d33c79c65f Removed some duplicate shares for bruteforcing, alphabetized the list, and added TEMP and SHARE - all thanks to Chris Woodbury's suggestions 2011-02-09 04:22:15 +00:00
patrik
a139a26fd7 Fix for bug that would make Nmap fail to run when compile without SSL support.
The wsdd library incorrectly assumed OpenSSL to always be available and the
ssh-hostkey used the undeclared SCRIPT_NAME in message when evaluating SSL
support. The bug was reported by Michael Pattrick on nmap-dev:
http://seclists.org/nmap-dev/2011/q1/312

[Patrik]
2011-01-30 10:39:17 +00:00
patrik
3b3ba286ff Applied patch to fix bug in discovery code reported by Chris Woodbury
http://seclists.org/nmap-dev/2011/q1/228
[Patrik]
2011-01-23 07:49:45 +00:00
david
596d2bf477 Fix to rmi.doh by Martin Swende. 2011-01-16 05:07:22 +00:00
fyodor
77290c8053 Add a --- line to start off the top NSEDoc section--otherwise it was being ignored by our nsedoc web rendering system 2011-01-15 07:13:40 +00:00
patrik
583f65227c o [NSE] Added support for dynamic updates to the DNS library. Added the
script dns-update.nse, which attempts to add a DNS record to a given zone.
  [Patrik]
2011-01-14 15:15:24 +00:00
fyodor
0074b626cc o Integrated cracked passwords from the Gawker.com compromise
(http://seclists.org/nmap-dev/2010/q4/674) into
  Nmap's top-5000 password database. A team of Nmap developers, lead
  by Brandon Enright has cracked 635,546 out of 748,081 password
  hashes so far (85%). Gawker users' top passwords are are "123456",
  "password", "12345678", "lifehack", "qwerty", "abc123", "12345",
  "monkey", "111111", "consumer", and "letmein".
2011-01-12 08:38:39 +00:00
david
4fa142de14 Use the local read (which obeys the "lines" and "bytes" options) intead
of sd:receive in comm.opencon, which is used by comm.get_banner.
2011-01-10 00:25:14 +00:00
david
64ccea886b Whitespace in comm.lua. 2011-01-10 00:25:12 +00:00
ron
4e5f8799e1 Added a bunch of CMS checks for http-enum.nse submitted to me by Robert Rowley 2011-01-09 18:51:03 +00:00
david
6ef0d9624a Whitespace, documentation, style in tab.lua. 2010-12-30 21:08:27 +00:00
david
a9a5869173 Normalize tab.lua usage so that a call to tab.nextrow comes after (not
before) each group of tab.add, and there is no tab.nextrow before or
after tab.addrow. Also remove manual indenting that was accomplished by
padding the first column with spaces; this is done by
stdnse.format_output now.
2010-12-30 21:08:25 +00:00
david
04210ef88f When an entry in stdnse.format_output has multiple lines, insert the
indent and prefix before each line, not just at the beginning. If the
indent was ">>>>", then formatting the line "AB\nCD" would result in

| >>>>  AB
|_CD

Now it will be

| >>>>  AB
|_>>>>  CD

Some script were working around this by relying on an invisible blank
first line and manually indenting following lines.
2010-12-30 21:08:24 +00:00
david
190ca31c6c Don't pad the last item in each row in tab.lua. This prevents one long
line from making all other lines wrap with blanks.
2010-12-30 21:08:22 +00:00
david
974d6061b3 Change t['rows'] to t.current_row, because it may not be equal to the
number of rows that are actually in the table (may be one greater).
2010-12-30 21:08:21 +00:00
david
1ee0fae3d1 Insert an empty row table when tab.nextrow is called and there is
nothing in the current row yet. This allows using #t or ipairs to get
the number of rows that have been filled by the user. t.rows is the
index number of the next row that will be filled in, or the one that is
currently being filled in if something has already been entered.
t.rows == #t + 1 means that we've finished with the previous row, but we
don't want to count a new (blank) row until we've started filling
something in.
2010-12-30 21:08:19 +00:00
david
396481c1b8 Remove the "cols" attribute of tab.lua tables. Just calculate it
dynamically when dumping.
2010-12-30 21:08:17 +00:00
david
086b043cde Remove the single-string special case in stdnse.format_output.
This should be handled by the generic case, and I don't think it was
used anyway because the logic was wrong:

if(indent == nil and #data == 1 and type(data) == 'string' and not(data['name']) and not(data['warning'])) then
  return data[1]
end

This seems to be checking for a one-element table whose single element
is a string. But the test "#data == 1 and type(data) == 'string'" is
actually testing for a one-byte string. I think this is supposed to be
"type(data[1]) == 'string'", but anyway it should be handled by the
generic case.
2010-12-30 21:08:15 +00:00
david
d9d47eb93d Use sock:receive when neither the "lines" nor "bytes" option is given to
comm.exchange. Previously it was acting as if it got bytes=1, which
could return as few as one bytes. sock:receive will read until timeout
or EOF.
2010-12-29 22:44:03 +00:00
david
e2f8d1f5cb Move the read_reply function out of ftp-anon.nse and into a new library
ftp.lua.
2010-12-29 21:24:52 +00:00