import yersinia 0.7.1
Yersinia is a network tool designed to take advantage of some weaknesses in different network protocols. It pretends to be a solid framework for analyzing and testing the deployed networks and systems. Attacks for the following network protocols are implemented: * Spanning Tree Protocol (STP) * Cisco Discovery Protocol (CDP) * Dynamic Trunking Protocol (DTP) * Dynamic Host Configuration Protocol (DHCP) * Hot Standby Router Protocol (HSRP) * IEEE 802.1Q * IEEE 802.1X * Inter-Switch Link Protocol (ISL) * VLAN Trunking Protocol (VTP) ok landry@
This commit is contained in:
parent
6777cb023e
commit
c93cdceef5
35
net/yersinia/Makefile
Normal file
35
net/yersinia/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/10/25 23:12:02 steven Exp $
|
||||
|
||||
COMMENT = framework for analysis of layer 2 network protocols
|
||||
|
||||
DISTNAME = yersinia-0.7.1
|
||||
CATEGORIES = net security
|
||||
|
||||
HOMEPAGE = http://www.yersinia.net/
|
||||
|
||||
MAINTAINER = Steven Mestdagh <steven@openbsd.org>
|
||||
|
||||
# GPL v2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
MASTER_SITES = http://www.yersinia.net/download/
|
||||
|
||||
WANTLIB = c ncurses panel pcap pthread
|
||||
|
||||
LIB_DEPENDS = net::net/libnet/1.1
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
CONFIGURE_ARGS = --disable-gtk \
|
||||
--with-libnet-includes=${LOCALBASE}/include/libnet-1.1
|
||||
CONFIGURE_ENV = LDFLAGS="-L${LOCALBASE}/lib" \
|
||||
LIBNET_CONFIG=${LOCALBASE}/bin/libnet-config-1.1
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/yersinia
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} FAQ README \
|
||||
${PREFIX}/share/doc/yersinia
|
||||
|
||||
.include <bsd.port.mk>
|
5
net/yersinia/distinfo
Normal file
5
net/yersinia/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (yersinia-0.7.1.tar.gz) = 3Tt5piVIKWH+TovZbt/xeQ==
|
||||
RMD160 (yersinia-0.7.1.tar.gz) = AF9R2oke/pZKA8JdonoM/grDrI0=
|
||||
SHA1 (yersinia-0.7.1.tar.gz) = ystEZUjQdhSd4KcabAPNLtqhRmA=
|
||||
SHA256 (yersinia-0.7.1.tar.gz) = nEc8SbuptSccocxvtdZDFL/2dXcvWXg3NB9Y3JM1Ghc=
|
||||
SIZE (yersinia-0.7.1.tar.gz) = 318396
|
39
net/yersinia/patches/patch-configure
Normal file
39
net/yersinia/patches/patch-configure
Normal file
@ -0,0 +1,39 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2010/10/25 23:12:02 steven Exp $
|
||||
--- configure.orig Fri Jan 26 20:22:30 2007
|
||||
+++ configure Tue Sep 23 14:13:54 2008
|
||||
@@ -3470,7 +3470,7 @@ fi
|
||||
|
||||
|
||||
if test -n "$GCC"; then
|
||||
- CFLAGS="-O3 -Wall -g"
|
||||
+ CFLAGS="$CFLAGS -Wall -g"
|
||||
else
|
||||
{ echo "$as_me:$LINENO: WARNING: Ouch!! Only gcc is supported..." >&5
|
||||
echo "$as_me: WARNING: Ouch!! Only gcc is supported..." >&2;}
|
||||
@@ -4687,7 +4687,7 @@ else
|
||||
|
||||
LIBNET_INCLUDE="-I$libnet_dir"
|
||||
LIBNET_LINK="-L`dirname $libnet_dir`/lib"
|
||||
- LIBNET_CONFIG="$libnet_config_dir/libnet-config"
|
||||
+# LIBNET_CONFIG="$libnet_config_dir/libnet-config"
|
||||
|
||||
|
||||
|
||||
@@ -6676,7 +6676,7 @@ if test "${ac_cv_lib_pthread_pthread_create+set}" = se
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lpthread $LIBS"
|
||||
+LIBS="-pthread $LIBS"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
@@ -6736,7 +6736,7 @@ if test $ac_cv_lib_pthread_pthread_create = yes; then
|
||||
#define HAVE_LIBPTHREAD 1
|
||||
_ACEOF
|
||||
|
||||
- LIBS="-lpthread $LIBS"
|
||||
+ LIBS="-pthread $LIBS"
|
||||
|
||||
else
|
||||
|
38
net/yersinia/patches/patch-src_interfaces_c
Normal file
38
net/yersinia/patches/patch-src_interfaces_c
Normal file
@ -0,0 +1,38 @@
|
||||
$OpenBSD: patch-src_interfaces_c,v 1.1.1.1 2010/10/25 23:12:02 steven Exp $
|
||||
--- src/interfaces.c.orig Sun Jul 16 14:37:31 2006
|
||||
+++ src/interfaces.c Mon Oct 25 23:26:02 2010
|
||||
@@ -142,6 +142,7 @@ interfaces_init(THREAD *pcap_th)
|
||||
while (index)
|
||||
{
|
||||
if ( (strncmp(index->name,"any",strlen(index->name))) &&
|
||||
+ (strstr(index->name,"pflog") == NULL) &&
|
||||
(index->flags != PCAP_IF_LOOPBACK) )
|
||||
{
|
||||
if ((iface_data = (struct interface_data *) calloc(1, sizeof(struct interface_data))) == NULL) {
|
||||
@@ -321,6 +322,7 @@ interfaces_init_data(struct interface_data *interface)
|
||||
|
||||
|
||||
etheraddr = libnet_get_hwaddr(libnet_handler);
|
||||
+ libnet_destroy(libnet_handler);
|
||||
|
||||
if (etheraddr && memcmp((void *)etheraddr,"\x0\x0\x0\x0\x0\x0",6) )
|
||||
{
|
||||
@@ -329,14 +331,13 @@ interfaces_init_data(struct interface_data *interface)
|
||||
etheraddr->ether_addr_octet[0], etheraddr->ether_addr_octet[1],
|
||||
etheraddr->ether_addr_octet[2], etheraddr->ether_addr_octet[3],
|
||||
etheraddr->ether_addr_octet[4], etheraddr->ether_addr_octet[5]); */
|
||||
- }
|
||||
-
|
||||
- libnet_destroy(libnet_handler);
|
||||
-
|
||||
- write_log(0," %s MAC = %02x%02x.%02x%02x.%02x%02x\n", interface->ifname,
|
||||
+ write_log(0," %s MAC = %02x%02x.%02x%02x.%02x%02x\n", interface->ifname,
|
||||
etheraddr->ether_addr_octet[0], etheraddr->ether_addr_octet[1],
|
||||
etheraddr->ether_addr_octet[2], etheraddr->ether_addr_octet[3],
|
||||
etheraddr->ether_addr_octet[4], etheraddr->ether_addr_octet[5]);
|
||||
+ }
|
||||
+ else
|
||||
+ write_log(0," %s MAC not found!\n", interface->ifname);
|
||||
|
||||
return 0;
|
||||
}
|
11
net/yersinia/patches/patch-src_protocols_h
Normal file
11
net/yersinia/patches/patch-src_protocols_h
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-src_protocols_h,v 1.1.1.1 2010/10/25 23:12:02 steven Exp $
|
||||
--- src/protocols.h.orig Sun Jul 16 14:37:31 2006
|
||||
+++ src/protocols.h Thu Apr 24 23:46:12 2008
|
||||
@@ -26,6 +26,7 @@
|
||||
#define __PROTOCOLS_H__
|
||||
|
||||
#include <pcap.h>
|
||||
+#include <sys/socket.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#ifdef SOLARIS
|
15
net/yersinia/pkg/DESCR
Normal file
15
net/yersinia/pkg/DESCR
Normal file
@ -0,0 +1,15 @@
|
||||
Yersinia is a network tool designed to take advantage of some weaknesses
|
||||
in different network protocols. It pretends to be a solid framework for
|
||||
analyzing and testing the deployed networks and systems.
|
||||
|
||||
Attacks for the following network protocols are implemented:
|
||||
|
||||
* Spanning Tree Protocol (STP)
|
||||
* Cisco Discovery Protocol (CDP)
|
||||
* Dynamic Trunking Protocol (DTP)
|
||||
* Dynamic Host Configuration Protocol (DHCP)
|
||||
* Hot Standby Router Protocol (HSRP)
|
||||
* IEEE 802.1Q
|
||||
* IEEE 802.1X
|
||||
* Inter-Switch Link Protocol (ISL)
|
||||
* VLAN Trunking Protocol (VTP)
|
6
net/yersinia/pkg/PLIST
Normal file
6
net/yersinia/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/10/25 23:12:02 steven Exp $
|
||||
@bin bin/yersinia
|
||||
@man man/man8/yersinia.8
|
||||
share/doc/yersinia/
|
||||
share/doc/yersinia/FAQ
|
||||
share/doc/yersinia/README
|
Loading…
Reference in New Issue
Block a user