henri
9bfe6e46cc
Display the test name before running it.
...
This makes it easier to identify a test that hangs.
2013-06-15 12:33:31 +00:00
henri
a493296c54
Code cleanup.
...
Made get_peeraddr_string() return "peer unspecified" if peerlen <= 0.
This saves a handful duplicate lines that did the check externally.
2013-06-15 12:33:27 +00:00
david
6238087e9b
Compare string contents, not pointer values.
...
This bug was introduced in r30334. We want to compare the contents of
the strings, not their addresses. This bug caused host script results to
be printed in arbitrary, perhaps not even well-defined, order.
2013-06-14 17:26:43 +00:00
david
7684b43072
Formatting.
2013-06-13 15:22:17 +00:00
david
8c7e0881ec
Remove misleading comments.
...
There is more than just sorting going on here; it's also whether some
output is written.
2013-06-13 15:22:13 +00:00
david
dcca84eb0d
Fix weird double variable declaration.
...
It seemed to run fine even with this.
2013-06-13 15:22:09 +00:00
d33tah
e9c6e5b925
revert the previous commit, git-svn pushed it to the wrong directory.
2013-06-13 15:10:07 +00:00
d33tah
3e3e87f462
* create d33tah directory at nmap-exp
...
* create a branch ncat-lua in nmap-exp/d33tah based on current nmap trunk
* merge in patches from github into ncat-lua branch
2013-06-13 15:04:23 +00:00
david
8a01ce5a57
Allow "/" netmask syntax in dns-ip6-arpa-scan.nse.
...
Based on a patch like Indula Nayanamith.
http://seclists.org/nmap-dev/2013/q2/218
2013-06-13 03:53:40 +00:00
fyodor
7e92daea8c
Minor prioritization w/David
2013-06-11 17:58:19 +00:00
david
9ea60a9f1f
Consider IPPROTO_NONE (59) an upper-layer protocol for IPv6.
...
"Upper-layer" here simply means that there are no extension headers
following, which is the case here.
2013-06-06 14:50:09 +00:00
fyodor
36c8bc325e
Some new tasks from discussion w/David
2013-06-03 22:44:42 +00:00
david
b30aba076a
Set the default --max-conns to 60 on Windows.
...
Suggested by Andrey Olkhin.
http://seclists.org/nmap-dev/2013/q1/390
2013-06-02 09:03:44 +00:00
david
02cb2931aa
Fix rt_msghdr padding on NetBSD.
...
NetBSD uses a fixed 64-bit padding, unlike OS X (32-bit), and unlike
other platforms (sizeof(unsigned long)). There is an RT_ROUNDUP macro
that does the right alignment; use that when available.
http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/lib/libc/net/getifaddrs.c
http://fxr.watson.org/fxr/source/net/route.h?v=NETBSD#L270
Rounding to 4 bytes was breaking with IPv6 addresses, which are 28
bytes. The pointer was being advanced by 28 instead of 32. Compare to
r29739, somewhat similar.
Reported by Fredrik Pettai.
http://seclists.org/nmap-dev/2013/q1/384
2013-06-01 16:28:44 +00:00
luis
bf1de31d07
Fix a bug reported by David Young. Nping set the SYN flag in all packets, no matter what was passed by the user through --flags. This patch was submitted by Josh Hunt
2013-06-01 09:53:18 +00:00
david
8be62726e5
Add http-phpmyadmin-dir-traversal by Alexey Meshcheryakov.
...
http://seclists.org/nmap-dev/2013/q1/372
2013-05-31 19:59:30 +00:00
david
5757bfb11b
Add a service probe for Erlang distribution nodes from Michael Schierl.
...
http://seclists.org/nmap-dev/2013/q1/360
2013-05-31 19:59:27 +00:00
henri
8b7f91cd0f
Moved gh_lists tests from nsock/src/ to nsock/tests/
2013-05-22 14:35:24 +00:00
fyodor
05ab9f5a0c
note that nmaprc could enable Nmap command line profiles, similar to how Zenmap does it. This was a suggestion by Jacek Wielemborek
2013-05-21 03:21:07 +00:00
david
ae33c48ec4
svn:ignore some global-ignores files for git-svn.
...
These file are ignored automatically by Subversion (~/.subversion/config
global-ignores setting). Ignore them explicitly so they show up in "git
svn show-ignore".
2013-05-18 19:42:52 +00:00
david
c17075734e
svn:ignore tests_main.
2013-05-18 19:23:29 +00:00
david
ff7659df5e
Run ncat tests with "make check" too.
2013-05-18 19:22:33 +00:00
david
b6ca01d295
Use /bin/bash in run_tests.sh.
...
I got this error:
./run_tests.sh: 42: ./run_tests.sh: Syntax error: "(" unexpected
2013-05-18 19:18:07 +00:00
henri
192cd3657d
Don't set SO_BROADCAST on SOCK_STREAM sockets.
...
This doesn't make sense and raise verbose errors, at least on Windows.
See: http://seclists.org/nmap-dev/2013/q2/313
2013-05-18 13:24:03 +00:00
henri
3534dfa3b8
Display actual error codes in the nsock messages.
...
Refactored the code a bit too.
2013-05-18 13:23:55 +00:00
henri
8e38e32df1
Run nsock tests by typing make check from nmap/ or nsock/src/
2013-05-18 13:06:10 +00:00
henri
4a261dd5f2
Updated libdnet to not SIOCIFNETMASK before SIOCIFADDR on OpenBSD. This was
...
reported to break on -current as of May 2013. [Giovanni Bechis]
2013-05-17 21:38:08 +00:00
david
8ff10edd1c
pl.po update from Jacek Wielemborek.
2013-05-17 15:08:47 +00:00
david
5ab1b23bf0
Fix address matching in -PY ping.
...
Patch by Marin Maržić.
http://seclists.org/nmap-dev/2013/q2/297
2013-05-17 07:56:51 +00:00
dmiller
ba4097af38
os.date format string cleanup
...
Removed some non-ANSI-C strftime format strings ("%F") and
locale-dependent formats ("%c") from NSE scripts and libraries.
C99-specified %F was noticed by Alex Weber
(http://seclists.org/nmap-dev/2013/q2/300 )
2013-05-16 14:59:48 +00:00
david
db621362cb
Add pl .mo.
2013-05-14 18:11:46 +00:00
david
a5134555c6
Add Polish translation by Jacek Wielemborek.
...
http://seclists.org/nmap-dev/2013/q2/292
2013-05-14 18:11:44 +00:00
henri
8ab21a452d
Properly declare the proxy spec structures as extern.
2013-05-13 08:05:31 +00:00
david
ce98c0ad1e
Don't consider NOARP devices as Ethernet devices.
...
NStorm reported a failure of ARP ping scan on OpenVZ venet devices,
which don't have a MAC address and can't do ARP. We don't keep interface
flags such as NOARP at the target level, so check whether the interfaces
returned by libdnet are both INTF_TYPE_ETH and don't have
INTF_FLAG_NOARP set; otherwise call them "other" interfaces.
http://seclists.org/nmap-dev/2013/q1/349
http://openvz.org/Virtual_network_device
2013-05-13 05:38:33 +00:00
david
6b36602e8b
UTF-8–aware escaping in XML todo.
2013-05-13 05:21:22 +00:00
david
3fd1247a32
Move gcd_n_uint to osscan2.cc.
2013-05-13 04:59:13 +00:00
david
bf34048667
Whitespace and style in utils.{cc,h}.
2013-05-13 04:59:11 +00:00
david
6b7b428cb9
Remove COMPAT_SRCS and COMPAT_OBJS.
...
These appear not to have any effect any more. They were initially used
to conditionally compile and link some files with replacements for
standard library functions, but seem not to have been used after r828
("Moved to nbase system for compatability funcs").
2013-05-13 04:21:11 +00:00
david
11aff032df
Sort SRCS, HDRS, OBJS.
2013-05-13 04:21:08 +00:00
batrick
48b604bcd2
The directory path was being passed to Script.new rather than the file in the
...
directory. This bug was reported by Robin Wood [1].
[1] http://seclists.org/nmap-dev/2013/q2/282
2013-05-12 21:24:16 +00:00
henri
d9de4cc552
'const static' -> 'static const'
2013-05-12 21:02:29 +00:00
henri
e108771faa
Use the portable socket_errno() & socket_strerror() functions.
2013-05-12 17:48:33 +00:00
henri
28af8f519f
Consistent spacing for switch (<condition>).
2013-05-12 13:40:01 +00:00
henri
ce01e2040a
Refactored code.
...
A switch/case reads easier than a if/else if/else block
to handle multiple cases.
2013-05-12 13:39:53 +00:00
henri
81fda37f89
New function msevent_timedout().
2013-05-12 13:39:45 +00:00
henri
8475cef210
Return actual error code.
2013-05-11 16:00:11 +00:00
henri
34c407189b
s/Little/Minimal/
2013-05-11 16:00:01 +00:00
henri
e54df43edf
Readme file.
2013-05-11 10:22:44 +00:00
henri
3776852557
Added simple TCP connect test and setup ncat listeners.
...
The listeners are ncat-based echo servers:
- UDP
- TCP
- TCP + SSL
2013-05-10 08:26:48 +00:00
henri
76db6d8de3
Indentation fixes.
2013-05-10 07:59:43 +00:00