Stage net/nepenthese and unbreak on FreeBSD 10+

PR:		193042
Submitted by:	Ports Fury
This commit is contained in:
John Marino 2014-08-30 20:50:54 +00:00
parent 888c623201
commit 6a49fa15fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366675
99 changed files with 1366 additions and 139 deletions

View file

@ -10,37 +10,44 @@ MASTER_SITES= SF/${PORTNAME}/Nepenthes%20development/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Determine the malware activity on a network
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libmagic.so:${PORTSDIR}/sysutils/file \
libpcre.so:${PORTSDIR}/devel/pcre \
libadns.so:${PORTSDIR}/dns/adns
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
libadns.so:${PORTSDIR}/dns/adns \
libcurl.so:${PORTSDIR}/ftp/curl \
libmagic.so:${PORTSDIR}/sysutils/file
.if defined(WITH_PRELUDE)
LIB_DEPENDS+= libprelude.so:${PORTSDIR}/security/libprelude
CONFIGURE_ARGS+= --enable-prelude
.endif
.if defined(WITH_DEBUG_LOGGING)
CONFIGURE_ARGS+= --enable-debug-logging
.endif
USES= perl5
USES= dos2unix libtool perl5
DOS2UNIX_FILE= modules/shellcode-generic/sch_generic_connect_trans.cpp
USE_GCC= any
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=/var
INSTALL_TARGET= install-strip
DOCS= README README.VFS logo-shaded.svg
MAN8= nepenthes.8
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DEBUG_LOGGING PRELUDE
DEBUG_LOGGING_CONFIGURE_ENABLE= debug-logging
PRELUDE_LIB_DEPENDS= libprelude.so:${PORTSDIR}/security/libprelude
PRELUDE_CONFIGURE_ENABLE= prelude
NO_STAGE= yes
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e 's,-Werror,,'
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
${WRKSRC}/modules/download-curl/download-curl.hpp \
${WRKSRC}/modules/submit-http/HTTPSession.hpp \
${WRKSRC}/modules/submit-http/HTTPSession.cpp \
${WRKSRC}/modules/submit-http/submit-http.hpp \
${WRKSRC}/modules/submit-mwserv/TransferSession.hpp \
${WRKSRC}/modules/submit-mwserv/submit-mwserv.hpp \
${WRKSRC}/modules/submit-norman/submit-norman.hpp
${REINPLACE_CMD} -e \
's|-Werror|| ; \
s|-D.*_GNU_SOURCE||'
@${FIND} ${WRKSRC}/modules -name "*.[ch]pp" -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e \
'/<curl\/types.h>/d'
@${REINPLACE_CMD} -e \
's|-I/usr/local/include|| ; \
s|-I/usr/src/contrib/file/|| ; \
s|-L/usr/local/lib|| ; \
s|-R/usr/local/lib||' ${WRKSRC}/configure
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/signatures
(cd ${WRKSRC}/modules/shellcode-signatures && ${INSTALL_DATA} \
shellcode-signatures.sc ${STAGEDIR}${DATADIR}/signatures)
.include <bsd.port.mk>

View file

@ -1,6 +1,6 @@
--- Makefile.in.orig Sun Jan 14 13:34:14 2007
+++ Makefile.in Sun Jan 14 13:34:40 2007
@@ -188,7 +188,7 @@
@@ -191,7 +191,7 @@
build_vendor = @build_vendor@
datadir = @datadir@
datarootdir = @datarootdir@
@ -9,13 +9,34 @@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
@@ -219,7 +219,7 @@
SUBDIRS = nepenthes-core modules
@@ -222,7 +222,7 @@
SUBDIRS = nepenthes-core modules
#tools
EXTRA_DIST = configure.ac CHANGES doc/README.VFS doc/logo-shaded.svg doc/nepenthes.8 conf/nepenthes.conf.dist
-doc_DATA = doc/README.VFS doc/logo-shaded.svg
+doc_DATA = README doc/README.VFS doc/logo-shaded.svg
#sysconf_DATA = conf/nepenthes.conf.dist
AM_CXXFLAGS = ''
@@ -714,21 +714,6 @@
$(mkinstalldirs) $(DESTDIR)$(mandir)
$(mkinstalldirs) $(DESTDIR)$(mandir)/man8
$(INSTALL_DATA) $(srcdir)/doc/nepenthes.8 $(DESTDIR)$(mandir)/man8/nepenthes.8;
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes/pcap
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/cache/nepenthes/signatures
-
- $(INSTALL_DATA) modules/shellcode-signatures/shellcode-signatures.sc $(DESTDIR)$(localstatedir)/cache/nepenthes/signatures
-
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes/gotek
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/spool/nepenthes/submitpostgres
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/log/pcap
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/binaries
- $(mkinstalldirs) $(DESTDIR)$(localstatedir)/hexdumps
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View file

@ -0,0 +1,12 @@
--- modules/dnsresolve-adns/dnsresolve-adns.cpp.orig
+++ modules/dnsresolve-adns/dnsresolve-adns.cpp
@@ -28,7 +28,8 @@
/* $Id: dnsresolve-adns.cpp 836 2007-02-06 15:16:50Z common $ */
#include <sys/poll.h>
-#include <errno.h>
+#include <cstdlib>
+#include <cerrno>
#include "dnsresolve-adns.hpp"

View file

@ -0,0 +1,11 @@
--- modules/download-creceive/CReceiveDialogue.cpp.orig
+++ modules/download-creceive/CReceiveDialogue.cpp
@@ -27,6 +27,8 @@
/* $Id: CReceiveDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
+#include <cstdio>
+
#include "CReceiveDialogue.hpp"
#include "SocketManager.hpp"

View file

@ -0,0 +1,13 @@
--- modules/download-csend/CSendDialogue.cpp.orig
+++ modules/download-csend/CSendDialogue.cpp
@@ -27,7 +27,10 @@
/* $Id: CSendDialogue.cpp 2271 2006-01-14 20:31:52Z common $ */
+#include <cstdlib>
#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
#include <netinet/in.h>
#include "CSendDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/download-ftp/download-ftp.cpp.orig
+++ modules/download-ftp/download-ftp.cpp
@@ -27,7 +27,8 @@
/* $Id: download-ftp.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cstdlib>
+#include <cctype>
#include "download-ftp.hpp"
#include "CTRLDialogue.hpp"

View file

@ -0,0 +1,13 @@
--- modules/download-http/HTTPDialogue.cpp.orig
+++ modules/download-http/HTTPDialogue.cpp
@@ -27,6 +27,10 @@
/* $Id: HTTPDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+
#include "HTTPDialogue.hpp"

View file

@ -0,0 +1,17 @@
--- modules/download-rcp/RCPDialogue.cpp.orig
+++ modules/download-rcp/RCPDialogue.cpp
@@ -27,9 +27,13 @@
/* $Id: RCPDialogue.cpp 1410 2007-10-12 13:07:23Z common $ */
+#include <cstdlib>
+#include <cstring>
#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
#include <netinet/in.h>
-#include <ctype.h>
+#include <cctype>
#include "RCPDialogue.hpp"

