diff options
author | jeh <jeh@FreeBSD.org> | 2000-10-28 09:57:17 +0800 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2000-10-28 09:57:17 +0800 |
commit | 8307bf91b2204f814d12041beec7e736e8f875c7 (patch) | |
tree | 9e2e476aff17baaed2f69629be5763b614f32d87 | |
parent | 3da15cb2867c2d47324b9bc3a9ccf8ffb6834e38 (diff) | |
download | freebsd-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>
-rw-r--r-- | net/hping/Makefile | 25 | ||||
-rw-r--r-- | net/hping/distinfo | 1 | ||||
-rw-r--r-- | net/hping/files/patch-aa | 22 | ||||
-rw-r--r-- | net/hping/files/patch-ab | 13 | ||||
-rw-r--r-- | net/hping/files/patch-ac | 10 | ||||
-rw-r--r-- | net/hping/pkg-comment | 1 | ||||
-rw-r--r-- | net/hping/pkg-descr | 22 | ||||
-rw-r--r-- | net/hping/pkg-plist | 1 | ||||
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/hping/Makefile | 25 | ||||
-rw-r--r-- | security/hping/distinfo | 1 | ||||
-rw-r--r-- | security/hping/files/patch-aa | 22 | ||||
-rw-r--r-- | security/hping/files/patch-ab | 13 | ||||
-rw-r--r-- | security/hping/files/patch-ac | 10 | ||||
-rw-r--r-- | security/hping/pkg-comment | 1 | ||||
-rw-r--r-- | security/hping/pkg-descr | 22 | ||||
-rw-r--r-- | security/hping/pkg-plist | 1 |
17 files changed, 191 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 diff --git a/security/Makefile b/security/Makefile index a97d6ccaf433..e7ae6a622478 100644 --- a/security/Makefile +++ b/security/Makefile @@ -31,6 +31,7 @@ SUBDIR += gpasman SUBDIR += gtkportscan SUBDIR += heimdal + SUBDIR += hping SUBDIR += ident2 SUBDIR += identify SUBDIR += inflex diff --git a/security/hping/Makefile b/security/hping/Makefile new file mode 100644 index 000000000000..cd02b973b42c --- /dev/null +++ b/security/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/security/hping/distinfo b/security/hping/distinfo new file mode 100644 index 000000000000..06733487e4a6 --- /dev/null +++ b/security/hping/distinfo @@ -0,0 +1 @@ +MD5 (hping2-beta54.tar.gz) = 703f2102b948f214d59d89b41bca9923 diff --git a/security/hping/files/patch-aa b/security/hping/files/patch-aa new file mode 100644 index 000000000000..f60706776698 --- /dev/null +++ b/security/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/security/hping/files/patch-ab b/security/hping/files/patch-ab new file mode 100644 index 000000000000..fcc4cad3fa43 --- /dev/null +++ b/security/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/security/hping/files/patch-ac b/security/hping/files/patch-ac new file mode 100644 index 000000000000..32e9ae6d37e0 --- /dev/null +++ b/security/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/security/hping/pkg-comment b/security/hping/pkg-comment new file mode 100644 index 000000000000..2c244dd70f04 --- /dev/null +++ b/security/hping/pkg-comment @@ -0,0 +1 @@ +Network auditing tool diff --git a/security/hping/pkg-descr b/security/hping/pkg-descr new file mode 100644 index 000000000000..3ea23af55788 --- /dev/null +++ b/security/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/security/hping/pkg-plist b/security/hping/pkg-plist new file mode 100644 index 000000000000..3e67b27d4975 --- /dev/null +++ b/security/hping/pkg-plist @@ -0,0 +1 @@ +sbin/hping |