1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00
Commit Graph

422 Commits

Author SHA1 Message Date
dmiller
3c994776f7 Make use of -4 with -6 illegal. 2016-03-14 23:54:51 +00:00
dmiller
747112554b Print getopt warnings after options summary when exiting. Fixes #269, Closes #272 2016-01-26 04:52:29 +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
b9367a6f53 Add -v0 to mean no output to stdout. Closes #265. Fixes #236. 2016-01-06 16:26:07 +00:00
dmiller
4e73ed7efd Allow -4 option signifying IPv4 mode 2015-12-21 04:10:38 +00:00
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
e39d3e4101 Fix deprecation warning on -iL by not coercing it to -i, the actual deprecated option 2015-10-20 17:48:56 +00:00
dmiller
a02a29c28f Warn about deprecated option names with -v 2015-09-09 02:50:51 +00:00
dmiller
66022b9672 Another filename check for bad options like -oG- (creates file G-) 2015-09-09 02:50:50 +00:00
dmiller
bc7d670911 Correct spelling of 'deprecated' vs 'depreciated' 2015-09-09 02:50:49 +00:00
dmiller
0effedaf9e Add filename checks to deprecated output file options 2015-09-09 02:50:47 +00:00
dmiller
ea4096c681 Strip or relocate more includes from nmap.h 2015-07-01 21:25:39 +00:00
dmiller
d02f2e41bd include signal.h, needed on Solaris 2015-07-01 04:35:25 +00:00
dmiller
5e47450bdc Use forward-declaration of class FingerPrintResults in Target.h 2015-06-30 04:04:51 +00:00
dmiller
80f8eb6bce Use forward-declaration of class Target instead of including Target.h in *.h 2015-06-30 04:04:48 +00:00
dmiller
638a123ba6 Move osscan structs from global_structures to osscan2.h 2015-06-23 15:53:05 +00:00
fyodor
c697f458e0 Use our https URL in more places instead of the non-SSL one 2015-06-20 02:56:02 +00:00
dmiller
68409b2226 Update copyright date to 2015 2015-06-03 13:01:29 +00:00
dmiller
4a491e35d8 Check address family before loading OS fingerprints
In addition to silencing an unnecessary fatal error when nmap-os-db is
not found but user has requested -6, this should make start times a bit
more efficient, since only 1 or the other database is loaded. Patch by
Alexandru Geana

Fixes #97
2015-04-07 21:31:06 +00:00
fyodor
df26fa850c Remove --log-errors from Nmap quickref (help screen) because it has been the default behavior for a while and so does nothing 2015-04-04 01:43:08 +00:00
dmiller
a5b3aa1314 Remove references to deprecated -P* options in error message
The message stating that an unknown -P* option was used contained
references to old, deprecated forms:

-PT (now -PA)
-PB (now -PE -PA)
-PI (now -PE)

Additionally, -PR was missing.
2015-02-22 21:51:00 +00:00
dmiller
0952bed032 Merge final changes to support VS2013 build
Changes:

