hping port
This commit is contained in:
parent
5aae217b0d
commit
58d17b2c1e
29
net/hping/Makefile
Normal file
29
net/hping/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# Makefile for: hping
|
||||
# Version required: 2.0b49
|
||||
# Date created: Oct 28 1999
|
||||
# Whom: dugsong@monkey.org
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1999/10/28 22:53:00 dugsong Exp $
|
||||
|
||||
PKGNAME= hping-2.0b49
|
||||
|
||||
DISTNAME= hping2-beta49
|
||||
|
||||
CATEGORIES= net
|
||||
|
||||
MASTER_SITES= http://www.kyuzz.org/antirez/hping2-src/
|
||||
|
||||
MAINTAINER= dugsong@monkey.org
|
||||
|
||||
WRKSRC= ${WRKDIR}/hping2/beta49
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
|
||||
ALL_TARGET= other
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${PREFIX}/bin/hping
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hping
|
||||
${INSTALL_DATA} ${WRKSRC}/../docs/*.txt ${PREFIX}/share/doc/hping
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/hping/files/md5
Normal file
3
net/hping/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (hping2-beta49.tar.gz) = a72e0ff4d4bcb74f0e2fb7e2b4c0c798
|
||||
RMD160 (hping2-beta49.tar.gz) = 936ba2dc4539c91f105cc6a2e69de4fe523c3108
|
||||
SHA1 (hping2-beta49.tar.gz) = b348780e6f37f5a1667b0acf0056b77ccaf9074d
|
32
net/hping/patches/patch-aa
Normal file
32
net/hping/patches/patch-aa
Normal file
@ -0,0 +1,32 @@
|
||||
--- Makefile.orig Tue Aug 24 08:43:29 1999
|
||||
+++ Makefile Thu Oct 28 13:52:17 1999
|
||||
@@ -7,12 +7,12 @@
|
||||
# $rev: 3$
|
||||
|
||||
CC= gcc
|
||||
-CCOPT= -O2 -Wall
|
||||
+CCOPT= ${CFLAGS}
|
||||
DEBUG= -g
|
||||
DEFS= -DHAVE_PROC -D_BSD_SOURCE -DLIMITWHENSUID
|
||||
#uncomment the following if you need libpcap based build under linux
|
||||
#(not raccomanded)
|
||||
-#COMPILE_TIME= -DFORCE_LIBPCAP
|
||||
+COMPILE_TIME= -DFORCE_LIBPCAP
|
||||
PCAP= libpcap/libpcap.a
|
||||
|
||||
OBJ= main.o getifname.o getlhs.o \
|
||||
@@ -43,12 +43,8 @@
|
||||
@echo "use \`make strip' to strip hping2 binary"
|
||||
@echo "use \`make install' to install hping2"
|
||||
|
||||
-other: byteorder.h $(OBJ) $(PCAP)
|
||||
- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(DEFS) $(OBJ) $(PCAP)
|
||||
- @echo
|
||||
- ./hping2 -v
|
||||
- @echo "use \`make strip' to strip hping2 binary"
|
||||
- @echo "use \`make install' to install hping2"
|
||||
+other: byteorder.h $(OBJ)
|
||||
+ $(CC) -o hping2 $(CCOPT) $(DEBUG) $(COMPILE_TIME) $(DEFS) $(OBJ) -lpcap
|
||||
|
||||
byteorder.h:
|
||||
./configure
|
13
net/hping/patches/patch-ab
Normal file
13
net/hping/patches/patch-ab
Normal file
@ -0,0 +1,13 @@
|
||||
--- main.c.orig Thu Oct 28 13:47:33 1999
|
||||
+++ main.c Thu Oct 28 13:48:55 1999
|
||||
@@ -138,8 +138,8 @@
|
||||
|
||||
if ( parse_options(argc, argv) == -1 )
|
||||
{
|
||||
- printf("hping2: missing host argument\n"
|
||||
- "Try `hping2 --help' for more information.\n");
|
||||
+ printf("%s: missing host argument\n"
|
||||
+ "Try `%s --help' for more information.\n", argv[0], argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
25
net/hping/patches/patch-ac
Normal file
25
net/hping/patches/patch-ac
Normal file
@ -0,0 +1,25 @@
|
||||
--- getlhs.c.orig Tue Aug 24 08:43:29 1999
|
||||
+++ getlhs.c Thu Oct 28 14:02:45 1999
|
||||
@@ -20,16 +20,16 @@
|
||||
linkhdr_size = PPPHDR_SIZE;
|
||||
return 0;
|
||||
}
|
||||
- else if ( strstr(ifname, "eth") || strstr(ifname, "ed") )
|
||||
- {
|
||||
- linkhdr_size = ETHHDR_SIZE;
|
||||
- return 0;
|
||||
- }
|
||||
else if ( strstr(ifname, "lo") )
|
||||
{
|
||||
linkhdr_size = LOHDR_SIZE;
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
- return -1;
|
||||
+ {
|
||||
+ /* XXX - bogus. but i'm not going to rewrite all this to use
|
||||
+ libpcap or libnet correctly... */
|
||||
+ linkhdr_size = ETHHDR_SIZE;
|
||||
+ return 0;
|
||||
+ }
|
||||
}
|
1
net/hping/pkg/COMMENT
Normal file
1
net/hping/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
TCP/UDP ping/traceroute tool
|
12
net/hping/pkg/DESCR
Normal file
12
net/hping/pkg/DESCR
Normal file
@ -0,0 +1,12 @@
|
||||
from HPING2-HOWTO.TXT:
|
||||
|
||||
0001: What is hping?
|
||||
|
||||
Hping is a software to do TCP/IP stack auditing, to uncover firewall
|
||||
policy, to scan TCP port in a lot of different modes, to transfer
|
||||
files accross a firewall and many other stuff. Using hping you are
|
||||
able to do a lot of not security-regarding stuff. For example you
|
||||
can test networks performance, check if a host is up, check if TOS
|
||||
is handled et cetera.
|
||||
|
||||
-d.
|
4
net/hping/pkg/PLIST
Normal file
4
net/hping/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
bin/hping
|
||||
share/doc/hping/HPING2-HOWTO.txt
|
||||
share/doc/hping/spoofed_scan.txt
|
||||
@dirrm share/doc/hping
|
10
net/hping/pkg/SECURITY
Normal file
10
net/hping/pkg/SECURITY
Normal file
@ -0,0 +1,10 @@
|
||||
from antirez's INSTALL docs:
|
||||
|
||||
WARNING: hping2 isn't so trusted code, i didn't
|
||||
audit for hidden buffers over flow and others
|
||||
security related problems. However if (as default)
|
||||
LIMITWHENSUID is defined if euid != uid
|
||||
it's not possible to use a lot of options
|
||||
banally unsafe.
|
||||
|
||||
-d.
|
Loading…
x
Reference in New Issue
Block a user