Initial import of amap-4.5.
Amap is a next-generation scanning tool, which identifies applications and services even if they are not listening on the default port by creating a bogus-communication and analyzing the responses. pvalchev@ david@ OK
This commit is contained in:
parent
adf816c9a9
commit
82feb2af95
30
net/amap/Makefile
Normal file
30
net/amap/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2004/06/26 05:56:20 mjc Exp $
|
||||
|
||||
COMMENT= "network application fingerprinting scanner"
|
||||
|
||||
DISTNAME= amap-4.5
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${HOMEPAGE}/releases/
|
||||
|
||||
HOMEPAGE= http://www.thc.org
|
||||
|
||||
MAINTAINER= Michael Coulter <mjc@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= pcre::devel/pcre
|
||||
|
||||
CONFIGURE_STYLE= simple
|
||||
CONFIGURE_ARGS= --prefix='$${${DESTDIRNAME}}${PREFIX}'
|
||||
|
||||
MAKE_FLAGS+= CC="${CC}" XIPATHS="-I${LOCALBASE}/include"
|
||||
|
||||
FAKE_FLAGS= MANDIR='${DESTDIR}${PREFIX}/man/man1'
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/amap/distinfo
Normal file
3
net/amap/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (amap-4.5.tar.gz) = 3c58c31a0e8e264baa06f13e068d3f91
|
||||
RMD160 (amap-4.5.tar.gz) = cbd8630ee0f85159d449e2e41b26ee2bd3a39266
|
||||
SHA1 (amap-4.5.tar.gz) = 344a6cd95398d455eb3c6b314d6491cb82149b36
|
44
net/amap/patches/patch-Makefile_am
Normal file
44
net/amap/patches/patch-Makefile_am
Normal file
@ -0,0 +1,44 @@
|
||||
$OpenBSD: patch-Makefile_am,v 1.1.1.1 2004/06/26 05:56:20 mjc Exp $
|
||||
--- Makefile.am.orig Wed Oct 29 15:02:29 2003
|
||||
+++ Makefile.am Tue Jun 22 21:00:50 2004
|
||||
@@ -1,21 +1,21 @@
|
||||
-CC=gcc
|
||||
-LIB=-lpcre -L./pcre-3.9/ -I./pcre-3.9/
|
||||
+LIB=-lpcre -L${LOCALBASE}/lib
|
||||
OPT=-O2
|
||||
OPT_DEBUG=-ggdb -Wall -lefence
|
||||
DIR=/bin
|
||||
SCRIPTS=appdefs.trig appdefs.resp appdefs.rpc
|
||||
+SCRIPTDIR=${PREFIX}/share/amap
|
||||
MANPAGE=amap.1
|
||||
-all: pcre strip
|
||||
+all: amap amapcrap
|
||||
|
||||
pcre:
|
||||
cd pcre-3.9 && make
|
||||
|
||||
amap: amap.c
|
||||
@echo
|
||||
- $(CC) $(OPT) -o amap amap.c $(LIB) $(XLIBS) $(XLIBPATHS) $(XIPATHS) $(XDEFINES)
|
||||
+ $(CC) $(CFLAGS) -o amap amap.c $(LIB) $(XLIBS) $(XLIBPATHS) $(XIPATHS) $(XDEFINES)
|
||||
|
||||
amapcrap: amapcrap.c
|
||||
- $(CC) $(OPT) -o amapcrap amapcrap.c $(XLIBS) $(XLIBPATHS) $(XIPATHS) $(XDEFINES)
|
||||
+ $(CC) $(CFLAGS) -o amapcrap amapcrap.c $(XLIBS) $(XLIBPATHS) $(XIPATHS) $(XDEFINES)
|
||||
@echo
|
||||
|
||||
strip: amap amapcrap
|
||||
@@ -29,9 +29,10 @@ debug: amap.c
|
||||
|
||||
install: all
|
||||
@echo Installing to $(PREFIX)$(DIR), change this by running ./configure --prefix=path
|
||||
- -mkdir -vp $(PREFIX)$(DIR) 2> /dev/null
|
||||
- cp amap amapcrap $(SCRIPTS) $(PREFIX)$(DIR)
|
||||
- cp $(MANPAGE) $(MANDIR)
|
||||
+ ${BSD_INSTALL_PROGRAM} amap amapcrap $(PREFIX)$(DIR)
|
||||
+ ${BSD_INSTALL_DATA_DIR} $(SCRIPTDIR)
|
||||
+ ${BSD_INSTALL_DATA} $(SCRIPTS) $(SCRIPTDIR)
|
||||
+ ${BSD_INSTALL_MAN} $(MANPAGE) $(MANDIR)
|
||||
|
||||
clean:
|
||||
cd pcre-3.9 && make clean
|
12
net/amap/patches/patch-amap-inc_h
Normal file
12
net/amap/patches/patch-amap-inc_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-amap-inc_h,v 1.1.1.1 2004/06/26 05:56:20 mjc Exp $
|
||||
--- amap-inc.h.orig 2003-12-10 15:25:01.000000000 -0800
|
||||
+++ amap-inc.h 2003-12-10 15:25:16.000000000 -0800
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/resource.h>
|
||||
#include <sys/wait.h>
|
||||
-#include "pcre-3.9/pcre.h"
|
||||
+#include <pcre.h>
|
||||
#ifdef OPENSSL
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
11
net/amap/patches/patch-amap_c
Normal file
11
net/amap/patches/patch-amap_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-amap_c,v 1.1.1.1 2004/06/26 05:56:20 mjc Exp $
|
||||
--- amap.c.orig Tue Jun 22 21:37:03 2004
|
||||
+++ amap.c Tue Jun 22 21:37:44 2004
|
||||
@@ -360,6 +360,7 @@ amap_struct_triggers *read_file_triggers
|
||||
}
|
||||
b++;
|
||||
}
|
||||
+ ptr[b] = '\0';
|
||||
trigger->trigger = amap_strdup(ptr);
|
||||
trigger->trigger_length = strlen(trigger->trigger);
|
||||
free(ptr);
|
12
net/amap/patches/patch-amap_h
Normal file
12
net/amap/patches/patch-amap_h
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-amap_h,v 1.1.1.1 2004/06/26 05:56:20 mjc Exp $
|
||||
--- amap.h.orig 2003-11-11 21:10:45.000000000 -0800
|
||||
+++ amap.h 2003-11-11 21:11:03.000000000 -0800
|
||||
@@ -33,7 +33,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
-#define AMAP_APPDEF_PATH AMAP_PREFIX"/bin"
|
||||
+#define AMAP_APPDEF_PATH AMAP_PREFIX"/share/amap"
|
||||
#define AMAP_BUFSIZE 1024 // standard buffer size
|
||||
#define AMAP_BUFSIZE_BIG 65536 // big standard buffer size
|
||||
#define AMAP_REGEX_OPTIONS ( PCRE_MULTILINE | PCRE_CASELESS | PCRE_DOTALL )
|
46
net/amap/patches/patch-configure
Normal file
46
net/amap/patches/patch-configure
Normal file
@ -0,0 +1,46 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2004/06/26 05:56:20 mjc Exp $
|
||||
--- configure.orig 2003-10-29 14:50:05.000000000 -0800
|
||||
+++ configure 2004-06-21 16:50:22.000000000 -0700
|
||||
@@ -13,9 +13,9 @@ if [ "$1" = "--help" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
-cd pcre-3.9 || exit 1
|
||||
-./configure || exit 1
|
||||
-cd ..
|
||||
+#cd pcre-3.9 || exit 1
|
||||
+#./configure || exit 1
|
||||
+#cd ..
|
||||
|
||||
echo
|
||||
echo
|
||||
@@ -27,7 +27,7 @@ SSL_IPATH=""
|
||||
CRYPTO_PATH=""
|
||||
NSL_PATH=""
|
||||
SOCKET_PATH=""
|
||||
-MANDIR=""
|
||||
+#MANDIR=""
|
||||
LIBDIRS=`cat /etc/ld.so.conf 2> /dev/null`
|
||||
PREFIX=`echo "$1"|sed 's/.*--prefix=//'`
|
||||
echo
|
||||
@@ -152,11 +152,6 @@ if [ -n "$RESOLV_PATH" ]; then
|
||||
XLIBS="$XLIBS -lresolv"
|
||||
fi
|
||||
|
||||
-for i in /usr/man /usr/share/man /usr/local/man /usr/local/share/man ; do
|
||||
- if [ -d $i ]; then
|
||||
- MANDIR=$i
|
||||
- fi
|
||||
-done
|
||||
if [ "X" = "X$MANDIR" ]; then
|
||||
MANDIR="/usr/local/man"
|
||||
fi
|
||||
@@ -168,7 +163,7 @@ if [ -d /usr/kerberos/include ]; then
|
||||
fi
|
||||
|
||||
if [ -n "$PREFIX" ]; then
|
||||
- XDEFINES="$XDEFINES -DAMAP_PREFIX=$PREFIX"
|
||||
+ XDEFINES="$XDEFINES -DAMAP_PREFIX=\\\"$PREFIX\\\""
|
||||
else
|
||||
PREFIX="/usr/local"
|
||||
fi
|
3
net/amap/pkg/DESCR
Normal file
3
net/amap/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
Amap is a next-generation scanning tool, which identifies applications
|
||||
and services even if they are not listening on the default port by
|
||||
creating a bogus-communication and analyzing the responses.
|
8
net/amap/pkg/PLIST
Normal file
8
net/amap/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/06/26 05:56:20 mjc Exp $
|
||||
bin/amap
|
||||
bin/amapcrap
|
||||
man/man1/amap.1
|
||||
share/amap/appdefs.resp
|
||||
share/amap/appdefs.rpc
|
||||
share/amap/appdefs.trig
|
||||
@dirrm share/amap
|
Loading…
Reference in New Issue
Block a user