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

11010 Commits

Author SHA1 Message Date
dmiller
e124565c58 Use time_t instead of long and double for storing uptime
Fixes #275.

This results in fewer casts and less subtraction than the previous
method, and should still be portable. Only division and subtraction and
difftime are performed on the value, so it will not overflow. And the
TCP timestamp itself is a 32-bit value, so it can't refer to a time
farther in the past than the 32-bit epoch. One explicit cast (to long
long) is used in order to ensure the format string can handle any
conceivable value according to the compiler and avoid a warning message.
2016-01-13 20:53:39 +00:00
dmiller
f9a7123aed sys/uio.h needed for struct iovec on OpenBSD 2016-01-13 20:53:38 +00:00
dmiller
a2c3b2f03a Include -lcrypto when checking for -lssl. Fails on OpenBSD 5.5 w/1.0.1c 2016-01-13 20:53:37 +00:00
dmiller
e5767c245f Replace time(2) calls in bounce scan with ScanProgressMeter. Related to #275 2016-01-13 13:44:49 +00:00
dmiller
a205e0c4d4 Fix for OpenBSD packet loss. Fixes #274 2016-01-12 19:38:06 +00:00
dmiller
4f91604e75 Fix some incorrect formatting in @output sections 2016-01-08 19:34:05 +00:00
dmiller
cdb5e5b9d8 New script: ms-sql-ntlm-info 2016-01-08 19:34:04 +00:00
dmiller
1accb103d1 New script: nntp-ntlm-info 2016-01-08 16:17:12 +00:00
dmiller
5a1e018803 New script: pop3-ntlm-info 2016-01-08 16:06:37 +00:00
dmiller
82be9b48ee New script: telnet-ntlm-info 2016-01-08 15:54:53 +00:00
dmiller
1f74fc2550 New script: smtp-ntlm-info 2016-01-08 15:29:54 +00:00
dmiller
70798c2468 New script: imap-ntlm-info 2016-01-08 03:08:26 +00:00
dmiller
2702b4d030 Let http-ntlm-info use smbauth functions for generating and parsing NTLM blobs 2016-01-08 02:57:24 +00:00
dmiller
43dedd7b0e Extract optional OS version info from NTLM challenge message 2016-01-07 20:43:19 +00:00
dmiller
68599ce140 Solve "unexpected signature" message in SMB extended session setup (NTLM type 2 message only sent once) 2016-01-07 20:33:10 +00:00
dmiller
c8d64e9009 Print a helpful message when --resume is used with other options. Closes #84 2016-01-07 05:45:48 +00:00
dmiller
e43e6fc278 Fix a crash on dns.query failure in dns-client-subnet-scan. Fixes #93 2016-01-07 05:45:48 +00:00
dmiller
bc3ece44c9 Check for Lua 5.2 instead of Lua >=5.2. Closes #259 2016-01-07 05:45:47 +00:00
dmiller
b2d67c470f http-vuln-cve2013-6786 RomPager XSS script 2016-01-06 20:47:07 +00:00
dmiller
bb507ac7bf Add RomPager CVE-2014-4019 check to http-fingerprints 2016-01-06 20:47:06 +00:00
dmiller
b9367a6f53 Add -v0 to mean no output to stdout. Closes #265. Fixes #236. 2016-01-06 16:26:07 +00:00
dmiller
7c3f57675e Hard-require Python 2 in zenmap/setup.py. Closes #255 2016-01-05 14:12:42 +00:00
david
ea400e1ff0 Typo fix: "nall"→"null". 2016-01-04 22:10:57 +00:00
dmiller
c6004a7798 Changelog for the previous 2 commits 2016-01-04 21:44:48 +00:00
dmiller
7300cde374 Avoid segfault with vasprintf("%s", NULL). http://seclists.org/nmap-dev/2016/q1/4 2016-01-04 21:44:47 +00:00
dmiller
ee048d5349 Avoid printf on NULL pointer if no string is registered for the error code. 2016-01-04 16:48:09 +00:00
dmiller
226a05af31 Replace some deprecated print_verbose with verbose1 calls 2016-01-04 16:48:08 +00:00
dmiller
f405d71296 Avoid a script crash when pppoe.Comm.recv returns failure without error message 2016-01-04 16:48:08 +00:00
dmiller
1a205842fd Reformat ordered lists in NSEdoc 2016-01-02 05:08:05 +00:00
dmiller
1863fd84d3 Update NSEdoc for http-form-brute 2016-01-02 04:52:15 +00:00
dmiller
4e23e6dfde Major upgrade to http-form-brute
Now can correctly handle complex token-based CSRF protections by grabbing all
fields from the login form and using session cookies from the form request.
These cookies are sent with subsequent redirect-following requests for better
failure detection. On success, cookies are cleared and re-acquired.

