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
fyodor
b8d10b7154 Reduce the first level of NSE indention to 2 spaces rather than
three. This corresponds to the 2 spaces now used in Ron's
stdnse.format_output function for further levels of indentation.  The
first level is still special in that it contains "| " or "|_" rather
than just spaces. Here is example output from before this change:

2049/tcp open  rpcbind
8080/tcp open  http        Apache httpd 2.2.13 ((Fedora))
|_ http-favicon: Unknown favicon MD5: 5A49412557709B4EDF6BBA9A1710B418
|_ html-title: Insecure.Org - Nmap Free Security Scanner, Tools & Hacking res...
|_ http-open-proxy: Proxy might be redirecting requests
8081/tcp open  http        Apache httpd 2.2.13 ((Fedora))
|  html-title: 302 Found
|_ Did not follow redirect to http://seclists.org/
8082/tcp open  http        Apache httpd 2.2.13 ((Fedora))
|_ html-title: Nmap - Free Security Scanner For Network Exploration & Securit...
|_ http-favicon: Apache Web Server (seen on SuSE, Linux Tux favicon)
Device type: general purpose
[...]
ost script results:
|  smb-os-discovery:  
|    OS: Unix (Samba 3.4.2-0.42.fc11)
|    Name: Unknown\Unknown
|_   System time: 2009-11-24 17:18:49 UTC-8
|_ smbv2-enabled: Server doesn't support SMBv2 protocol

And after the change:

2049/tcp open  rpcbind
8080/tcp open  http        Apache httpd 2.2.13 ((Fedora))
|_html-title: Insecure.Org - Nmap Free Security Scanner, Tools & Hacking res...
|_http-favicon: Unknown favicon MD5: 5A49412557709B4EDF6BBA9A1710B418
8081/tcp open  http        Apache httpd 2.2.13 ((Fedora))
| html-title: 302 Found
|_Did not follow redirect to http://seclists.org/
8082/tcp open  http        Apache httpd 2.2.13 ((Fedora))
|_http-favicon: Apache Web Server (seen on SuSE, Linux Tux favicon)
|_html-title: Nmap - Free Security Scanner For Network Exploration & Securit...
Device type: general purpose
...
Host script results:
| smb-os-discovery:  
|   OS: Unix (Samba 3.4.2-0.42.fc11)
|   Name: Unknown\Unknown
|_  System time: 2009-11-24 17:19:21 UTC-8
|_smbv2-enabled: Server doesn't support SMBv2 protocol
2009-11-25 01:23:34 +00:00
batrick
5e9c3dea5a Remove dead threads from the all table as they are no longer valid. 2009-11-25 00:59:46 +00:00
fyodor
c7e710515e some changes from chat w/David 2009-11-24 22:36:24 +00:00
david
d1d910f13e Add a Citrix MetaFrame (icabrowser) service probe from Thomas Buchanan. 2009-11-24 17:28:21 +00:00
fyodor
78cdf4f156 We no longer recommend including email addresses in author fields 2009-11-24 08:53:07 +00:00
fyodor
77ab5c4305 Remove email addresses from scripts as discussed in this thread: http://seclists.org/nmap-dev/2009/q4/466 2009-11-24 08:49:02 +00:00
fyodor
543c5408b6 add a missing newline to a warning message 2009-11-23 23:30:36 +00:00
david
a06b900f00 Merge from /nmap-exp/david/nmap-mem. This reduces the memory usage of OS
scan by about 95%. (66832396 bytes to 2815061 bytes according to
Massif.)
2009-11-23 21:22:07 +00:00
david
ddc1b9b2d1 Fix a little memory leak in the handling of OPS and WIN responses.
FingerTest structures are supposed to have an array of AVals that are
allocated as a block and linked internally. But for OPS and WIN, each
AVal was allocated individually and linked together. When the FingerTest
was later freed, it freed only the first link in the chain.
2009-11-23 16:51:42 +00:00
fyodor
ad58305d1d 5.10BETA1 release has been made 2009-11-23 09:37:45 +00:00
fyodor
a0da2ad148 Remove some junk lines that got left in the CHANGELOG 2009-11-23 07:19:33 +00:00
fyodor
e4cd139765 OK, I think I'm done with this gigantic CHANGELOG (nearly 700 lines describing more than 100 significant changes for this release)! Feel free to fix typos, etc. if you see any 2009-11-23 07:09:19 +00:00
fyodor
cccc1d5831 Adjust the example output for new format_output format 2009-11-22 08:34:15 +00:00
fyodor
48b37ff7d2 Change script output indenting from one space to two 2009-11-22 08:22:54 +00:00
fyodor
a8c6c0cce0 I'm still not quite done with the CHANGELOG--this release has a LOT of improvements! Also, I changed the version to 5.10BETA1 and regenerated the appropriate files 2009-11-21 11:23:37 +00:00
fyodor
06e2ac1ba9 Regenerate the nroff man page translations 2009-11-21 11:07:47 +00:00
fyodor
119916bec3 Given that we have 1 hub and about 200 switches, I don't think the distinction between them is important enough to warrant a special device type. So I made it a switch 2009-11-21 10:21:11 +00:00
david
fd7ab53772 Put the target IP address in NSE host timeout messages. 2009-11-21 00:46:03 +00:00
david
e2315ae075 Remove the unused Port::owner member. 2009-11-20 20:17:33 +00:00
ron
efcb11b1b0 Reduced the number of connections/traffic used by smb-enum-shares.nse by half. I was checking a random share to see if the right error is returned for every share, when it only actually had to be done once. 2009-11-20 17:00:55 +00:00
ron
b1739c929f Fixed a small error in smb-psexec -- if it can't find a share to upload to, it would try to access a non-existent variable and die 2009-11-20 16:19:40 +00:00
ron
422b5855e5 Update the output formatting to the style that Fyodor requested. Haven't updated the @output sections yet, just in case we decide to change this again. 2009-11-20 16:12:41 +00:00
ron
76db1dc4d5 Small update to the changelog 2009-11-20 16:06:34 +00:00
ron
08da8db7f0 Importing changes from my branch. There are two major updates:
1) I wrote a function that formats output from scripts in a consistent way. Although we haven't really come to a concensus on how it should look yet, it's easy to change when we do. 
2) New script: smb-enum-groups.nse. Enumerate the local groups on a system and their membership.
2009-11-20 16:05:06 +00:00
fyodor
d4756993bd set svn:eol-style property on script.db to native as Nmap seems to generate it with native line endings of the system it was created on. So hopefully this will put an end to giant commit diffs of this file just based on line ending changes 2009-11-20 07:10:30 +00:00
fyodor
745d34af47 Just remove an unnecessary comma 2009-11-20 04:52:47 +00:00
fyodor
2b7acf87e3 Improve the description slightly 2009-11-20 04:51:20 +00:00
fyodor
1bfe2201ca Expand the description to note that this script can now look at html link rel elements and also to clarify better what this script does 2009-11-20 04:46:58 +00:00
david
e88781716e Remove the unused Port::next member. 2009-11-19 16:10:49 +00:00
david
1a37d25650 Change cstringSanityCheck from being a method of Port to a static
function.
2009-11-19 16:04:37 +00:00
fyodor
07dae5d498 Next release will be 5.05BETA2 to distinguish it from the BETA1 used in svn for the last several months 2009-11-19 08:30:27 +00:00
fyodor
61190c7818 Some initial work on the CHANGELOG -- much more is needed though 2009-11-19 08:28:06 +00:00
fyodor
05eb8c8520 Note new man-xlate dir in Makefile, rename the portuguese man page XML source files to correspond to renamed rendered versions 2009-11-19 05:26:12 +00:00
fyodor
1b12a44ee8 Moved the Nmap translation XML source files here 2009-11-19 05:17:07 +00:00
david
3723852e17 Use the same trick of peeking inside the ARP packet for the destination
MAC in the doArp function as is done for ARP ping scan in
scan_engine.cc. This makes us capable of reading ARP responses that are
sent to the broadcast address.
2009-11-19 04:51:38 +00:00
fyodor
5289d55392 move the nroff man page translations to new man-xlate directory 2009-11-19 04:13:20 +00:00
david
9d4e947b4b Revert r16121, which changed when NSE sockets are created, as it seems
to be the cause of a segfault reported by Ron Bowes.