View file

@ -0,0 +1,13 @@
--- modules/download-tftp/TFTPDialogue.cpp.orig
+++ modules/download-tftp/TFTPDialogue.cpp
@@ -27,7 +27,10 @@
/* $Id: TFTPDialogue.cpp 550 2006-05-04 10:25:35Z common $ */
+#include <cstdlib>
+#include <cstring>
#include <sys/types.h>
+#include <sys/socket.h>
#include <arpa/tftp.h>
#include <netinet/in.h>

View file

@ -0,0 +1,14 @@
--- modules/log-prelude/log-prelude.cpp.orig
+++ modules/log-prelude/log-prelude.cpp
@@ -27,7 +27,11 @@
/* $Id: log-prelude.cpp 1278 2007-05-29 16:04:00Z yoann $ */
+#include <cstdlib>
+#include <sys/types.h>
+#include <sys/socket.h>
#include <arpa/inet.h>
+#include <netinet/in.h>
#include "log-prelude.hpp"
#include "Nepenthes.hpp"
#include "LogManager.hpp"

View file

@ -0,0 +1,10 @@
--- modules/log-surfnet/log-surfnet.cpp.orig
+++ modules/log-surfnet/log-surfnet.cpp
@@ -27,6 +27,7 @@
/* $Id: log-surfnet.cpp 932 2007-02-21 14:16:50Z common $ */
+#include <cstdlib>
#include <sstream>
#include <sys/types.h>
#include <sys/socket.h>

View file

@ -0,0 +1,19 @@
--- modules/module-honeytrap/PCAPSocket.cpp.orig
+++ modules/module-honeytrap/PCAPSocket.cpp
@@ -28,12 +28,14 @@
/* $Id: PCAPSocket.cpp 697 2006-11-11 09:17:19Z common $ */
#include <unistd.h>
-#include <time.h>
+#include <cstdlib>
+#include <cstring>
+#include <ctime>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#include <errno.h>
+#include <cerrno>
#include "LogManager.hpp"
#include "PCAPSocket.hpp"

View file

@ -0,0 +1,14 @@
--- modules/module-peiros/PeirosParser.cpp.orig
+++ modules/module-peiros/PeirosParser.cpp
@@ -18,8 +18,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <ctype.h>
-#include <stdio.h>
+#include <cctype>
+#include <cstdio>
+#include <cstdlib>
#include "PeirosParser.hpp"
#include "Nepenthes.hpp"
#include "LogManager.hpp"

View file

@ -0,0 +1,12 @@
--- modules/module-portwatch/module-portwatch.cpp.orig
+++ modules/module-portwatch/module-portwatch.cpp
@@ -27,7 +27,8 @@
/* $Id: module-portwatch.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "module-portwatch.hpp"
#include "WatchDialogue.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_cmd.cpp.orig
+++ modules/shellcode-generic/sch_generic_cmd.cpp
@@ -30,6 +30,8 @@
+#include <cstring>
+
#include "sch_generic_cmd.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,10 @@
--- modules/shellcode-generic/sch_generic_connect_trans.cpp.orig
+++ modules/shellcode-generic/sch_generic_connect_trans.cpp
@@ -27,6 +27,7 @@
/* $Id: sch_generic_connect_trans.cpp 550 2006-05-04 10:25:35Z common $ */
+#include <cstdio>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -0,0 +1,12 @@
--- modules/shellcode-generic/sch_generic_createprocess.cpp.orig
+++ modules/shellcode-generic/sch_generic_createprocess.cpp
@@ -40,6 +40,9 @@
+#include <cstdio>
+#include <cstring>
+
#include "sch_generic_createprocess.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,10 @@
--- modules/shellcode-generic/sch_generic_konstanz_xor.cpp.orig
+++ modules/shellcode-generic/sch_generic_konstanz_xor.cpp
@@ -27,6 +27,7 @@
/* $Id: sch_generic_konstanz_xor.cpp 2215 2005-12-23 16:54:36Z common $ */
+#include <cstring>
#include "sch_generic_konstanz_xor.hpp"
#include "Nepenthes.hpp"
#include "Message.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_leimbach_url_xor.cpp.orig
+++ modules/shellcode-generic/sch_generic_leimbach_url_xor.cpp
@@ -27,6 +27,8 @@
/* $Id: sch_generic_leimbach_url_xor.cpp 836 2007-02-06 15:16:50Z common $ */
+#include <cstring>
+
#include "sch_generic_xor.hpp"
#include "sch_generic_leimbach_url_xor.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_link_bind_trans.cpp.orig
+++ modules/shellcode-generic/sch_generic_link_bind_trans.cpp
@@ -27,6 +27,8 @@
/* $Id: sch_generic_link_bind_trans.cpp 2271 2006-01-14 20:31:52Z common $ */
+#include <cstdio>
+#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_link_trans.cpp.orig
+++ modules/shellcode-generic/sch_generic_link_trans.cpp
@@ -28,6 +28,8 @@
/* $Id: sch_generic_link_trans.cpp 2271 2006-01-14 20:31:52Z common $ */
+#include <cstdio>
+#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -0,0 +1,10 @@
--- modules/shellcode-generic/sch_generic_linkxor.cpp.orig
+++ modules/shellcode-generic/sch_generic_linkxor.cpp
@@ -27,6 +27,7 @@
/* $Id: sch_generic_linkxor.cpp 2215 2005-12-23 16:54:36Z common $ */
+#include <cstring>
#include "sch_generic_linkxor.hpp"
#include "Nepenthes.hpp"
#include "Message.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_stuttgart.cpp.orig
+++ modules/shellcode-generic/sch_generic_stuttgart.cpp
@@ -27,6 +27,8 @@
/* $Id: sch_generic_link_trans.cpp 1664 2005-07-15 03:33:39Z common $ */
+#include <cstdio>
+#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -0,0 +1,12 @@
--- modules/shellcode-generic/sch_generic_unicode.cpp.orig
+++ modules/shellcode-generic/sch_generic_unicode.cpp
@@ -28,6 +28,9 @@
/* $Id: sch_generic_unicode.cpp 2245 2006-01-06 16:46:44Z common $ */
+#include <cstdlib>
+#include <cstring>
+
#include "sch_generic_unicode.hpp"
#include "LogManager.hpp"
#include "Message.hpp"

View file