A database of known web apps' login forms is used for form detection, helpful
for those whose username and password fields do not begin with "user" and
"pass". Form mangling (to remove cookie checks in one instance) and custom
onsuccess functions are also supported. Tested: django, wordpress, mediawiki.

This *may* be a replacement (upon suitable testing) for http-wordpress-brute and
http-joomla-brute.
2015-12-31 16:21:03 +00:00
dmiller
74bd78267a http cookie and form parsing updates
1. getattr now decodes html entities in attributes (useful for & in href
   attributes, for instance)
2. Cookie validation allows max-age, httponly, and secure attributes
3. Use table concatenation instead of repeated string concatenation to build
   cookie string.
2015-12-31 15:50:25 +00:00
dmiller
e1cf78d57e Fix some issues with http-wordpress-brute
1. When the hostname script-arg was used, the script would try to
*connect* to that host instead of the target. Now the argument is used
*only* for the Host: header.

2. The http options table is reused for each request, significantly
reducing the load on the garbage collector over many requests.

3. Do not use both creds.Credentials:new() and creds.Account:new(),
since this results in double-reporting found credentials.
2015-12-29 17:14:37 +00:00
dmiller
8a28707b32 Fix loading devframework fingerprints from script-arg 2015-12-28 17:07:37 +00:00
dmiller
4e73ed7efd Allow -4 option signifying IPv4 mode 2015-12-21 04:10:38 +00:00
dmiller
dd0050598b Print service info for unlisted ports when service tunnel is detected 2015-12-20 05:34:56 +00:00
dmiller
2450dee71e Extend libnetutil's isipprivate function to check for 169.254/16 2015-12-19 20:44:55 +00:00
dmiller
9ddff31f86 New probe for GIOP service: http://seclists.org/nmap-dev/2015/q4/250 2015-12-19 20:35:22 +00:00
dmiller
82b765f6fe Fix bad output when rmi.Registry.list fails. Closes #262 2015-12-19 18:01:11 +00:00
dmiller
5243f4f049 Alter output formatting of multicast.lua 2015-12-19 17:47:15 +00:00
dmiller
0b0955994d Add Alex Geana's multicast IPv6 listener script 2015-12-19 15:50:08 +00:00
dmiller
e5871dcc83 Clarify some @usage, fix double --script-args in telnet-brute 2015-12-19 15:25:44 +00:00
dmiller
a11db08325 Every ipOps function validates IP addresses, so no need to do it explicitly 2015-12-19 15:25:43 +00:00
dmiller
566120ca58 Fix some output formatting and a crash 2015-12-18 21:48:44 +00:00
dmiller
0f99596555 Fix a few bugs in targets-ipv6-multicast-mld. http://seclists.org/nmap-dev/2015/q2/250 2015-12-16 17:07:40 +00:00
dmiller
c199828a49 Remove intrusive category from hostmap-bfk 2015-12-15 16:40:01 +00:00
dmiller
73ad899d30 Update hostmap-robtex to current page layout 2015-12-15 16:40:00 +00:00
dmiller
bb07040e21 Add http-vuln-cve2014-3704 'Drupalgeddon'. Closes #226 2015-12-14 21:29:30 +00:00
tomsellers
46fe8628e1 Removed executable bit from multiple NSE scripts and library files. 2015-12-14 16:23:33 +00:00
dmiller
a8f0daaf38 Fix a crash in snmp-interfaces: http://seclists.org/nmap-dev/2015/q4/218 2015-12-13 21:39:48 +00:00