Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2000 01:26:47 +0300 (IDT)
From:      roman@xpert.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21776: NEW PORT: net/sing
Message-ID:  <200010052226.e95MQlP83093@alchemy.oven.org>

next in thread | raw e-mail | index | archive | help

>Number:         21776
>Category:       ports
>Synopsis:       NEW PORT: net/sing - utility for sending custom ICMP packets.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 05 15:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Roman Shterenzon
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Roman Shterenzon
>Environment:


>Description:
This is a port of GNU sing utility:

From DESCR:
Sing is a little tool that sends ICMP packets fully customized from command
line. The main purpose is to replace/complement the niceful ping command
with certain enhancements as:

 - Send fragmented packets (Linux and BSD).
 - Send monster packets > 65534 (Linux and BSD).
 - Send/read spoofed packets.
 - Send many ICMP Information types in addition to the ECHO REQUEST type sent
   by default as Address Mask Request, Timestamp, Information Request, Router
   Solicitation and Router Advertisement.
 - Send many ICMP error types: Redirect, Source Quench, Time Exceeded,
   Destination Unreach and Parameter Problem.
 - Send to host with Loose or Strict Source Routing.
 - Use little fingerprinting techniques to discover Windows or Solaris boxes.
 - Send ICMP packets emulating certain OS: Cisco, Solaris, Linux, Shiva,
   Unix and Windows at the moment.

WWW: http://sourceforge.net/projects/sing/

>How-To-Repeat:


>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sing
#	sing/Makefile
#	sing/files
#	sing/files/md5
#	sing/pkg
#	sing/pkg/PLIST
#	sing/pkg/DESCR
#	sing/pkg/COMMENT
#	sing/patches
#	sing/patches/patch-aa
#	sing/patches/patch-ab
#
echo c - sing
mkdir -p sing > /dev/null 2>&1
echo x - sing/Makefile
sed 's/^X//' >sing/Makefile << 'END-of-sing/Makefile'
X# Ports collection makefile for:  sing
X# Date created:			  Oct 6 2000
X# Whom:				  Roman Shterenzon <roman@xpert.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	sing
XPORTVERSION=	1.0
XCATEGORIES=	net security
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDISTNAME=	SING-${PORTVERSION}
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	roman@xpert.com
X
XGNU_CONFIGURE=	yes
XMAN8=		sing.8
X
Xpost-extract:
X	@${RM} -rf ${WRKSRC}/libpcap*
X
X.include <bsd.port.mk>
END-of-sing/Makefile
echo c - sing/files
mkdir -p sing/files > /dev/null 2>&1
echo x - sing/files/md5
sed 's/^X//' >sing/files/md5 << 'END-of-sing/files/md5'
XMD5 (SING-1.0.tgz) = 0e478a271068eefc6e26e45d236e7694
END-of-sing/files/md5
echo c - sing/pkg
mkdir -p sing/pkg > /dev/null 2>&1
echo x - sing/pkg/PLIST
sed 's/^X//' >sing/pkg/PLIST << 'END-of-sing/pkg/PLIST'
Xsbin/sing
END-of-sing/pkg/PLIST
echo x - sing/pkg/DESCR
sed 's/^X//' >sing/pkg/DESCR << 'END-of-sing/pkg/DESCR'
XSing is a little tool that sends ICMP packets fully customized from command
Xline. The main purpose is to replace/complement the niceful ping command
Xwith certain enhancements as:
X
X - Send fragmented packets (Linux and BSD).
X - Send monster packets > 65534 (Linux and BSD).
X - Send/read spoofed packets.
X - Send many ICMP Information types in addition to the ECHO REQUEST type sent
X   by default as Address Mask Request, Timestamp, Information Request, Router
X   Solicitation and Router Advertisement.
X - Send many ICMP error types: Redirect, Source Quench, Time Exceeded,
X   Destination Unreach and Parameter Problem.
X - Send to host with Loose or Strict Source Routing.
X - Use little fingerprinting techniques to discover Windows or Solaris boxes.
X - Send ICMP packets emulating certain OS: Cisco, Solaris, Linux, Shiva,
X   Unix and Windows at the moment.
X
XWWW: http://sourceforge.net/projects/sing/
X
X--Roman <roman@xpert.com>
END-of-sing/pkg/DESCR
echo x - sing/pkg/COMMENT
sed 's/^X//' >sing/pkg/COMMENT << 'END-of-sing/pkg/COMMENT'
XTool for sending customized ICMP packets
END-of-sing/pkg/COMMENT
echo c - sing/patches
mkdir -p sing/patches > /dev/null 2>&1
echo x - sing/patches/patch-aa
sed 's/^X//' >sing/patches/patch-aa << 'END-of-sing/patches/patch-aa'
X--- Makefile.in.orig	Sat Sep 16 13:03:43 2000
X+++ Makefile.in	Fri Oct  6 01:17:29 2000
X@@ -72,7 +72,7 @@
X getopt_SOURCES = @getopt_SOURCES@
X libpcapdir = @libpcapdir@
X 
X-INCLUDES = -I$(includedir) -I$(libpcapdir)
X+INCLUDES = -I$(includedir) # -I$(libpcapdir)
X 
X LIBS = @LIBS@ -lpcap
X 
X@@ -108,7 +108,7 @@
X SOURCES = $(sing_SOURCES)
X OBJECTS = $(sing_OBJECTS)
X 
X-all: libpcap all-redirect
X+all: all-redirect
X .SUFFIXES:
X .SUFFIXES: .S .c .o .s
X 
X@@ -149,11 +149,11 @@
X 
X install-binPROGRAMS: $(bin_PROGRAMS)
X 	@$(NORMAL_INSTALL)
X-	$(mkinstalldirs) $(DESTDIR)$(bindir)
X+	$(mkinstalldirs) $(DESTDIR)$(sbindir)
X 	@list='$(bin_PROGRAMS)'; for p in $$list; do \
X 	  if test -f $$p; then \
X-	    echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
X-	     $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
X+	    echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
X+	     $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
X 	  else :; fi; \
X 	done
X 
X@@ -223,8 +223,7 @@
X 
X 
X help.o: help.c config.h
X-sing.o: sing.c config.h libpcap-0.4/pcap.h libpcap-0.4/net/bpf.h \
X-	sing.h ipcompat.h misc.h packet.h dev_struct.h
X+sing.o: sing.c config.h sing.h ipcompat.h misc.h packet.h dev_struct.h
X ip_options.o: ip_options.c config.h ip_options.h ipcompat.h packet.h \
X 	misc.h
X device.o: device.c config.h device.h misc.h packet.h dev_struct.h
END-of-sing/patches/patch-aa
echo x - sing/patches/patch-ab
sed 's/^X//' >sing/patches/patch-ab << 'END-of-sing/patches/patch-ab'
X--- configure.orig	Fri Oct  6 01:19:57 2000
X+++ configure	Fri Oct  6 01:20:05 2000
X@@ -1097,10 +1097,6 @@
X   fi
X fi
X 
X-if test -n "$GCC"; then
X-      CFLAGS="-O3 -Wall"
X-fi
X-
X echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
X echo "configure:1104: checking how to run the C preprocessor" >&5
X # On Suns, sometimes $CPP names a directory.
END-of-sing/patches/patch-ab
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010052226.e95MQlP83093>