From 26dbb3bed84184a4a78ac03dc50703ead1d5ba78 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 6 Oct 2012 20:48:31 +0000 Subject: [PATCH] Allow -PY (SCTP INIT ping) with IPv6. Seems to send the right packets, and the code is there to do it, but I can't find SCTP-enabled IPv6 servers to test against. --- NmapOps.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NmapOps.cc b/NmapOps.cc index 1596bb79d..3a08719db 100644 --- a/NmapOps.cc +++ b/NmapOps.cc @@ -421,8 +421,8 @@ dialog where you can start NPF if you have administrator privileges."; fatal("Sorry, UDP Ping (-PU) only works if you are root (because we need to read raw responses off the wire)"); } - if ((pingtype & PINGTYPE_SCTP_INIT) && (!isr00t || af() != AF_INET)) { - fatal("Sorry, SCTP INIT Ping (-PY) only works if you are root (because we need to read raw responses off the wire) and only for IPv4 (cause fyodor is too lazy right now to add IPv6 support and nobody has sent a patch)"); + if ((pingtype & PINGTYPE_SCTP_INIT) && (!isr00t)) { + fatal("Sorry, SCTP INIT Ping (-PY) only works if you are root (because we need to read raw responses off the wire)"); } if ((pingtype & PINGTYPE_PROTO) && (!isr00t || af() != AF_INET)) {