1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 14:39:03 +00:00
Commit Graph

69 Commits

Author SHA1 Message Date
kris
957b5daea7 Adding my unpwdb nselib; includes username and password lists, and docs 2008-07-08 04:16:49 +00:00
fyodor
22fac0e3e5 apply patch by Jah to handle some bogus responses from some devices. See http://seclists.org/nmap-dev/2008/q2/0731.html and http://seclists.org/nmap-dev/2008/q2/0732.html 2008-06-29 04:26:20 +00:00
batrick
b589575472 Applied Jah's patch for http.lua discussed in:
http://seclists.org/nmap-dev/2008/q2/0833.html
2008-06-23 03:42:57 +00:00
batrick
404c0848bf Fixed a incorrect arguments being passed to string.format 2008-06-21 21:08:38 +00:00
batrick
1d82523af0 Removed unnecessary print local from stdnse.lua 2008-06-21 21:02:42 +00:00
batrick
77437b3998 Updated incorrectly applied patch for http.lua's use of stdnse.make_buffer()
See: http://seclists.org/nmap-dev/2008/q2/0823.html
2008-06-21 20:49:30 +00:00
batrick
0c57267b76 http library now uses make_buffer correctly. 2008-06-21 19:18:56 +00:00
batrick
0bc91f9db2 Improved and changed the make_buffer function.
It now returns the line as its first argument always, otherwise nil, errmsg

I updated scripts that use make_buffer.

When Lua 5.2 comes out, we may be able to use a function I've added
called stdnse.lines (commented for now). It cannot be used yet because
we cannot yield inside generic for loop. The function is built for
generic for loops. It will work as such:
for line in stdnse.lines(socket) do
  ...
end
2008-06-20 13:50:50 +00:00
batrick
dffb1d9423 Updated stdnse library (optimizations). 2008-06-20 12:05:18 +00:00
fyodor
92e39aa66f o Update the HTTP library to use the new timing_level functionality to
set connection and response timeouts. An error preventing the new
  timing_level feature from working was also fixed.  [Jah]
2008-06-18 00:15:27 +00:00
kris
2f9321360f o Added a new NSE Comm library for common network discovery tasks such
as banner-grabbing (get_banner()) and making a quick exchange of data
  (exchange()).  16 scripts were updated to use this library. [Kris]

I have *not* been able to test all of these scripts; however, I have
reviewed them and they should all work properly.  I would really like
some more testing, though :)