@ -0,0 +1,10 @@
--- modules/shellcode-generic/sch_generic_url.cpp.orig
+++ modules/shellcode-generic/sch_generic_url.cpp
@@ -40,6 +40,7 @@
+#include <cstdio>
#include "sch_generic_url.hpp"
#include "LogManager.hpp"
#include "Message.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_winexec.cpp.orig
+++ modules/shellcode-generic/sch_generic_winexec.cpp
@@ -29,6 +29,8 @@
+#include <cstring>
+
#include "sch_generic_winexec.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_wuerzburg.cpp.orig
+++ modules/shellcode-generic/sch_generic_wuerzburg.cpp
@@ -27,6 +27,8 @@
/* $Id: sch_generic_wuerzburg.cpp 2271 2006-01-14 20:31:52Z common $ */
+#include <cstdio>
+#include <cstring>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -0,0 +1,11 @@
--- modules/shellcode-generic/sch_generic_xor.cpp.orig
+++ modules/shellcode-generic/sch_generic_xor.cpp
@@ -40,6 +40,8 @@
+#include <cstdio>
+
#include "sch_generic_xor.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,10 @@
--- modules/shellcode-signatures/sch_engine_unicode.cpp.orig
+++ modules/shellcode-signatures/sch_engine_unicode.cpp
@@ -27,6 +27,7 @@
/* $Id: sch_engine_unicode.cpp 443 2006-03-27 19:55:16Z common $ */
+#include <cstring>
#include <stdint.h>
#include "sch_engine_unicode.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-signatures/sch_namespace_alphanumericxor.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_alphanumericxor.cpp
@@ -28,6 +28,8 @@
/* $Id: sch_namespace_alphanumericxor.cpp 520 2006-04-18 23:18:17Z common $ */
+#include <cstring>
+
#include "sch_namespace_alphanumericxor.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-signatures/sch_namespace_base64.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_base64.cpp
@@ -27,6 +27,8 @@
/* $Id: sch_namespace_base64.cpp 693 2006-11-02 19:35:43Z common $ */
+#include <cstring>
+
#include "sch_namespace_base64.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,10 @@
--- modules/shellcode-signatures/sch_namespace_bindfiletransfer.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_bindfiletransfer.cpp
@@ -27,6 +27,7 @@
/* $Id: sch_namespace_bindfiletransfer.cpp 499 2006-04-08 18:40:14Z common $ */
+#include <cstdio>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -0,0 +1,10 @@
--- modules/shellcode-signatures/sch_namespace_connectbackfiletransfer.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_connectbackfiletransfer.cpp
@@ -27,6 +27,7 @@
/* $Id: sch_namespace_connectbackfiletransfer.cpp 499 2006-04-08 18:40:14Z common $ */
+#include <cstdio>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

View file

@ -0,0 +1,11 @@
--- modules/shellcode-signatures/sch_namespace_execute.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_execute.cpp
@@ -27,6 +27,8 @@
/* $Id: sch_namespace_execute.cpp 550 2006-05-04 10:25:35Z common $ */
+#include <cstring>
+
#include "sch_namespace_execute.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-signatures/sch_namespace_konstanzxor.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_konstanzxor.cpp
@@ -27,6 +27,8 @@
/* $Id: sch_namespace_konstanzxor.cpp 499 2006-04-08 18:40:14Z common $ */
+#include <cstring>
+
#include "sch_namespace_konstanzxor.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-signatures/sch_namespace_linkxor.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_linkxor.cpp
@@ -28,6 +28,8 @@
/* $Id: sch_namespace_linkxor.cpp 654 2006-09-27 12:01:16Z common $ */
+#include <cstring>
+
#include "sch_namespace_linkxor.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellcode-signatures/sch_namespace_xor.cpp.orig
+++ modules/shellcode-signatures/sch_namespace_xor.cpp
@@ -28,6 +28,8 @@
/* $Id: sch_namespace_xor.cpp 499 2006-04-08 18:40:14Z common $ */
+#include <cstring>
+
#include "sch_namespace_xor.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,13 @@
--- modules/shellemu-winnt/VFS.cpp.orig
+++ modules/shellemu-winnt/VFS.cpp
@@ -21,7 +21,9 @@
*******************************************************************************/
-#include <ctype.h>
+#include <cctype>
+#include <cstdio>
+#include <cstring>
#include "VFS.hpp"
#include "VFSNode.hpp"

View file

@ -0,0 +1,10 @@
--- modules/shellemu-winnt/VFSCommand.hpp.orig
+++ modules/shellemu-winnt/VFSCommand.hpp
@@ -33,6 +33,7 @@
#include <list>
#include <string>
#include <vector>
+#include <inttypes.h>
#include "VFSNode.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellemu-winnt/VFSCommandCMD.cpp.orig
+++ modules/shellemu-winnt/VFSCommandCMD.cpp
@@ -27,6 +27,8 @@
/* $Id: VFSCommandCMD.cpp 1956 2005-09-10 15:32:08Z common $ */
+#include <cstring>
+
#include "VFSCommandCMD.hpp"
#include "VFSNode.hpp"
#include "VFSDir.hpp"

View file

@ -0,0 +1,12 @@
--- modules/shellemu-winnt/VFSCommandFTP.cpp.orig
+++ modules/shellemu-winnt/VFSCommandFTP.cpp
@@ -27,7 +27,8 @@
/* $Id: VFSCommandFTP.cpp 1410 2007-10-12 13:07:23Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "VFSCommandFTP.hpp"
#include "VFSNode.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellemu-winnt/VFSCommandRCP.cpp.orig
+++ modules/shellemu-winnt/VFSCommandRCP.cpp
@@ -27,6 +27,8 @@
/* $Id: VFSCommandRCP.cpp 550 2006-05-04 10:25:35Z common $ */
+#include <cstdio>
+#include <cstring>
#include "VFSCommandRCP.hpp"
#include "VFSNode.hpp"
#include "VFSDir.hpp"

View file

@ -0,0 +1,11 @@
--- modules/shellemu-winnt/VFSDir.cpp.orig
+++ modules/shellemu-winnt/VFSDir.cpp
@@ -28,6 +28,8 @@
/* $Id: VFSDir.cpp 1947 2005-09-08 17:30:06Z common $ */
+#include <cstring>
+
#include "VFSDir.hpp"
#include "VFSFile.hpp"
#include "LogManager.hpp"

View file

@ -0,0 +1,12 @@
--- modules/shellemu-winnt/WinNTShellDialogue.cpp.orig
+++ modules/shellemu-winnt/WinNTShellDialogue.cpp
@@ -28,7 +28,8 @@
/* $Id: WinNTShellDialogue.cpp 2221 2005-12-23 17:01:33Z common $ */
//#include <arpa/inet.h>
-#include <errno.h>
+#include <cerrno>
+#include <cstring>
#include <string>
#include "WinNTShellDialogue.hpp"

