aboutsummaryrefslogtreecommitdiffstats
path: root/net/hping
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-10-28 09:57:17 +0800
committerjeh <jeh@FreeBSD.org>2000-10-28 09:57:17 +0800
commit8307bf91b2204f814d12041beec7e736e8f875c7 (patch)
tree9e2e476aff17baaed2f69629be5763b614f32d87 /net/hping
parent3da15cb2867c2d47324b9bc3a9ccf8ffb6834e38 (diff)
downloadfreebsd-ports-gnome-8307bf91b2204f814d12041beec7e736e8f875c7.tar.gz
freebsd-ports-gnome-8307bf91b2204f814d12041beec7e736e8f875c7.tar.zst
freebsd-ports-gnome-8307bf91b2204f814d12041beec7e736e8f875c7.zip
Add New Port: security/hping
Network auditing tool PR: 21933 Submitted by: Roman Shterenzon <roman@xpert.com>
Diffstat (limited to 'net/hping')
-rw-r--r--net/hping/Makefile25
-rw-r--r--net/hping/distinfo1
-rw-r--r--net/hping/files/patch-aa22
-rw-r--r--net/hping/files/patch-ab13
-rw-r--r--net/hping/files/patch-ac10
-rw-r--r--net/hping/pkg-comment1
-rw-r--r--net/hping/pkg-descr22
-rw-r--r--net/hping/pkg-plist1
8 files changed, 95 insertions, 0 deletions
diff --git a/net/hping/Makefile b/net/hping/Makefile
new file mode 100644
index 000000000000..cd02b973b42c
--- /dev/null
+++ b/net/hping/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: hping
+# Date Created: 5 Oct 2000
+# Whom: Roman Shterenzon <roman@xpert.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= hping
+PORTVERSION= 2b54
+CATEGORIES= security net
+MASTER_SITES= http://www.kyuzz.org/antirez/hping2-src/
+DISTNAME= hping2-beta54
+
+MAINTAINER= roman@xpert.com
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --force-libpcap
+
+MAN8= hping.8
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${PREFIX}/sbin/hping
+ ${INSTALL_MAN} ${WRKSRC}/docs/hping2.8 ${PREFIX}/man/man8/hping.8
+
+.include <bsd.port.mk>
diff --git a/net/hping/distinfo b/net/hping/distinfo
new file mode 100644
index 000000000000..06733487e4a6
--- /dev/null
+++ b/net/hping/distinfo
@@ -0,0 +1 @@
+MD5 (hping2-beta54.tar.gz) = 703f2102b948f214d59d89b41bca9923
diff --git a/net/hping/files/patch-aa b/net/hping/files/patch-aa
new file mode 100644
index 000000000000..f60706776698
--- /dev/null
+++ b/net/hping/files/patch-aa
@@ -0,0 +1,22 @@
+--- configure.orig Thu Jul 6 20:06:10 2000
++++ configure Thu Oct 5 15:33:45 2000
+@@ -65,8 +65,8 @@
+ ;;
+ *"--force-libpcap")
+ FORCE_LIBPCAP="-DFORCE_LIBPCAP"
+- PCAP="PCAP=libpcap/libpcap.a"
+- PCAP_INCLUDE="-I./libpcap"
++ PCAP="PCAP=-lpcap"
++ PCAP_INCLUDE=""
+ ;;
+ *"--dont-use-proc")
+ HAVE_PROC=""
+@@ -92,7 +92,7 @@
+ -e s/@FORCE_LIBPCAP@/"$FORCE_LIBPCAP"/g \
+ -e s/@HAVE_PROC@/"$HAVE_PROC"/g \
+ -e s^@PCAP@^"$PCAP"^g \
+- -e s^@PCAP_INCLUDE@^"$PCAP_INCLUDE$"^g \
++ -e s^@PCAP_INCLUDE@^"$PCAP_INCLUDE"^g \
+ -e s^@MANPATH@^"$INSTALL_MANPATH"^g \
+ > Makefile
+
diff --git a/net/hping/files/patch-ab b/net/hping/files/patch-ab
new file mode 100644
index 000000000000..fcc4cad3fa43
--- /dev/null
+++ b/net/hping/files/patch-ab
@@ -0,0 +1,13 @@
+--- Makefile.in.orig Thu Oct 5 15:22:25 2000
++++ Makefile.in Thu Oct 5 15:25:28 2000
+@@ -6,8 +6,8 @@
+ # $date: Sun Jul 25 17:56:15 MET DST 1999$
+ # $rev: 3$
+
+-CC= gcc
+-CCOPT= -O2 -Wall @PCAP_INCLUDE@
++CC?= gcc
++CCOPT= $(CFLAGS) -Wall @PCAP_INCLUDE@
+ DEBUG= -g
+ #uncomment the following if you need libpcap based build under linux
+ #(not raccomanded)
diff --git a/net/hping/files/patch-ac b/net/hping/files/patch-ac
new file mode 100644
index 000000000000..32e9ae6d37e0
--- /dev/null
+++ b/net/hping/files/patch-ac
@@ -0,0 +1,10 @@
+--- getlhs.c.orig Thu Oct 5 15:26:31 2000
++++ getlhs.c Thu Oct 5 15:26:26 2000
+@@ -73,6 +73,7 @@
+ else if ( strstr(ifname, "eth") /* ? */
+ || strstr(ifname, "ed")
+ || strstr(ifname, "ne")
++ || strstr(ifname, "xe") /* Xircom */
+ || strstr(ifname, "xl") /* 3com */
+ || strstr(ifname, "vx") /* 3com (older model) */
+ || strstr(ifname, "ep") /* 3com 3c589 */
diff --git a/net/hping/pkg-comment b/net/hping/pkg-comment
new file mode 100644
index 000000000000..2c244dd70f04
--- /dev/null
+++ b/net/hping/pkg-comment
@@ -0,0 +1 @@
+Network auditing tool
diff --git a/net/hping/pkg-descr b/net/hping/pkg-descr
new file mode 100644
index 000000000000..3ea23af55788
--- /dev/null
+++ b/net/hping/pkg-descr
@@ -0,0 +1,22 @@
+hping2 is a network tool able to send custom ICMP/UDP/TCP
+packets and to display target replies like ping do with
+ICMP replies. hping2 handle fragmentation, arbitrary packet
+body and size and can be used in order to transfer files
+under supported protocols. Using hping2 you are able at
+least to perform the following jobs:
+
+ - Test firewall rules
+ - [spoofed] port scanning
+ - Test net performance using different protocols,
+ packet size, TOS (type of service) and fragmentation.
+ - Path MTU discovery
+ - Files transfering even between really fascist firewall rules.
+ - Traceroute like under different protocols.
+ - Firewalk like usage.
+ - Remote OS fingerprint.
+ - TCP/IP stack auditing.
+ - A lot of others.
+
+WWW: http://www.kyuzz.org/antirez/hping/
+
+-- Roman Shterenzon <roman@xpert.com>
diff --git a/net/hping/pkg-plist b/net/hping/pkg-plist
new file mode 100644
index 000000000000..3e67b27d4975
--- /dev/null
+++ b/net/hping/pkg-plist
@@ -0,0 +1 @@
+sbin/hping