nmap -PN -p4567 -sV --script=http-* x.x.x.x
Program received signal SIGSEGV, Segmentation fault.
nsock_connect_tcp (nsp=0x83b8b38, ms_iod=0x0, handler=0x80b5cf0
<l_nsock_connect_handler(void*, void*, void*)>, timeout_msecs=10000,
userdata=0x8729308, saddr=0x871a6f8, sslen=16, port=4567)
    at nsock_connect.c:154
2009-11-19 03:46:53 +00:00
david
d54e4d4a9c Remove deleted or renamed scripts in the install-nse rule. People who
install from source may have old copies of scripts with different names,
like HTTPAuth instead of http-auth, because we don't delete the contents
of the scripts directory when installing. Rather than wipe out the whole
directory, which might contain people's custom scripts, there is now a
list of old script names in Makefile.in which are selectively deleted.
The whole list is

anonFTP
ASN
brutePOP3
bruteTelnet
chargenTest
daytimeTest
dns-safe-recursion-port
dns-safe-recursion-txid
dns-test-open-recursion
echoTest
ftpbounce
HTTPAuth
HTTP_open_proxy
HTTPpasswd
HTTPtrace
iax2Detect
ircServerInfo
ircZombieTest
MSSQLm
MySQLinfo
netbios-smb-os-discovery
popcapa
PPTPversion
promiscuous
RealVNC_auth_bypass
ripeQuery
robots
showHTMLTitle
showHTTPVersion
showOwner
showSMTPVersion
showSSHVersion
skype_v2-version
smb-enumdomains
smb-enumsessions
smb-enumshares
smb-enumusers
smb-serverstats
smb-systeminfo
SMTPcommands
SMTP_openrelay_test
SNMPcommunitybrute
SNMPsysdescr
SQLInject
SSH-hostkey
SSHv1-support
SSLv2-support
strangeSMTPport
UPnP-info
xamppDefaultPass
zoneTrans
2009-11-18 19:20:15 +00:00
fyodor
41a73d779e Note that the -r option sorts the port in ascending fashion 2009-11-18 19:06:31 +00:00
fyodor
8c6093581f Applied a patch from Matt Selsky which improves Oracle TNS Listener signature 2009-11-18 08:59:08 +00:00
david
8b89e83df2 Create an Nsock iod with nsi_new as soon as nmap.new_socket is called,
instead of waiting until a request is made to connect. This eliminates a
little bit of bookkeeping that needed to be done to retain state on the
NSE socket. Unfortunately this alone doesn't allow binding a socket to a
source address to receive UDP data, because Nsock doesn't create the
physical socket until a connection is made.
2009-11-18 05:35:39 +00:00
david
a4fc71afb6 Return the last host before skipping an octet in an IPv4 range exclude
group. Not doing this was the cause of off-by-one errors that led to
assertion failures and, potentially, excluded hosts being scanned. Here
is the comment I added:

  /* The decision to skip a range was based on the address that came immediately
     before what our current array contains now. For example, if we have just
     handed out 0.0.0.0 from the the range 0-5.0.0.0, and we're asked to skip
     the first octet, we want to advance to 1.0.0.0. But 1.0.0.0 is what is in
     the current array right now, because TargetGroup::get_next_host advances
     the array after returning an address. If we didn't step back we would
     erroneously skip ahead to 2.0.0.0. */
2009-11-18 01:17:59 +00:00
fyodor
714dd18f7f even more TODO updates -- prioritization 2009-11-17 23:54:28 +00:00
fyodor
3ba615a40b Add an assertion failure item 2009-11-17 23:22:07 +00:00
fyodor
9c7e5af8fb some changes after discussion w/David 2009-11-17 23:16:35 +00:00
fyodor
f8f550fd47 Updates for the generated files 2009-11-17 20:05:07 +00:00
fyodor
fda8a41343 Regenerate man pages -- my new system seems to be generating them properly unlike my old system. At least they look fine on a first glance 2009-11-17 06:23:01 +00:00
fyodor
e87adf87d6 note a problem I encountered with gtk+-bundle_2.16.6-20091013_win32.zip which lead me to revert back to gtk+=bundle_2.14.7-20090119_win32.zip 2009-11-17 04:27:18 +00:00
tomsellers
1f9a3e2fba Updating script.db, this was neglected during the db2-info.nse
commit.  [Tom]
2009-11-17 01:35:33 +00:00
david
4017a3a872 Remove some obsolete syntax from a comment. 2009-11-16 23:17:59 +00:00