View file

@ -0,0 +1,15 @@
--- modules/submit-file/submit-file.cpp.orig
+++ modules/submit-file/submit-file.cpp
@@ -26,10 +26,11 @@
*******************************************************************************/
/* $Id: submit-file.cpp 550 2006-05-04 10:25:35Z common $ */
+#include <cstdio>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <errno.h>
+#include <cerrno>
#include "submit-file.hpp"
#include "Download.hpp"

View file

@ -0,0 +1,26 @@
--- modules/submit-gotek/submit-gotek.cpp.orig
+++ modules/submit-gotek/submit-gotek.cpp
@@ -26,16 +26,18 @@
*******************************************************************************/
/* $Id: submit-gotek.cpp 550 2006-05-04 10:25:35Z common $ */
+#include <cstdlib>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <errno.h>
+#include <cerrno>
#include <arpa/inet.h>
-#include <time.h>
+#include <netinet/in.h>
+#include <ctime>
#include <dirent.h>
-#include <string.h>
-#include <errno.h>
-#include <assert.h>
+#include <cstring>
+#include <cerrno>
+#include <cassert>
#include "submit-gotek.hpp"
#include "gotekCTRLDialogue.hpp"

View file

@ -0,0 +1,13 @@
--- modules/submit-http/HTTPSession.cpp.orig
+++ modules/submit-http/HTTPSession.cpp
@@ -31,6 +31,10 @@
#include <curl/types.h> /* new for v7 */
#include <curl/easy.h> /* new for v7 */
#include <sstream>
+#include <cstring>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
#include <netinet/in.h>
#include "HTTPSession.hpp"

View file

@ -0,0 +1,11 @@
--- modules/submit-norman/submit-norman.cpp.orig
+++ modules/submit-norman/submit-norman.cpp
@@ -28,6 +28,8 @@
/* $Id: submit-norman.cpp 674 2006-10-23 01:31:53Z common $ */
+#include <cstdlib>
+
#include "submit-norman.hpp"
#include "Download.hpp"
#include "DownloadUrl.hpp"

View file

@ -0,0 +1,11 @@
--- modules/submit-norman/submit-norman.hpp.orig
+++ modules/submit-norman/submit-norman.hpp
@@ -28,6 +28,8 @@
/* $Id: submit-norman.hpp 674 2006-10-23 01:31:53Z common $ */
+#include <cstring>
+
#include <curl/curl.h>
#include <curl/types.h> /* new for v7 */
#include <curl/easy.h> /* new for v7 */

View file

@ -0,0 +1,17 @@
--- modules/submit-postgres/PGDownloadContext.cpp.orig
+++ modules/submit-postgres/PGDownloadContext.cpp
@@ -38,9 +38,11 @@
#include <sys/stat.h>
#include <unistd.h>
-#include <time.h>
-#include <errno.h>
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <ctime>
+#include <cerrno>
+#include <cstring>
#include <sstream>
#include <map>

View file

@ -0,0 +1,10 @@
--- modules/submit-postgres/PGDownloadContext.hpp.orig
+++ modules/submit-postgres/PGDownloadContext.hpp
@@ -30,6 +30,7 @@
#ifndef HAVE_PGDOWNLOADCONTEXT_HPP
#define HAVE_PGDOWNLOADCONTEXT_HPP
+#include <cstring>
#include <string>
#include <stdint.h>

View file

@ -0,0 +1,12 @@
--- modules/vuln-asn1/IISDialogue.cpp.orig
+++ modules/vuln-asn1/IISDialogue.cpp
@@ -27,7 +27,8 @@
/* $Id: IISDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "IISDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-asn1/SMBDialogue.cpp.orig
+++ modules/vuln-asn1/SMBDialogue.cpp
@@ -27,7 +27,8 @@
/* $Id: SMBDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "SMBDialogue.hpp"
#include "asn1-shellcodes.h"

View file

@ -0,0 +1,12 @@
--- modules/vuln-bagle/vuln-bagle.cpp.orig
+++ modules/vuln-bagle/vuln-bagle.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-bagle.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-bagle.hpp"
#include "BagleDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-dameware/vuln-dameware.cpp.orig
+++ modules/vuln-dameware/vuln-dameware.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-dameware.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-dameware.hpp"
#include "DWDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-dcom/vuln-dcom.cpp.orig
+++ modules/vuln-dcom/vuln-dcom.cpp
@@ -28,7 +28,8 @@
/* $Id: vuln-dcom.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-dcom.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-iis/vuln-iis.cpp.orig
+++ modules/vuln-iis/vuln-iis.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-iis.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-iis.hpp"
#include "IISDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-kuang2/vuln-kuang2.cpp.orig
+++ modules/vuln-kuang2/vuln-kuang2.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-kuang2.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-kuang2.hpp"
#include "Kuang2Dialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-lsass/vuln-lsass.cpp.orig
+++ modules/vuln-lsass/vuln-lsass.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-lsass.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-lsass.hpp"
#include "LSASSDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-msdtc/vuln-msdtc.cpp.orig
+++ modules/vuln-msdtc/vuln-msdtc.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-msdtc.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-msdtc.hpp"
#include "MSDTCDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-msmq/vuln-msmq.cpp.orig
+++ modules/vuln-msmq/vuln-msmq.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-msmq.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-msmq.hpp"
#include "MSMQDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-mssql/MSSQLDialogue.cpp.orig
+++ modules/vuln-mssql/MSSQLDialogue.cpp
@@ -27,7 +27,8 @@
/* $Id: MSSQLDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "MSSQLDialogue.hpp"
#include "vuln-mssql.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-mydoom/vuln-mydoom.cpp.orig
+++ modules/vuln-mydoom/vuln-mydoom.cpp
@@ -29,7 +29,8 @@
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-mydoom.hpp"
#include "MydoomDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-netbiosname/SMBNameDialogue.cpp.orig
+++ modules/vuln-netbiosname/SMBNameDialogue.cpp
@@ -27,7 +27,8 @@
/* $Id: SMBNameDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "SMBNameDialogue.hpp"
#include "vuln-netbiosname.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-netdde/NETDDEDialogue.cpp.orig
+++ modules/vuln-netdde/NETDDEDialogue.cpp
@@ -27,7 +27,8 @@
/* $Id: NETDDEDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "NETDDEDialogue.hpp"
#include "vuln-netdde.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-optix/vuln-optix.cpp.orig
+++ modules/vuln-optix/vuln-optix.cpp
@@ -29,7 +29,8 @@
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-optix.hpp"
#include "OPTIXShellDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-pnp/vuln-pnp.cpp.orig
+++ modules/vuln-pnp/vuln-pnp.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-pnp.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-pnp.hpp"
#include "PNPDialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-sasserftpd/SasserFTPDDialogue.cpp.orig
+++ modules/vuln-sasserftpd/SasserFTPDDialogue.cpp
@@ -27,7 +27,8 @@
/* $Id: SasserFTPDDialogue.cpp 836 2007-02-06 15:16:50Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "SasserFTPDDialogue.hpp"
#include "vuln-sasserftpd.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-sub7/vuln-sub7.cpp.orig
+++ modules/vuln-sub7/vuln-sub7.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-sub7.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-sub7.hpp"
#include "SUB7Dialogue.hpp"

View file

@ -0,0 +1,12 @@
--- modules/vuln-wins/vuln-wins.cpp.orig
+++ modules/vuln-wins/vuln-wins.cpp
@@ -27,7 +27,8 @@
/* $Id: vuln-wins.cpp 550 2006-05-04 10:25:35Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
#include "vuln-wins.hpp"

View file

@ -0,0 +1,10 @@
--- modules/x-5/x-5.cpp.orig
+++ modules/x-5/x-5.cpp
@@ -27,6 +27,7 @@
/* $Id: x-5.cpp 1410 2007-10-12 13:07:23Z common $ */
+#include <cstdlib>
#include "x-5.hpp"
#include "LogManager.hpp"
#include "EventManager.hpp"