* Fix a collision of the name PS_NONE with a different constant in shlobj.h
* Update solution and project files for VS2013
* Update the NSIS installer to reference the VC 2013 redistributable
2015-01-17 04:35:01 +00:00
david
934de74bb0 Check string bounds looking for terminating ']'.
It was possible to trigger an out-of-bounds read by giving a port
specification with '[' but not ']'.
2014-12-20 19:12:09 +00:00
dmiller
814bf97a8f Correctly null-terminate some strings in idle_scan
Reported by Gisle Vanem: http://seclists.org/nmap-dev/2014/q4/82
2014-10-22 12:56:32 +00:00
dmiller
345bfce521 Parameterize xml_start_document and remove external DTD URI
http://seclists.org/nmap-dev/2014/q3/182
2014-08-21 20:13:59 +00:00
dmiller
5adfb3b1de Update copyright notice to 2014 2014-08-16 01:52:33 +00:00
jay
05772dd1e5 Change default output mode to show TTL info with --reason directly (no need of --reason -v). Also, remove TTL column and move TTL info to REASON column. See http://seclists.org/nmap-dev/2014/q3/289 for discussion on this 2014-08-15 14:07:25 +00:00
jay
8d5ec9e310 Reapply r33420, r33421. Fix a missing right parenthesis. https://xkcd.com/859/ 2014-08-15 12:09:22 +00:00
fyodor
f6f59a7cd7 Auto regeneration with latest template files, etc. 2014-08-13 22:57:43 +00:00
dmiller
a7a7229105 Revert r32979, superseded by script-intensity 2014-08-08 14:43:11 +00:00
jay
078f3fe108 Fix a typo in nmap.cc 2014-08-02 19:35:31 +00:00
jay
d4cf544df6 Fix a missing bracket at the end of the IMPORTANT NMAP LICENSE TERMS part in each file 2014-08-02 19:29:50 +00:00
d33tah
fd3b2c79d3 Don't write to XML output directly in nmap.cc. Spotted and fixed by
Michal Hrusecki (http://seclists.org/nmap-dev/2014/q3/180).
2014-07-31 14:28:20 +00:00
dmiller
e525388f36 Make -Pn override all other -P* types
This was a case where order of arguments affected the outcome: if -PE
came before -Pn, then -Pn took precedence. Otherwise, -PE took
precedence (except that o.pingtype would also contain PINGTYPE_NONE...
not sure how that affected things). This cleans things up by letting
PINGTYPE_NONE be OR'd into o.opingtype, then checking for it after all
options have been processed and clearing out the other types if it is
found.
2014-07-23 22:01:35 +00:00
jay
d70f5b364a Show TTL in default output if "--reason -v" is asked for. 2014-07-22 01:55:04 +00:00
jay
f85416b75a If verbosity is greater than 1 (i.e. -vv or higher is used), automatically do reason display (i.e. --reason). 2014-07-22 01:51:46 +00:00
jay
3b59b0ae16 Added --exclude-ports option to Nmap 2014-07-04 05:47:11 +00:00
d33tah
a80c90608c sed -i 's/if ( /if (/g' *.cc *.h; sed -i 's/for ( /for (/g' *.cc *.h; sed -i 's/( /(/g' nmap_amigaos.h tcpip.h service_scan.cc
There's still quite a lot of code like this, nse_openssl.cc being most
messy IMHO. Also, I left out "if( something )" syntax.
2014-06-25 15:40:54 +00:00
jay
380de5f576 Catch badly named output files
For example, "-oX -sV logfile.xml" would have meant write to a file named '-sV' previously
Now, it generates the error message "Output filename begins with '-'. Try '-oX ./-sV' if you really want it to be named as such. QUITTING."
2014-06-24 16:05:09 +00:00
d33tah
421176fc00 Get rid of double newline at the EOF I accidentally introduced in the
last commit.
2014-06-18 11:30:02 +00:00
d33tah
e3d1c178e3 Add newlines at the EOF in conformance to Daniel's coding standards
proposal. This only affects Nmap's root directory. We might also need to
modify the code which autogenerates Nmap's source code files such as IPv6
fingerprinting code.
2014-06-18 10:18:58 +00:00
jay
beb7aee9d0 Added new options --data <hex string> and --data-string <string> to send custom payloads in scan packet data. 2014-06-15 14:49:25 +00:00
dmiller
8c82e5e3fe New option --noscript turns off script scanning
I often need something like this when creating and testing new service
probes. It's handier than modifying script.db every time to remove
the "version" category.
2014-06-08 02:49:50 +00:00
dmiller
ddcfa8cc90 Spellcheck: common misspellings in the entire source tree 2014-02-21 21:10:51 +00:00
dmiller
3f5e909e8f Spellcheck on docs 2014-02-21 21:10:42 +00:00
dmiller
3f0d0c16f9 Spellcheck on Nmap, Nsock, Nbase source files 2014-02-20 18:44:12 +00:00
dmiller
d67464dda2 -sn -v --open will now hide down hosts
http://seclists.org/nmap-dev/2014/q1/158
2014-02-12 18:47:40 +00:00
d33tah
4816358475 Replace all tab characters at the beginnings of lines with 8 spaces.
Mixed indentation annoyed my vim.
2014-01-05 19:14:26 +00:00
dmiller
26665465c6 Refactor ftp bounce scan into nmap_ftp.{h,cc}
By factoring this code out, we make it easier to convert to NSE.
http://seclists.org/nmap-dev/2013/q4/255
2013-12-11 02:23:58 +00:00
dmiller
866db7eea3 Revert r32528, was not tested on Windows 2013-11-27 13:32:05 +00:00