diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/dsniff |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/dsniff')
-rw-r--r-- | net-analyzer/dsniff/Manifest | 15 | ||||
-rw-r--r-- | net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild | 57 | ||||
-rw-r--r-- | net-analyzer/dsniff/dsniff-2.4_beta1-r7.ebuild | 68 | ||||
-rw-r--r-- | net-analyzer/dsniff/dsniff-2.4_beta1-r9.ebuild | 86 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.3-makefile.patch | 29 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.4_beta1-httppostfix.patch | 20 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.4_beta1-libtirpc.patch | 22 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.4_beta1-macof-size-calculation.patch | 11 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.4_beta1-make.patch | 62 | ||||
-rw-r--r-- | net-analyzer/dsniff/files/2.4_beta1-urlsnarf-pcap_timestamps.patch | 15 | ||||
-rw-r--r-- | net-analyzer/dsniff/metadata.xml | 17 |
11 files changed, 402 insertions, 0 deletions
diff --git a/net-analyzer/dsniff/Manifest b/net-analyzer/dsniff/Manifest new file mode 100644 index 000000000000..f75bad73d183 --- /dev/null +++ b/net-analyzer/dsniff/Manifest @@ -0,0 +1,15 @@ +AUX 2.3-makefile.patch 1530 SHA256 e9a8f061a87d07be0ce8958c5695d1bfc05cd5f0f4f55df080c3de752372315c SHA512 4f5721b34f5df8b2c3553ed7fbaab3ecb05763a7124f00f0c5f77afbd542e0eaaf1cd951c566b63ea9fa910521ffb9d1c7516c681175100125a16197f0beb846 WHIRLPOOL bc95f5e36b96f1c0952ab3510b304123d9a1f1763fc61c0dd0f3bbd2e9ed8842ffed6fd4d3b9ff2aac3970ee1833971fbc092c4e6c16d4466fc04f8e3d54fb96 +AUX 2.4_beta1-httppostfix.patch 674 SHA256 3efd6ca2267540016e843af3e8d7720d888fd17a73cba410e2c68022fd3a7baf SHA512 2d47d4efa576203240d94b739cafb982833d52673f42b381cc109e7b44acbf173528a4c5d4dfa1b9b95a21c9e9296db5016946e0b5202f4fcbc67e28152c1068 WHIRLPOOL 865ce69d1774a6a5fcb5f7e3c475e676fe9559fc8dd8a45190d0433b1a573061abb387a41a46a977e63a68c1b66936872e4d32204cd405a4dde777c82559ff32 +AUX 2.4_beta1-libtirpc.patch 590 SHA256 5d6290105d2211279653b274dd574db41107bfe6da6eaed4fa10eb3d0890050b SHA512 c794ba7d43d7fac77a4d427f164efed1514a9caf93af8c11d6e094448b8b5c26be2d3da85e3ad62611a4bf337a3cca68ba27d3813c51d0692e9a793788c31f9d WHIRLPOOL 72ad69a7f1cbf6d3084e7f12c8fb8d4cdea831af9d0c0a6e57e502ec59b4a43145b22a59441962b1db929ad1a44aeeef4443e6d873ceac9bf79fbfd397e5ef9c +AUX 2.4_beta1-macof-size-calculation.patch 369 SHA256 d8f5cc5d14a614410a84a8eaba5a4212ee03466c4fe2fd4a634f5d7c3f688ec7 SHA512 070695aae4a0374f6d073e71f4e9362387b3b6a444058c9371564779b22c2218f32e830c7a1e39879860e956f8c826199ba90a0cb67423379358c1d0dd857ff1 WHIRLPOOL fe7ff614884d0cddd01288ff9abf8beca4076b6e11c6c62ec06073c79686aa226866196a3f75259051d9b19d4f1aa45238b4e99eaafd0cbedc36f6aee337c61f +AUX 2.4_beta1-make.patch 2158 SHA256 6cf844425aba6884875c0f8b9031b867f6b36e2636a29624115ad56fd0e34cea SHA512 348ef5c4d62efb9f204c67275e3b3d09d32cdd89575b758df1e37d103d6fd7ea9185755389c297b5f8fc545537e3203d488d8f8fb1e38bc6abdd74047b720c5b WHIRLPOOL 7dcf294e796482cdb3b9466c56ca2e4097e7fa1c0181cdca0855c1991e29f022db54545f0e3262237477ca755c9b8cc99c41c30c8b95c401ddc622d316810cb1 +AUX 2.4_beta1-urlsnarf-pcap_timestamps.patch 463 SHA256 07b039f56512e7f78d751ba7bf3f48f62dd2db64d5794ead3a597b7c26dc75e5 SHA512 57a7e9e50b76ae260617f3c66036de41329c744ac1f08d70993a2bf724e22828320107776ca726b3c0bf20d921134368087dedeae19f287770cee6dca7d6e3e1 WHIRLPOOL d3b42bf1786bbb1eb605e13d08c7b405a6fffaeb7927e062eabbb65e0b81a5b3e26ef790dff589bc45d98c72c3b7b91525f2694e776e64c21b81e23202dfc362 +DIST dsniff-2.4b1.tar.gz 131666 SHA256 a9803a7a02ddfe5fb9704ce86f0ffc48453c321e88db85810db411ba0841152a SHA512 62dafab293de6dc3e9b01561b3627d63ca334467c01c3550a6318d8bcbe99d5a301ec16967af34065a14e8bca1c4b6a41da766cbd51ebd8338615b950c4f642f WHIRLPOOL 10e5187314fe63058a015a3bef159e21a1ff7e0080ea72c8f804621d2b6254b6c05aa7fe2952bec568641a4a8d93eedf5f5407f127ee3464f73931bfe865d100 +DIST dsniff_2.4b1+debian-18.diff.gz 44819 SHA256 a65142b8d2206d3eae5db35d9972f8eac1110d45893d7f2182ca240ecd9b9d25 SHA512 9f219dfa7fd68399126cd2b373a7054168638606c03e8297af46a89c242f81e45f99857922e6782cab608b8cafab528bcfaeb37acd3cca85f5b4a8efd91e71d5 WHIRLPOOL 9c6ab2938e139ea5b43319000297d6bdfdd4ab234058baeccc7eccbee0f5a7a5824860b4397421402e1ff1cd5c446ef1d17de6ce7b5ec9244e5770662b2c6f9a +DIST dsniff_2.4b1+debian-22.1.debian.tar.gz 29657 SHA256 28ddb8514c6a7a17f51f428b6fada299baf5a3efa153f77f081ac6c1e6466633 SHA512 11c6a3c04b5a8b3afb78901003132186964e88019011bea69b43a000c31d23f15c1a1c343c2ad1b03bf0a09664aebfa6f99e335fdfa1496bb020db6541eab6e3 WHIRLPOOL a1236e7452e3442a1ac0d7a6bbf71d0d0ef22bf508aa47838d220ed18e8c16aba4a822a343c9922de71f6f77c6b10d58d6a56a631488e71ca3307d9a9132bee5 +EBUILD dsniff-2.4_beta1-r4.ebuild 1418 SHA256 6f2be728d1ccf0d264f8200d4788164ad3c98250f2c01547c425530c809da9e8 SHA512 6dfbc3a94e4c9361dcb5875097c15547b61d8754f282b9b71c223be033712c8d2e0fe83ebf45017ad00c26f2646320077c7c102053f452ca5f60e0297cadcb32 WHIRLPOOL c159b0bdbad69a2c39b7b89b411b9ab5c91e3cb1221540db38bafbc28af5d3c1e004e08f8e14f7a0fd6e660cf4acb1720af9e964731a109ff61bc68af5e66fe9 +EBUILD dsniff-2.4_beta1-r7.ebuild 1563 SHA256 04463768252b73f95efc74cdd16fc3f9ac5beab7a89d3bfe1916bf5809c2d229 SHA512 941d3954e19d99513298fc8c18a2c9bc257efb2611311aeb1d0e9a079c4e2f4439f95389e8e3f103e97a7c8dc87860c1b45b29c6a43f579ce7a001a0c4d4e8fe WHIRLPOOL 7f03b13b750c56c34056f7e6db18989832e286c87264e82f0ca205553aafe9d2c4665222dbdee908b18509a8d62145b77118d84f6ab33d8e31bf1f8cf6037bf8 +EBUILD dsniff-2.4_beta1-r9.ebuild 2081 SHA256 ba254584367b6b98512ba944a42116a1bcf2e0fd08b63dfe1113ba195ad7cb80 SHA512 88e1f8daa373ab4296d06e71a5a4471cca2c3494d9ee8891ffbc560a157538b98e183ea29c68547ad18b01a930c54957996409deb90e78c1164d5e5ce2d9fc4d WHIRLPOOL 31c3ca5b9081d9ab87075b0a86388eda90da82d2c06e1897658799114d0caa9fcd64f5fe48c82295a0bc3b0c7636f7321397b65622a1cbbeaf8635bf9a0be8c5 +MISC ChangeLog 2938 SHA256 dbc1f35f443ea04b4aff8f41a60a1b9bf0f3a237549c6e9072b8e4ab9f0f5653 SHA512 32c55a03208d65419ec1ad3f6b1e7fe1fe7b08ee572b439a6b5af3be10798dd4a57f61447f1275b7b4932a8d7016f58967d6df12c8c78a70822dfe58bb1f8855 WHIRLPOOL 693cb97d79994e798e6971dce933b01465a57ac400e57a10e6d68a3ee133ff169c042c1093b3b1678ca0d07263fa616598d79204399018410ef3ac8b37d98f2a +MISC ChangeLog-2015 8971 SHA256 8d8d46117d34223bac70fc28cc20c3402e31382a5bb3713ddfa608cd3bd735c2 SHA512 88c9f799b54e3a79df52416b92680ff4d37fb5aed78ab6685d56833f38310114ac3cac258906be27879548511baa2cfb499ca87883bed1e2c82a02ecb10b4cee WHIRLPOOL ba0b863a14424c111fe20438bd9d4558bb1eb7e935248cb7145aff24237f3516a5b19ff2d30d50db680423a2a2a43097a4ce50a8e9e4858057f5ad63154875cc +MISC metadata.xml 832 SHA256 9ccfd52757644e218266ff90b4ea9ab35203531bbc36f44ab67f214bc5ca448a SHA512 0209f1adfd521cabc7b37a69d3ba8842a8d612487cb414d7aa16eccf461e78c4ab96c1387606badb896acd6a7a495697c30773c8eb5c74e949e22910212a9d44 WHIRLPOOL 5cf73605832e04c08442d3f4b990074403dffead964cc3f70325583ca6bdec171da125a0fe6613e83f49fc5d244287f58996f43b8fc8ae4c60d496fd093a2c4f diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild new file mode 100644 index 000000000000..88d59bffe3fa --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1-r4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit autotools eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="http://monkey.org/~dugsong/dsniff/" +SRC_URI="http://monkey.org/~dugsong/${PN}/beta/${P/_beta/b}.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_2.4b1+debian-18.diff.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="X" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + >=dev-libs/openssl-0.9.6e + >=sys-libs/db-4.2.52_p4 + sys-apps/sed + X? ( x11-libs/libXmu )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P/_beta1/}" + +src_unpack() { + unpack ${A} + cd "${S}" + + # Debian's patchset + epatch "${DISTDIR}"/${PN}_2.4b1+debian-18.diff.gz + epatch "${S}"/dsniff-2.4b1+debian/debian/patches/*.dpatch + + sed -i 's:-DDSNIFF_LIBDIR=\\\"$(libdir)/\\\"::' Makefile.in || die "sed makefile" + epatch "${FILESDIR}"/2.3-makefile.patch + + # Bug 125084 + epatch "${FILESDIR}"/${PV}-httppostfix.patch + + eautoreconf +} + +src_compile() { + econf \ + $(use_with X x) \ + || die "econf failed" + emake CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + emake install install_prefix="${D}" || die "emake install failed" + dodir /etc/dsniff + cp "${D}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${D}"/etc/dsniff/ + dodoc CHANGES README TODO +} diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1-r7.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1-r7.ebuild new file mode 100644 index 000000000000..076b0aa2199e --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1-r7.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="http://monkey.org/~dugsong/dsniff/" +SRC_URI=" + http://monkey.org/~dugsong/${PN}/beta/${P/_beta/b}.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_2.4b1+debian-22.1.debian.tar.gz +" +LICENSE="BSD" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="libressl X" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + >=sys-libs/db-4:* + X? ( x11-libs/libXmu )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P/_beta1/}" + +src_prepare() { + # Debian patchset, needs to be applied in the exact order that "series" + # lists or patching will fail. + # Bug #479882 + epatch $( + for file in $(< "${WORKDIR}"/debian/patches/series ); do + printf "%s/debian/patches/%s " "${WORKDIR}" "${file}" + done + ) + + # Bug 125084 + epatch "${FILESDIR}"/${PV}-httppostfix.patch + + # various Makefile.in patches + epatch "${FILESDIR}"/${PV}-make.patch + + # bug #538462 + epatch "${FILESDIR}"/${PV}-macof-size-calculation.patch + + eautoreconf +} + +src_configure() { + econf \ + $(use_with X x) \ + || die "econf failed" +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake install install_prefix="${D}" + dodir /etc/dsniff + cp "${D}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${D}"/etc/dsniff/ + dodoc CHANGES README TODO +} diff --git a/net-analyzer/dsniff/dsniff-2.4_beta1-r9.ebuild b/net-analyzer/dsniff/dsniff-2.4_beta1-r9.ebuild new file mode 100644 index 000000000000..0ea1f57476ba --- /dev/null +++ b/net-analyzer/dsniff/dsniff-2.4_beta1-r9.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils flag-o-matic toolchain-funcs + +DESCRIPTION="A collection of tools for network auditing and penetration testing" +HOMEPAGE="http://monkey.org/~dugsong/dsniff/" +SRC_URI=" + http://monkey.org/~dugsong/${PN}/beta/${P/_beta/b}.tar.gz + mirror://debian/pool/main/d/${PN}/${PN}_2.4b1+debian-22.1.debian.tar.gz +" +LICENSE="BSD" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="libressl X" + +DEPEND="net-libs/libpcap + >=net-libs/libnet-1.1.2.1-r1 + >=net-libs/libnids-1.21 + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + >=sys-libs/db-4:* + || ( <sys-libs/glibc-2.26[rpc] + ( + >=sys-libs/glibc-2.26 + net-libs/rpcsvc-proto + net-libs/libtirpc + net-libs/libnsl + ) + ) + X? ( x11-libs/libXmu )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P/_beta1/}" + +src_prepare() { + # replace Debian patch 23 with a simpler one (bug #506076) + mv -v \ + "${WORKDIR}"/debian/patches/23_urlsnarf_timestamp.patch{,.old} || die + cp -v \ + "${FILESDIR}"/${PV}-urlsnarf-pcap_timestamps.patch \ + "${WORKDIR}"/debian/patches/23_urlsnarf_timestamp.patch || die + + # Debian patchset, needs to be applied in the exact order that "series" + # lists or patching will fail. + # Bug #479882 + epatch $( + for file in $(< "${WORKDIR}"/debian/patches/series ); do + printf "%s/debian/patches/%s " "${WORKDIR}" "${file}" + done + ) + + # Bug 125084 + epatch "${FILESDIR}"/${PV}-httppostfix.patch + + # various Makefile.in patches + epatch "${FILESDIR}"/${PV}-make.patch + + # bug #538462 + epatch "${FILESDIR}"/${PV}-macof-size-calculation.patch + + # allow building against libtirpc, needed for glibc-2.26, bug 381391 + epatch "${FILESDIR}"/${PV}-libtirpc.patch + + eautoreconf +} + +src_configure() { + econf \ + $(use_with X x) \ + || die "econf failed" +} + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + emake install install_prefix="${D}" + dodir /etc/dsniff + cp "${D}"/usr/share/dsniff/{dnsspoof.hosts,dsniff.{magic,services}} \ + "${D}"/etc/dsniff/ + dodoc CHANGES README TODO +} diff --git a/net-analyzer/dsniff/files/2.3-makefile.patch b/net-analyzer/dsniff/files/2.3-makefile.patch new file mode 100644 index 000000000000..6225ec2f4473 --- /dev/null +++ b/net-analyzer/dsniff/files/2.3-makefile.patch @@ -0,0 +1,29 @@ +--- a/Makefile.in 2003-08-25 18:07:17.000000000 +1200 ++++ b/Makefile.in 2003-08-25 18:29:13.000000000 +1200 +@@ -94,7 +94,7 @@ + $(RANLIB) $@ + + dsniff: $(HDRS) $(SRCS) $(OBJS) +- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(DBLIB) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(SSLLIB) + + arpspoof: arpspoof.o arp.o + $(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB) +@@ -115,7 +115,7 @@ + $(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) + + sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o +- $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB) + + tcpkill: tcpkill.o pcaputil.o + $(CC) $(LDFLAGS) -o $@ tcpkill.o pcaputil.o $(LIBS) $(PCAPLIB) $(LNETLIB) +@@ -130,7 +130,7 @@ + $(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) + + webmitm: webmitm.o base64.o buf.o decode_http.o record.o +- $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB) + + webspy: webspy.o base64.o buf.o remote.o + $(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB) diff --git a/net-analyzer/dsniff/files/2.4_beta1-httppostfix.patch b/net-analyzer/dsniff/files/2.4_beta1-httppostfix.patch new file mode 100644 index 000000000000..62c9a90fe8e3 --- /dev/null +++ b/net-analyzer/dsniff/files/2.4_beta1-httppostfix.patch @@ -0,0 +1,20 @@ +--- a/decode_http.c 2000-12-19 07:38:05.000000000 +0800 ++++ b/decode_http.c 2006-03-05 22:32:14.000000000 +0800 +@@ -139,14 +139,14 @@ + host = p; + } + else if (req[0] == 'P') { +- if (strncmp(p, "Content-type: ", 14) == 0) { +- if (strncmp(p + 14, "application/" ++ if (strncasecmp(p, "Content-type: ", 14) == 0) { ++ if (strncasecmp(p + 14, "application/" + "x-www-form-urlencoded", + 33) != 0) { + query = NULL; + } + } +- else if (strncmp(p, "Content-length: ", 16) == 0) { ++ else if (strncasecmp(p, "Content-length: ", 16) == 0) { + p += 16; + i = atoi(p); + if ((msg = buf_tok(&inbuf, NULL, i)) == NULL) diff --git a/net-analyzer/dsniff/files/2.4_beta1-libtirpc.patch b/net-analyzer/dsniff/files/2.4_beta1-libtirpc.patch new file mode 100644 index 000000000000..00c271ab9f93 --- /dev/null +++ b/net-analyzer/dsniff/files/2.4_beta1-libtirpc.patch @@ -0,0 +1,22 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -37,8 +37,8 @@ + X11INC = @X_CFLAGS@ + X11LIB = @X_LIBS@ @X_PRE_LIBS@ -lXmu -lX11 @X_EXTRA_LIBS@ + +-INCS = -I. $(X11INC) -I$(srcdir)/missing +-LIBS = @LIBS@ -L$(srcdir) -lmissing ++INCS = -I. $(X11INC) -I$(srcdir)/missing @TIRPC_CFLAGS@ ++LIBS = @LIBS@ -L$(srcdir) -lmissing @TIRPC_LIBS@ + + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ +--- a/configure.in ++++ b/configure.in +@@ -338,4 +338,6 @@ + AC_SUBST(SSLINC) + AC_SUBST(SSLLIB) + ++PKG_CHECK_MODULES([TIRPC], [libtirpc], [], [AC_MSG_NOTICE([Using glibc rpc support])]) ++ + AC_OUTPUT(Makefile) diff --git a/net-analyzer/dsniff/files/2.4_beta1-macof-size-calculation.patch b/net-analyzer/dsniff/files/2.4_beta1-macof-size-calculation.patch new file mode 100644 index 000000000000..068133de2e4d --- /dev/null +++ b/net-analyzer/dsniff/files/2.4_beta1-macof-size-calculation.patch @@ -0,0 +1,11 @@ +--- a/macof.c ++++ b/macof.c +@@ -134,7 +134,7 @@ main(int argc, char *argv[]) + libnet_build_tcp(sport, dport, seq, 0, TH_SYN, 512, + 0, 0, LIBNET_TCP_H, NULL, 0, l, 0); + +- libnet_build_ipv4(LIBNET_TCP_H, 0, ++ libnet_build_ipv4(LIBNET_IPV4_H + LIBNET_TCP_H, 0, + libnet_get_prand(LIBNET_PRu16), 0, 64, + IPPROTO_TCP, 0, src, dst, NULL, 0, l, 0); + diff --git a/net-analyzer/dsniff/files/2.4_beta1-make.patch b/net-analyzer/dsniff/files/2.4_beta1-make.patch new file mode 100644 index 000000000000..a8dc2b627ad6 --- /dev/null +++ b/net-analyzer/dsniff/files/2.4_beta1-make.patch @@ -0,0 +1,62 @@ +--- a/Makefile.in 2010-09-20 12:12:25.000000000 +0200 ++++ b/Makefile.in 2010-09-20 12:12:26.000000000 +0200 +@@ -16,7 +16,7 @@ + mandir = @mandir@ + + CC = @CC@ +-CFLAGS = @CFLAGS@ -DDSNIFF_LIBDIR=\"$(libdir)/\" ++CFLAGS = @CFLAGS@ + LDFLAGS = @LDFLAGS@ + + PCAPINC = @PCAPINC@ +@@ -75,12 +75,20 @@ + .c.o: + $(CC) $(CFLAGS) $(INCS) -c $(srcdir)/$*.c + +-all: libmissing.a $(PROGS) ++all: $(PROGS) ++ ++$(PROGS): libmissing.a ++ ++$(OBJS): $(GEN) + ++mount.h: mount.x ++ rpcgen -h mount.x -o mount.h ++ + mount.c: mount.x +- rpcgen -h mount.x -o mount.h + rpcgen -c mount.x -o mount.c + ++nfs_prot.h: nfs_prot.x ++ rpcgen -h nfs_prot.x -o nfs_prot.h ++ + nfs_prot.c: nfs_prot.x +- rpcgen -h nfs_prot.x -o nfs_prot.h + rpcgen -c nfs_prot.x -o nfs_prot.c +@@ -93,7 +97,7 @@ + $(RANLIB) $@ + + dsniff: $(HDRS) $(SRCS) $(OBJS) +- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(DBLIB) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(SSLLIB) + + arpspoof: arpspoof.o arp.o + $(CC) $(LDFLAGS) -o $@ arpspoof.o arp.o $(LIBS) $(PCAPLIB) $(LNETLIB) +@@ -114,7 +118,7 @@ + $(CC) $(LDFLAGS) -o $@ msgsnarf.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) + + sshmitm: sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o +- $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ sshmitm.o buf.o hex.o record.o ssh.o sshcrypto.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB) + + sshow: sshow.o pcaputil.o + $(CC) $(LDFLAGS) -o $@ sshow.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) +@@ -132,7 +136,7 @@ + $(CC) $(LDFLAGS) -o $@ urlsnarf.o base64.o buf.o pcaputil.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) + + webmitm: webmitm.o base64.o buf.o decode_http.o record.o +- $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(LNETLIB) $(DBLIB) $(SSLLIB) ++ $(CC) $(LDFLAGS) -o $@ webmitm.o base64.o buf.o decode_http.o record.o $(LIBS) $(DBLIB) $(LNETLIB) $(SSLLIB) + + webspy: webspy.o base64.o buf.o remote.o + $(CC) $(LDFLAGS) -o $@ webspy.o base64.o buf.o remote.o $(LIBS) $(NIDSLIB) $(PCAPLIB) $(LNETLIB) $(X11LIB) diff --git a/net-analyzer/dsniff/files/2.4_beta1-urlsnarf-pcap_timestamps.patch b/net-analyzer/dsniff/files/2.4_beta1-urlsnarf-pcap_timestamps.patch new file mode 100644 index 000000000000..a2a7a36966ac --- /dev/null +++ b/net-analyzer/dsniff/files/2.4_beta1-urlsnarf-pcap_timestamps.patch @@ -0,0 +1,15 @@ +Author: Hilko Bengen <bengen@debian.org> +Description: urlsnarf: use timestamps from pcap file if available. Closes: #573365 +Index: dsniff-2.4b1+debian/urlsnarf.c +=================================================================== +--- a/urlsnarf.c ++++ b/urlsnarf.c +@@ -57,7 +57,7 @@ + { + static char tstr[32], sign; + struct tm *t, gmt; +- time_t tt = time(NULL); ++ time_t tt = nids_last_pcap_header->ts.tv_sec; + int days, hours, tz, len; + + gmt = *gmtime(&tt); diff --git a/net-analyzer/dsniff/metadata.xml b/net-analyzer/dsniff/metadata.xml new file mode 100644 index 000000000000..87cd1022ae11 --- /dev/null +++ b/net-analyzer/dsniff/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> +</maintainer> +<longdescription> +dsniff is a collection of tools for network auditing and penetration testing. +dsniff, filesnarf, mailsnarf, msgsnarf, urlsnarf, and webspy passively monitor a +network for interesting data (passwords, e-mail, files, etc.). arpspoof, +dnsspoof, and macof facilitate the interception of network traffic normally +unavailable to an attacker (e.g, due to layer-2 switching). sshmitm and webmitm +implement active monkey-in-the-middle attacks against redirected SSH and HTTPS +sessions by exploiting weak bindings in ad-hoc PKI. +</longdescription> +</pkgmetadata> |