View file

@ -0,0 +1,13 @@
--- modules/x-6/x-6.cpp.orig
+++ modules/x-6/x-6.cpp
@@ -27,7 +27,9 @@
/* $Id: x-6.cpp 343 2006-02-20 17:11:57Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstdlib>
+#include <cstring>
#include "x-6.hpp"

View file

@ -0,0 +1,12 @@
--- modules/x-9/x-9.cpp.orig
+++ modules/x-9/x-9.cpp
@@ -27,7 +27,8 @@
/* $Id: x-9.cpp 658 2006-10-08 15:04:17Z common $ */
-#include <ctype.h>
+#include <cctype>
+#include <cstring>
#include "x-9.hpp"

View file

@ -0,0 +1,18 @@
--- nepenthes-core/include/Config.hpp.orig
+++ nepenthes-core/include/Config.hpp
@@ -44,12 +44,14 @@
#include <sys/stat.h>
#include <unistd.h>
// errno()
-#include <errno.h>
+#include <cerrno>
// open()
#include <fcntl.h>
#include <stdint.h>
+#include <cstring>
+
#endif
using namespace std;

View file

@ -0,0 +1,11 @@
--- nepenthes-core/include/EventHandler.hpp.orig
+++ nepenthes-core/include/EventHandler.hpp
@@ -44,6 +44,8 @@
#ifdef WIN32
#include <time.h>
#include <sys/timeb.h>
+#else
+#include <ctime>
#endif
//#include "Event.hpp"

View file

@ -0,0 +1,10 @@
--- nepenthes-core/include/Nepenthes.hpp.orig
+++ nepenthes-core/include/Nepenthes.hpp
@@ -40,6 +40,7 @@
#include <stdint.h>
#include <string>
+#include <sys/types.h>
typedef unsigned char byte;

View file

@ -0,0 +1,10 @@
--- nepenthes-core/include/SocketManager.hpp.orig
+++ nepenthes-core/include/SocketManager.hpp
@@ -32,6 +32,7 @@
#include <list>
#include <stdint.h>
+#include <ctime>
#include "Manager.hpp"

View file

@ -0,0 +1,12 @@
--- nepenthes-core/src/DNSManager.cpp.orig
+++ nepenthes-core/src/DNSManager.cpp
@@ -33,7 +33,8 @@
#include <poll.h>
#endif
-#include <errno.h>
+#include <cstring>
+#include <cerrno>
#include "DNSManager.hpp"
#include "DNSCallback.hpp"
#include "DNSResult.hpp"

View file

@ -0,0 +1,10 @@
--- nepenthes-core/src/DNSResult.cpp.orig
+++ nepenthes-core/src/DNSResult.cpp
@@ -27,6 +27,7 @@
/* $Id: DNSResult.cpp 836 2007-02-06 15:16:50Z common $ */
+#include <cstring>
#include "DNSResult.hpp"
#include "Nepenthes.hpp"
#include "LogManager.hpp"

View file

@ -0,0 +1,10 @@
--- nepenthes-core/src/Download.cpp.orig
+++ nepenthes-core/src/Download.cpp
@@ -27,6 +27,7 @@
/* $Id: Download.cpp 2099 2005-10-23 22:12:52Z common $ */
+#include <cstring>
#include "Download.hpp"
#include "DownloadUrl.hpp"
#include "DownloadBuffer.hpp"

View file

@ -0,0 +1,14 @@
--- nepenthes-core/src/DownloadBuffer.cpp.orig
+++ nepenthes-core/src/DownloadBuffer.cpp
@@ -26,8 +26,9 @@
*******************************************************************************/
-#include <stdlib.h>
-#include <errno.h>
+#include <cstdlib>
+#include <cstring>
+#include <cerrno>
#include "DownloadBuffer.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,12 @@
--- nepenthes-core/src/DownloadManager.cpp.orig
+++ nepenthes-core/src/DownloadManager.cpp
@@ -27,6 +27,9 @@
/* $Id: DownloadManager.cpp 1548 2008-02-14 11:18:18Z common $ */
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <string>
#include <sys/param.h>

View file

@ -0,0 +1,11 @@
--- nepenthes-core/src/DownloadUrl.cpp.orig
+++ nepenthes-core/src/DownloadUrl.cpp
@@ -26,6 +26,8 @@
*******************************************************************************/
/* $id */
+#include <cstdlib>
+
#ifdef WIN32
#else

View file

@ -0,0 +1,11 @@
--- nepenthes-core/src/EventManager.cpp.orig
+++ nepenthes-core/src/EventManager.cpp
@@ -27,6 +27,8 @@
/* $Id: EventManager.cpp 1410 2007-10-12 13:07:23Z common $ */
+#include <cstdlib>
+
#include "EventManager.hpp"
#include "EventHandler.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,23 @@
--- nepenthes-core/src/FileLogger.cpp.orig
+++ nepenthes-core/src/FileLogger.cpp
@@ -27,15 +27,17 @@
/* $Id: FileLogger.cpp 697 2006-11-11 09:17:19Z common $ */
-#include <time.h>
+#include <ctime>
-#include <stdio.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <errno.h>
+#include <cerrno>
#include <pwd.h>
#include <grp.h>
#include "FileLogger.hpp"

View file