This commit includes scripting.xml documentation.
2008-06-12 14:32:25 +00:00
batrick
46ce09a994 Minor optimizations to stdnse.lua
Fixed stdnse.lua to use a default name for module()
2008-06-09 02:23:22 +00:00
batrick
46e5f50b24 Minor bug fix to new strbuf. 2008-06-08 07:29:31 +00:00
batrick
06da4ac2ed Updated strbuf.lua 2008-06-08 07:22:14 +00:00
fyodor
76f7cced70 change http User-Agent header value to: Mozilla/5.0 (compatible; Nmap Scripting Engine; http://nmap.org/book/nse.html) 2008-05-31 03:24:25 +00:00
batrick
742ff67100 Removed nse_auxiliar. Updated Script Argument parsing. Fixed typos in
documentation. Improved MySQLinfo.nse. Nsock/dnet metatabels are now
protected.
2008-05-31 02:19:24 +00:00
batrick
21a2e7aea6 Updated to Lua 5.1.3 (Bug fix release)
Updated stdnse to include tobinary, toocal, and tohex functions.
Minor optimizations to listop.lua
2008-05-31 01:43:43 +00:00
david
8663003c36 The NSE HTTP library now uses the host name specified on the command
line when making requests, which improves script scanning against web
servers with virtual hosts. Thanks to Sven Klemm for the patch.
2008-05-20 06:13:26 +00:00
kris
841071b121 Simple change: make state_table local in the NSElib shortport.service() 2008-04-10 15:24:49 +00:00
kris
8530569047 Adding my Datafiles NSElib for parsing the nmap-* data files for scripts and also update rpcinfo.nse to use this library. Includes CHANGELOG and docs/scripting.xml updates 2008-03-30 20:33:33 +00:00
fyodor
61b976a45c o Nmap now saves the target name (if any) specified on the command
line, since this can differ from the reverse DNS results.  It can be
  particularly important when doing HTTP tests against virtual hosts.
  The data can be accessed from target->HostName() from Nmap proper
  and host.targetname from NSE scripts.  The NSE HTTP library now uses
  this for the Host header.  Thanks to Sven Klemm for adding this
  useful feature.
2008-02-04 22:10:29 +00:00
diman
cf4c7081e8 moving debugger to nmap-exp/diman until further notice 2008-02-03 21:38:38 +00:00
diman
2d9bc1b43d added a CLI debugger 2008-02-03 14:21:36 +00:00
fyodor
0e65f2e091 oops -- forgot to add this when I committed the other http library changes. Thanks to Kris for noticing the omission 2008-02-01 03:23:50 +00:00
ejlbell
88d75a16e5 NSElib that provides NSE scripts with a way to output structured tables similar to NmapOutputTable.cc. 2008-01-15 19:54:23 +00:00
fyodor
165e79a95d Fix a problem which prevented proper port number matching in port_or_service() because the port variable passed to portnumber is shadowed by the variable passed during portrule check. Report and patch are from Sven Klemm 2008-01-05 07:21:55 +00:00
diman
8c89c0f4d9 default port state for shortports is now open or open|filtered instead of only open 2007-12-08 19:25:09 +00:00
diman
005a84fc59 open / open|filtered tables work for shortport.service now 2007-12-08 15:28:55 +00:00
fyodor
add61ca6a4 move back version w/history 2007-11-27 23:13:53 +00:00
fyodor
454e4e3b17 I hope this will recover nselib history 2007-11-27 22:50:00 +00:00
fyodor
bbb0744761 now move nselib to recover history 2007-11-27 22:42:39 +00:00
diman
c0f07c99ac adding nselib nselib-bin second (should work on unix now) 2007-11-27 22:18:59 +00:00
diman
335ec2868f adding nselib and nselib-bin the first 2007-11-27 22:17:30 +00:00
majek04
4ed4ffa219 Added promiscuous.nse for detecting local NIC in promisc mode. First script using pcap for nse. 2007-11-27 18:59:53 +00:00
david
dfb9c157c7 Delete auxiliary scripts config.guess, config.sub, depcomp, install-sh,
ltmain.sh, and missing from subdirectories. Autoconf automatically looks
in the parent directory for these files. I had to copy the files
depcomp, ltmain.sh, and missing into the root of the source tree.
2007-11-27 06:22:46 +00:00
david
d345085863 Regenerate configure scripts with Autoconf 2.61 and update config.guess
and config.sub with the latest versions from
http://cvs.savannah.gnu.org/viewvc/config/?root=config.
2007-11-18 21:36:31 +00:00
ejlbell
34763e08f4 Added support for multiple states in portnumber() rules 2007-11-14 20:04:45 +00:00
david
aeb9cae04b Redo some changes to the NSE pcre module that were originally done
before pcre was made a C module. Remove the nse_pcrelib.vcproj file,
change snprintf to Snprintf, and add a typecast to avoid a warning on
Windows.  This and r6026 should be considered a unit.
2007-10-23 01:10:46 +00:00
david
83382600f2 Revert r5485. This changes the pcre Lua module back to statically linked
code instead of a dynamically loaded C module. Linking the dynamic
shared module with the static libpcre.a was failing on OpenBSD. See
http://seclists.org/nmap-dev/2007/q4/0085.html.
2007-10-23 00:45:00 +00:00
kris
9baeec2897 Changing a comment in nselib/ipOps.lua as it seems to be remnants of a patch for ripeQuery.nse (references doing a RIPE lookup) 2007-10-09 13:29:47 +00:00
stoiko
b1292777f2 fixed a bug related to users providing a custom location for libpcre
(reported by Daniel Johnson)
2007-08-30 18:53:38 +00:00
stoiko
396ee9bc32 removed some warnings for windows-platforms 2007-08-14 20:11:06 +00:00
stoiko
fc6f1d49ad fixed some warning issues in nselib/bit.c (put casts
to lua_Number where necessary)

made netutils.h include nbase_winunix.h (otherwise 
nsock wouldn't compile, because it tried to include 
reason.h from the MS-platform-SDK but got nmap's 
reason.h instead)
2007-08-14 19:21:47 +00:00
stoiko
2240dcaae5 removed nbase-includeflags, ld-flags from Makefile.in (not needed anymore)
removed the configure-check for nbase
2007-08-14 19:09:13 +00:00
kris
0118f48500 Adding (using) a static Snprintf() to nselib/pcre.c, due to lame problems with nbase + pcrelib on some systems 2007-08-14 16:32:10 +00:00
kris
5396114d73 Reverting r5537, as there are nbase problems with the pcrelib stuff 2007-08-14 16:20:50 +00:00
kris
24cb259f01 Reverting nselib pcre.[ch] changes from r5538; other changes to follow 2007-08-14 16:17:37 +00:00
kris
0b50c16b38 Adding Snprintf() and Vsnprintf() to nbase/nbase_str.c. This is because of Windows' stupid implementation where it doesn't write a NULL byte at the end of the buffer if the result is truncated. I would've just #defined snprintf and vsnprintf to some wrapper function for Windows, but this doesn't work as libdnet and libpcap (and libpcap includes under mswin32) define snprintf to _snprintf and vsnprintf to _vsnprintf like we do, and through the many defines they end up being available in the Nmap sources. Vsnprintf() uses vsnprintf() (and writes a NULL byte at the end if truncated), and Snprintf uses Vsnprintf(). 2007-08-14 06:46:54 +00:00
kris
9f41f69d1b Link the nselib pcrelib with nbase in Windows 2007-08-14 06:27:02 +00:00
stoiko
ef2c7d1384 added a visual studio project file for the nselib pcre
C-module
updated the nmap.sln accordingly
2007-08-13 08:32:48 +00:00