@ -0,0 +1,17 @@
--- nepenthes-core/src/LogManager.cpp.orig
+++ nepenthes-core/src/LogManager.cpp
@@ -27,9 +27,11 @@
/* $Id: LogManager.cpp 836 2007-02-06 15:16:50Z common $ */
-#include <stdarg.h>
-#include <assert.h>
-#include <stdio.h>
+#include <cstdarg>
+#include <cassert>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include "LogManager.hpp"
#include "LogHandlerEntry.hpp"
#include "LogHandler.hpp"

View file

@ -0,0 +1,11 @@
--- nepenthes-core/src/ModuleManager.cpp.orig
+++ nepenthes-core/src/ModuleManager.cpp
@@ -27,6 +27,8 @@
/* $Id: ModuleManager.cpp 612 2006-08-10 15:31:56Z common $ */
+#include <cstdio>
+#include <cstdlib>
#include <dlfcn.h>
#include "ModuleManager.hpp"

View file

@ -0,0 +1,25 @@
--- nepenthes-core/src/Nepenthes.cpp.orig
+++ nepenthes-core/src/Nepenthes.cpp
@@ -35,16 +35,17 @@
#include <getopt.h>
#endif /* WIN32 */
-#include <stdio.h>
-#include <signal.h>
+#include <cstdio>
+#include <cstdlib>
+#include <csignal>
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
#include <dirent.h>
#include <sys/utsname.h>
-#include <ctype.h>
-#include <errno.h>
-#include <string.h>
+#include <cctype>
+#include <cerrno>
+#include <cstring>
#ifdef HAVE_LIBCAP
#undef _POSIX_SOURCE

View file

@ -0,0 +1,26 @@
--- nepenthes-core/src/RingFileLogger.cpp.orig
+++ nepenthes-core/src/RingFileLogger.cpp
@@ -27,18 +27,16 @@
/* $Id: RingFileLogger.cpp 697 2006-11-11 09:17:19Z common $ */
-#include <time.h>
+#include <ctime>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <stdio.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <string>
-#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <errno.h>
+#include <cerrno>
#include <pwd.h>
#include <grp.h>

View file

@ -0,0 +1,10 @@
--- nepenthes-core/src/ShellcodeManager.cpp.orig
+++ nepenthes-core/src/ShellcodeManager.cpp
@@ -27,6 +27,7 @@
/* $Id: ShellcodeManager.cpp 505 2006-04-09 16:39:36Z oxff $ */
+#include <cstdio>
#include "ShellcodeManager.hpp"
#include "ShellcodeHandler.hpp"
#include "Nepenthes.hpp"

View file

@ -0,0 +1,17 @@
--- nepenthes-core/src/Socket.cpp.orig
+++ nepenthes-core/src/Socket.cpp
@@ -27,10 +27,13 @@
/* $Id: Socket.cpp 699 2006-11-11 09:20:15Z common $ */
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <string>
#include <sstream>
-#include <time.h>
+#include <ctime>
#include <sys/types.h>
#include <sys/socket.h>

View file

@ -0,0 +1,12 @@
--- nepenthes-core/src/SocketManager.cpp.orig
+++ nepenthes-core/src/SocketManager.cpp
@@ -36,7 +36,8 @@
#include <poll.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <errno.h>
+#include <cstdlib>
+#include <cerrno>
#include <netinet/in.h>
#include <net/if.h>
#include <arpa/inet.h>

View file

@ -0,0 +1,10 @@
--- nepenthes-core/src/TCPSocket.cpp.orig
+++ nepenthes-core/src/TCPSocket.cpp
@@ -29,6 +29,7 @@
#include "config.h"
+#include <cstring>
#include <sys/types.h>
#ifdef WIN32

View file

@ -0,0 +1,12 @@
--- nepenthes-core/src/UDPSocket.cpp.orig
+++ nepenthes-core/src/UDPSocket.cpp
@@ -27,7 +27,8 @@
/* $Id: UDPSocket.cpp 1410 2007-10-12 13:07:23Z common $ */
-#include <errno.h>
+#include <cstring>
+#include <cerrno>
#include <sys/types.h>
#ifdef WIN32

View file

@ -0,0 +1,17 @@
--- nepenthes-core/src/Utilities.cpp.orig
+++ nepenthes-core/src/Utilities.cpp
@@ -33,10 +33,12 @@
#endif
-#include <string.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
#include <sys/types.h>
#include <inttypes.h>
-#include <ctype.h>
+#include <cctype>
#include "Utilities.hpp"
#include "LogManager.hpp"

View file

@ -0,0 +1,46 @@
#!/bin/sh
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
if cmp -s ${PKG_PREFIX}/share/nepenthes/signatures/shellcode-signatures.sc \
/var/cache/nepenthes/signatures/shellcode-signatures.sc; then
rm -f /var/cache/nepenthes/signatures/shellcode-signatures.sc
fi
if [ -d /var/spool/nepenthes/submitpostgres ]; then
rmdir /var/spool/nepenthes/submitpostgres 2>/dev/null || true
fi
if [ -d /var/spool/nepenthes/gotek ]; then
rmdir /var/spool/nepenthes/gotek 2>/dev/null || true
fi
if [ -d /var/spool/nepenthes ]; then
rmdir /var/spool/nepenthes 2>/dev/null || true
fi
if [ -d /var/log/pcap ]; then
rmdir /var/log/pcap 2>/dev/null || true
fi
if [ -d /var/hexdumps ]; then
rmdir /var/hexdumps 2>/dev/null || true
fi
if [ -d /var/cache/nepenthes/signatures ]; then
rmdir /var/cache/nepenthes/signatures 2>/dev/null || true
fi
if [ -d /var/cache/nepenthes/pcap ]; then
rmdir /var/cache/nepenthes/pcap 2>/dev/null || true
fi
if [ -d /var/cache/nepenthes ]; then
rmdir /var/cache/nepenthes 2>/dev/null || true
fi
if [ -d /var/binaries ]; then
rmdir /var/binaries 2>/dev/null || true
fi

View file

@ -1,6 +1,6 @@
Nepenthes can determine the malware activity on a network
by deploying a nepenthes sensor (i.e. honey pot). The programm
emulates different well known vulnerabilities waiting for
malicious connections trying to exploit them.
Nepenthes can determine the malware activity on a network by deploying
a nepenthes sensor (i.e. honey pot). The programm emulates different
well known vulnerabilities waiting for malicious connections trying to
exploit them.
WWW: http://nepenthes.sourceforge.net/
WWW: http://nepenthes.carnivore.it/

46
net/nepenthes/pkg-install Normal file
View file

@ -0,0 +1,46 @@
#!/bin/sh
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
if [ ! -d /var/binaries ]; then
install -d /var/binaries
fi
if [ ! -d /var/cache/nepenthes ]; then
install -d /var/cache/nepenthes
fi
if [ ! -d /var/cache/nepenthes/pcap ]; then
install -d /var/cache/nepenthes/pcap
fi
if [ ! -d /var/cache/nepenthes/signatures ]; then
install -d /var/cache/nepenthes/signatures
fi
if [ ! -d /var/hexdumps ]; then
install -d /var/hexdumps
fi
if [ ! -d /var/log/pcap ]; then
install -d /var/log/pcap
fi
if [ ! -d /var/binaries ]; then
install -d /var/spool/nepenthes
fi
if [ ! -d /var/binaries ]; then
install -d /var/spool/nepenthes/gotek
fi
if [ ! -d /var/binaries ]; then
install -d /var/spool/nepenthes/submitpostgres
fi
if [ ! -f /var/cache/nepenthes/signatures/shellcode-signatures.sc ]; then
install -c ${PKG_PREFIX}/share/nepenthes/signatures/shellcode-signatures.sc \
/var/cache/nepenthes/signatures
fi

View file

@ -1,226 +1,170 @@
bin/nepenthes
etc/nepenthes/download-csend.conf
etc/nepenthes/download-curl.conf
etc/nepenthes/download-ftp.conf
etc/nepenthes/download-link.conf
etc/nepenthes/download-tftp.conf
etc/nepenthes/log-download.conf
etc/nepenthes/log-irc.conf
etc/nepenthes/log-prelude.conf
etc/nepenthes/log-surfnet.conf
etc/nepenthes/module-honeytrap.conf
etc/nepenthes/module-portwatch.conf
etc/nepenthes/nepenthes.conf
etc/nepenthes/nepenthes.conf.dist
etc/nepenthes/shellcode-generic.conf
etc/nepenthes/submit-file.conf
etc/nepenthes/submit-gotek.conf
etc/nepenthes/submit-http.conf
etc/nepenthes/submit-mwserv.conf
etc/nepenthes/submit-postgres.conf
etc/nepenthes/submit-norman.conf
etc/nepenthes/vuln-asn1.conf
etc/nepenthes/vuln-bagle.conf
etc/nepenthes/vuln-dameware.conf
etc/nepenthes/vuln-dcom.conf
etc/nepenthes/vuln-ftpd.conf
etc/nepenthes/vuln-iis.conf
etc/nepenthes/vuln-kuang2.conf
etc/nepenthes/vuln-lsass.conf
etc/nepenthes/vuln-msdtc.conf
etc/nepenthes/vuln-msmq.conf
etc/nepenthes/vuln-mssql.conf
etc/nepenthes/vuln-mydoom.conf
etc/nepenthes/vuln-netbiosname.conf
etc/nepenthes/vuln-netdde.conf
etc/nepenthes/vuln-optix.conf
etc/nepenthes/vuln-pnp.conf
etc/nepenthes/vuln-sasserftpd.conf
etc/nepenthes/vuln-sub7.conf
etc/nepenthes/vuln-upnp.conf
etc/nepenthes/vuln-veritas.conf
etc/nepenthes/vuln-wins.conf
etc/nepenthes/x-2.conf
%%ETCDIR%%/download-csend.conf
%%ETCDIR%%/download-curl.conf
%%ETCDIR%%/download-ftp.conf
%%ETCDIR%%/download-link.conf
%%ETCDIR%%/download-tftp.conf
%%ETCDIR%%/log-download.conf
%%ETCDIR%%/log-irc.conf
%%ETCDIR%%/log-prelude.conf
%%ETCDIR%%/log-surfnet.conf
%%ETCDIR%%/module-honeytrap.conf
%%ETCDIR%%/module-portwatch.conf
%%ETCDIR%%/nepenthes.conf
%%ETCDIR%%/nepenthes.conf.dist
%%ETCDIR%%/shellcode-generic.conf
%%ETCDIR%%/submit-file.conf
%%ETCDIR%%/submit-gotek.conf
%%ETCDIR%%/submit-http.conf
%%ETCDIR%%/submit-mwserv.conf
%%ETCDIR%%/submit-norman.conf
%%ETCDIR%%/submit-postgres.conf
%%ETCDIR%%/vuln-asn1.conf
%%ETCDIR%%/vuln-bagle.conf
%%ETCDIR%%/vuln-dameware.conf
%%ETCDIR%%/vuln-dcom.conf
%%ETCDIR%%/vuln-ftpd.conf
%%ETCDIR%%/vuln-iis.conf
%%ETCDIR%%/vuln-kuang2.conf
%%ETCDIR%%/vuln-lsass.conf
%%ETCDIR%%/vuln-msdtc.conf
%%ETCDIR%%/vuln-msmq.conf
%%ETCDIR%%/vuln-mssql.conf
%%ETCDIR%%/vuln-mydoom.conf
%%ETCDIR%%/vuln-netbiosname.conf
%%ETCDIR%%/vuln-netdde.conf
%%ETCDIR%%/vuln-optix.conf
%%ETCDIR%%/vuln-pnp.conf
%%ETCDIR%%/vuln-sasserftpd.conf
%%ETCDIR%%/vuln-sub7.conf
%%ETCDIR%%/vuln-upnp.conf
%%ETCDIR%%/vuln-veritas.conf
%%ETCDIR%%/vuln-wins.conf
%%ETCDIR%%/x-2.conf
lib/nepenthes/dnsresolveadns.a
lib/nepenthes/dnsresolveadns.la
lib/nepenthes/dnsresolveadns.so
lib/nepenthes/downloadcreceive.a
lib/nepenthes/downloadcreceive.la
lib/nepenthes/downloadcreceive.so
lib/nepenthes/downloadcsend.a
lib/nepenthes/downloadcsend.la
lib/nepenthes/downloadcsend.so
lib/nepenthes/downloadcurl.a
lib/nepenthes/downloadcurl.la
lib/nepenthes/downloadcurl.so
lib/nepenthes/downloadftp.a
lib/nepenthes/downloadftp.la
lib/nepenthes/downloadftp.so
lib/nepenthes/downloadhttp.a
lib/nepenthes/downloadhttp.la
lib/nepenthes/downloadhttp.so
lib/nepenthes/downloadlink.a
lib/nepenthes/downloadlink.la
lib/nepenthes/downloadlink.so
lib/nepenthes/downloadrcp.a
lib/nepenthes/downloadrcp.la
lib/nepenthes/downloadrcp.so
lib/nepenthes/downloadtftp.a
lib/nepenthes/downloadtftp.la
lib/nepenthes/downloadtftp.so
lib/nepenthes/logdownload.a
lib/nepenthes/logdownload.la
lib/nepenthes/logdownload.so
lib/nepenthes/loghexdump.a
lib/nepenthes/loghexdump.la
lib/nepenthes/loghexdump.so
lib/nepenthes/logirc.a
lib/nepenthes/logirc.la
lib/nepenthes/logirc.so
lib/nepenthes/logprelude.a
lib/nepenthes/logprelude.la
lib/nepenthes/logprelude.so
lib/nepenthes/logsurfnet.a
lib/nepenthes/logsurfnet.la
lib/nepenthes/logsurfnet.so
lib/nepenthes/modulebridge.a
lib/nepenthes/modulebridge.la
lib/nepenthes/modulebridge.so
lib/nepenthes/modulehoneytrap.a
lib/nepenthes/modulehoneytrap.la
lib/nepenthes/modulehoneytrap.so
lib/nepenthes/modulepeiros.a
lib/nepenthes/modulepeiros.la
lib/nepenthes/modulepeiros.so
lib/nepenthes/moduleportwatch.a
lib/nepenthes/moduleportwatch.la
lib/nepenthes/moduleportwatch.so
lib/nepenthes/shellcodegeneric.a
lib/nepenthes/shellcodegeneric.la
lib/nepenthes/shellcodegeneric.so
lib/nepenthes/shellcodesignatures.a
lib/nepenthes/shellcodesignatures.la
lib/nepenthes/shellcodesignatures.so
lib/nepenthes/shellemuwinnt.a
lib/nepenthes/shellemuwinnt.la
lib/nepenthes/shellemuwinnt.so
lib/nepenthes/sqlhandlerpostgres.a
lib/nepenthes/sqlhandlerpostgres.la
lib/nepenthes/sqlhandlerpostgres.so
lib/nepenthes/submitfile.a
lib/nepenthes/submitfile.la
lib/nepenthes/submitfile.so
lib/nepenthes/submitgotek.a
lib/nepenthes/submitgotek.la
lib/nepenthes/submitgotek.so
lib/nepenthes/submithttp.a
lib/nepenthes/submithttp.la
lib/nepenthes/submithttp.so
lib/nepenthes/submitmwserv.a
lib/nepenthes/submitmwserv.la
lib/nepenthes/submitmwserv.so
lib/nepenthes/submitnorman.a
lib/nepenthes/submitnorman.la
lib/nepenthes/submitnorman.so
lib/nepenthes/submitpostgres.a
lib/nepenthes/submitpostgres.la
lib/nepenthes/submitpostgres.so
lib/nepenthes/vulnasn1.a
lib/nepenthes/vulnasn1.la
lib/nepenthes/vulnasn1.so
lib/nepenthes/vulnbagle.a
lib/nepenthes/vulnbagle.la
lib/nepenthes/vulnbagle.so
lib/nepenthes/vulndameware.a
lib/nepenthes/vulndameware.la
lib/nepenthes/vulndameware.so
lib/nepenthes/vulndcom.a
lib/nepenthes/vulndcom.la
lib/nepenthes/vulndcom.so
lib/nepenthes/vulnftpd.a
lib/nepenthes/vulnftpd.la
lib/nepenthes/vulnftpd.so
lib/nepenthes/vulniis.a
lib/nepenthes/vulniis.la
lib/nepenthes/vulniis.so
lib/nepenthes/vulnkuang2.a
lib/nepenthes/vulnkuang2.la
lib/nepenthes/vulnkuang2.so
lib/nepenthes/vulnlsass.a
lib/nepenthes/vulnlsass.la
lib/nepenthes/vulnlsass.so
lib/nepenthes/vulnmsdtc.a
lib/nepenthes/vulnmsdtc.la
lib/nepenthes/vulnmsdtc.so
lib/nepenthes/vulnmsmq.a
lib/nepenthes/vulnmsmq.la
lib/nepenthes/vulnmsmq.so
lib/nepenthes/vulnmssql.a
lib/nepenthes/vulnmssql.la
lib/nepenthes/vulnmssql.so
lib/nepenthes/vulnmydoom.a
lib/nepenthes/vulnmydoom.la
lib/nepenthes/vulnmydoom.so
lib/nepenthes/vulnnetbiosname.a
lib/nepenthes/vulnnetbiosname.la
lib/nepenthes/vulnnetbiosname.so
lib/nepenthes/vulnnetdde.a
lib/nepenthes/vulnnetdde.la
lib/nepenthes/vulnnetdde.so
lib/nepenthes/vulnoptix.a
lib/nepenthes/vulnoptix.la
lib/nepenthes/vulnoptix.so
lib/nepenthes/vulnpnp.a
lib/nepenthes/vulnpnp.la
lib/nepenthes/vulnpnp.so
lib/nepenthes/vulnrealvnc.a
lib/nepenthes/vulnrealvnc.la
lib/nepenthes/vulnrealvnc.so
lib/nepenthes/vulnsasserftpd.a
lib/nepenthes/vulnsasserftpd.la
lib/nepenthes/vulnsasserftpd.so
lib/nepenthes/vulnsav.a
lib/nepenthes/vulnsav.la
lib/nepenthes/vulnsav.so
lib/nepenthes/vulnssh.a
lib/nepenthes/vulnssh.la
lib/nepenthes/vulnssh.so
lib/nepenthes/vulnsub7.a
lib/nepenthes/vulnsub7.la
lib/nepenthes/vulnsub7.so
lib/nepenthes/vulnupnp.a
lib/nepenthes/vulnupnp.la
lib/nepenthes/vulnupnp.so
lib/nepenthes/vulnveritas.a
lib/nepenthes/vulnveritas.la
lib/nepenthes/vulnveritas.so
lib/nepenthes/vulnwins.a
lib/nepenthes/vulnwins.la
lib/nepenthes/vulnwins.so
lib/nepenthes/x1.a
lib/nepenthes/x1.la
lib/nepenthes/x1.so
lib/nepenthes/x2.a
lib/nepenthes/x2.la
lib/nepenthes/x2.so
lib/nepenthes/x3.a
lib/nepenthes/x3.la
lib/nepenthes/x3.so
lib/nepenthes/x4.a
lib/nepenthes/x4.la
lib/nepenthes/x4.so
lib/nepenthes/x5.a
lib/nepenthes/x5.la
lib/nepenthes/x5.so
lib/nepenthes/x6.a
lib/nepenthes/x6.la
lib/nepenthes/x6.so
lib/nepenthes/x9.a
lib/nepenthes/x9.la
lib/nepenthes/x9.so
man/man8/nepenthes.8.gz
%%DATADIR%%/README
%%DATADIR%%/README.VFS
%%DATADIR%%/logo-shaded.svg
@dirrm etc/nepenthes
@dirrm lib/nepenthes
%%DATADIR%%/signatures/shellcode-signatures.sc
@dirrm %%DATADIR%%/signatures
@dirrm %%DATADIR%%
@dirrm lib/nepenthes
@dirrm %%ETCDIR%%