mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Upgrade to version 0.7.
This commit is contained in:
parent
4b79f53db7
commit
ba5e3562b4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=166267
@ -6,17 +6,13 @@
|
||||
#
|
||||
|
||||
PORTNAME= yersinia
|
||||
PORTVERSION= 0.5.4
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.7
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
MASTER_SITES= http://www.yersinia.net/download/
|
||||
|
||||
MAINTAINER= se@FreeBSD.org
|
||||
COMMENT= Layer 2 vulnerability scanner (switches, spanning tree, 802.1q ...)
|
||||
|
||||
USE_GETOPT_LONG= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
|
||||
@ -31,7 +27,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
|
||||
NOT_FOR_ARCHS= ia64 sparc64
|
||||
MAN8= yersinia.8
|
||||
CFLAGS+= -DNEED_GETOPT_H
|
||||
PLIST_FILES= sbin/yersinia
|
||||
|
||||
do-install:
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (yersinia-0.5.4.tar.gz) = 3a4c8ee7c8fbc751152de423f624d994
|
||||
SHA256 (yersinia-0.5.4.tar.gz) = 5b149fd33367fda98c96fc54eff80e9fa2d4091d9485545f18f053af05674444
|
||||
SIZE (yersinia-0.5.4.tar.gz) = 286435
|
||||
MD5 (yersinia-0.7.tar.gz) = 66ae43c5571ceb695e9307b2a4f3c5c3
|
||||
SHA256 (yersinia-0.7.tar.gz) = 0a82b904991ee1ecbbeb0a19ca3c3261f4014170a5c50a7fcd5be9af5e30a029
|
||||
SIZE (yersinia-0.7.tar.gz) = 322812
|
||||
|
@ -1,35 +0,0 @@
|
||||
--- src/Makefile.in~ Sun Jul 24 12:22:05 2005
|
||||
+++ src/Makefile.in Sun Jul 24 12:22:08 2005
|
||||
@@ -135,8 +135,8 @@
|
||||
|
||||
bin_PROGRAMS = yersinia
|
||||
|
||||
-yersinia_SOURCES = xstp.c parser.c getopt.c getopt1.c dtp.c dtp.h\
|
||||
-getopt.h parser.h xstp.h global.h cdp.c cdp.h dhcp.c dhcp.h\
|
||||
+yersinia_SOURCES = xstp.c parser.c dtp.c dtp.h\
|
||||
+parser.h xstp.h global.h cdp.c cdp.h dhcp.c dhcp.h\
|
||||
hsrp.h hsrp.c dot1q.h dot1q.c vtp.h vtp.c arp.h arp.c\
|
||||
thread-util.h thread-util.c admin.c admin.h terminal.c\
|
||||
terminal.h terminal-defs.h commands.c commands.h commands-struct.h\
|
||||
@@ -151,8 +151,8 @@
|
||||
bin_PROGRAMS = yersinia$(EXEEXT)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
|
||||
-am__yersinia_SOURCES_DIST = xstp.c parser.c getopt.c getopt1.c dtp.c \
|
||||
- dtp.h getopt.h parser.h xstp.h global.h cdp.c cdp.h dhcp.c \
|
||||
+am__yersinia_SOURCES_DIST = xstp.c parser.c dtp.c \
|
||||
+ dtp.h parser.h xstp.h global.h cdp.c cdp.h dhcp.c \
|
||||
dhcp.h hsrp.h hsrp.c dot1q.h dot1q.c vtp.h vtp.c arp.h arp.c \
|
||||
thread-util.h thread-util.c admin.c admin.h terminal.c \
|
||||
terminal.h terminal-defs.h commands.c commands.h \
|
||||
@@ -160,8 +160,8 @@
|
||||
yersinia.h yersinia.c md5.c md5.h md5_sum.c md5_sum.h \
|
||||
protocols.h protocols.c ncurses-gui.c ncurses-gui.h
|
||||
@HAS_CURSES_TRUE@am__objects_1 = ncurses-gui.$(OBJEXT)
|
||||
-am_yersinia_OBJECTS = xstp.$(OBJEXT) parser.$(OBJEXT) getopt.$(OBJEXT) \
|
||||
- getopt1.$(OBJEXT) dtp.$(OBJEXT) cdp.$(OBJEXT) dhcp.$(OBJEXT) \
|
||||
+am_yersinia_OBJECTS = xstp.$(OBJEXT) parser.$(OBJEXT) \
|
||||
+ dtp.$(OBJEXT) cdp.$(OBJEXT) dhcp.$(OBJEXT) \
|
||||
hsrp.$(OBJEXT) dot1q.$(OBJEXT) vtp.$(OBJEXT) arp.$(OBJEXT) \
|
||||
thread-util.$(OBJEXT) admin.$(OBJEXT) terminal.$(OBJEXT) \
|
||||
commands.$(OBJEXT) interfaces.$(OBJEXT) attack.$(OBJEXT) \
|
@ -1,127 +0,0 @@
|
||||
--- src/cdp.c~ Tue May 24 21:28:31 2005
|
||||
+++ src/cdp.c Sun Jul 24 11:14:34 2005
|
||||
@@ -57,6 +57,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
--- src/dhcp.c~ Tue May 24 21:28:31 2005
|
||||
+++ src/dhcp.c Sun Jul 24 11:14:55 2005
|
||||
@@ -59,6 +59,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
--- src/dot1q.c~ Tue May 24 21:28:31 2005
|
||||
+++ src/dot1q.c Sun Jul 24 11:15:02 2005
|
||||
@@ -58,6 +58,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
--- src/dtp.c~ Tue May 24 21:28:31 2005
|
||||
+++ src/dtp.c Sun Jul 24 11:15:12 2005
|
||||
@@ -57,6 +57,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
--- src/hsrp.c~ Tue May 24 21:28:31 2005
|
||||
+++ src/hsrp.c Sun Jul 24 11:15:34 2005
|
||||
@@ -59,6 +59,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
--- src/parser.c~ Mon Apr 11 23:15:24 2005
|
||||
+++ src/parser.c Sun Jul 24 11:21:11 2005
|
||||
@@ -52,6 +52,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
@@ -70,12 +74,6 @@
|
||||
|
||||
#ifdef HAVE_PTHREAD_H
|
||||
#include <pthread.h>
|
||||
-#endif
|
||||
-
|
||||
-#ifdef HAVE_GETOPT_LONG_ONLY
|
||||
-#include <getopt.h>
|
||||
-#else
|
||||
-#include "getopt.h"
|
||||
#endif
|
||||
|
||||
#include <termios.h>
|
||||
|
||||
--- src/vtp.c~ Tue May 24 21:28:32 2005
|
||||
+++ src/vtp.c Sun Jul 24 11:17:02 2005
|
||||
@@ -57,6 +57,10 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
--- src/xstp.c~ Tue May 24 21:28:32 2005
|
||||
+++ src/xstp.c Sun Jul 24 11:21:23 2005
|
||||
@@ -53,8 +53,12 @@
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
-#ifdef HAVE_UNISTD_H
|
||||
+#ifdef HAVE_UNISTD_H_x
|
||||
#include <unistd.h>
|
||||
+#endif
|
||||
+
|
||||
+#ifdef NEED_GETOPT_H
|
||||
+#include <getopt.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STRING_H
|
@ -1,166 +0,0 @@
|
||||
--- src/commands.c~ Mon Apr 11 23:15:23 2005
|
||||
+++ src/commands.c Tue Jul 26 18:48:36 2005
|
||||
@@ -624,7 +624,8 @@
|
||||
u_int8_t proto)
|
||||
{
|
||||
int8_t msg[128];
|
||||
- int8_t fail, params, aux;
|
||||
+ int8_t fail, params;
|
||||
+ int aux;
|
||||
struct term_vty *vty = node->specific;
|
||||
|
||||
if (!(warray->word[warray->indx+1]))
|
||||
@@ -1971,7 +1972,7 @@
|
||||
{
|
||||
int8_t msg[128], *args, prova;
|
||||
int8_t fail, i, params;
|
||||
- u_int8_t aux;
|
||||
+ int aux;
|
||||
char *punt;
|
||||
struct stp_data *stp_data;
|
||||
struct term_vty *vty = node->specific;
|
||||
@@ -2113,21 +2114,11 @@
|
||||
if (!strcmp("flags", comm_set_stp[x].s))
|
||||
{
|
||||
parser_str_tolower(args);
|
||||
- if ( (*args == '0') && (*(args+1) == 'x') && (strlen(args) >= 2) )
|
||||
- {
|
||||
- punt = &prova;
|
||||
- aux = strtol(args, &punt, 16);
|
||||
- if ( *punt || (aux < 0) || (aux > 255) )
|
||||
- return (command_bad_input(node,warray->indx+1));
|
||||
- stp_data->flags |= aux;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- aux = atoi(args);
|
||||
- if ( (aux < 0) || (aux > 255) )
|
||||
- return (command_bad_input(node,warray->indx+1));
|
||||
- stp_data->flags |= aux;
|
||||
- }
|
||||
+ punt = &prova;
|
||||
+ aux = strtol(args, &punt, 0);
|
||||
+ if ( *punt || (aux < 0) || (aux > 255) )
|
||||
+ return (command_bad_input(node,warray->indx+1));
|
||||
+ stp_data->flags |= aux;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -2146,21 +2137,11 @@
|
||||
if (!strcmp("cost", comm_set_stp[x].s))
|
||||
{
|
||||
parser_str_tolower(args);
|
||||
- if ( (*args == '0') && (*(args+1) == 'x') && (strlen(args) >= 2) )
|
||||
- {
|
||||
- punt = &prova;
|
||||
- aux = strtol(args, &punt, 16);
|
||||
- if ( *punt || (aux < 0) || (strlen(args) > 10) )
|
||||
- return (command_bad_input(node,warray->indx+1));
|
||||
- stp_data->root_pc = aux;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- aux = atoi(args);
|
||||
- if ( (aux < 0) || (aux > 0xffffffff) )
|
||||
- return (command_bad_input(node,warray->indx+1));
|
||||
- stp_data->root_pc = aux;
|
||||
- }
|
||||
+ punt = &prova;
|
||||
+ aux = strtol(args, &punt, 0);
|
||||
+ if ( *punt || (aux < 0) || (strlen(args) > 10) )
|
||||
+ return (command_bad_input(node,warray->indx+1));
|
||||
+ stp_data->root_pc = aux;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -2178,21 +2159,11 @@
|
||||
if (!strcmp("portid", comm_set_stp[x].s))
|
||||
{
|
||||
parser_str_tolower(args);
|
||||
- if ( (*args == '0') && (*(args+1) == 'x') && (strlen(args) >= 2) )
|
||||
- {
|
||||
- punt = &prova;
|
||||
- aux = strtol(args, &punt, 16);
|
||||
- if ( *punt || (aux < 0) || (aux > 65535) )
|
||||
- return (command_bad_input(node,warray->indx+1));
|
||||
- stp_data->port_id = aux;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- aux = atoi(args);
|
||||
- if ( (aux < 0) || (aux > 65535) )
|
||||
- return (command_bad_input(node,warray->indx+1));
|
||||
- stp_data->port_id = aux;
|
||||
- }
|
||||
+ punt = &prova;
|
||||
+ aux = strtol(args, &punt, 0);
|
||||
+ if ( *punt || (aux < 0) || (aux > 65535) )
|
||||
+ return (command_bad_input(node,warray->indx+1));
|
||||
+ stp_data->port_id = aux;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -2458,7 +2429,7 @@
|
||||
{
|
||||
int8_t msg[128], *args;
|
||||
int8_t fail, i, params;
|
||||
- u_int8_t aux;
|
||||
+ int aux;
|
||||
struct dtp_data *dtp_data;
|
||||
struct term_vty *vty = node->specific;
|
||||
|
||||
@@ -2749,7 +2720,7 @@
|
||||
{
|
||||
int8_t msg[128], *args;
|
||||
int8_t fail, i, params;
|
||||
- u_int8_t aux;
|
||||
+ int aux;
|
||||
struct in_addr addr;
|
||||
u_int32_t aux_long;
|
||||
struct dhcp_data *dhcp_data;
|
||||
@@ -3073,7 +3044,7 @@
|
||||
{
|
||||
int8_t msg[128], *args;
|
||||
int8_t fail, i, params;
|
||||
- u_int32_t aux;
|
||||
+ int aux;
|
||||
u_int32_t aux_long;
|
||||
struct in_addr addr;
|
||||
struct vtp_data *vtp_data;
|
||||
@@ -3389,7 +3360,7 @@
|
||||
{
|
||||
int8_t msg[128], *args;
|
||||
int8_t fail, i, params;
|
||||
- u_int8_t aux;
|
||||
+ int aux;
|
||||
u_int32_t aux_long;
|
||||
struct in_addr addr;
|
||||
struct dot1q_data *dot1q_data;
|
||||
@@ -3725,7 +3696,7 @@
|
||||
{
|
||||
int8_t msg[128], *args;
|
||||
int8_t fail, i, params;
|
||||
- u_int8_t aux;
|
||||
+ int aux;
|
||||
struct in_addr addr;
|
||||
u_int32_t aux_long;
|
||||
struct hsrp_data *hsrp_data;
|
||||
@@ -4116,7 +4087,7 @@
|
||||
{
|
||||
int8_t msg[128], *args;
|
||||
int8_t fail, i, params;
|
||||
- u_int8_t aux;
|
||||
+ int aux;
|
||||
struct cdp_data *cdp_data;
|
||||
struct term_vty *vty = node->specific;
|
||||
|
||||
@@ -4527,7 +4498,8 @@
|
||||
u_int8_t proto)
|
||||
{
|
||||
int8_t msg[128];
|
||||
- int8_t i, fail, params, aux;
|
||||
+ int8_t i, fail, params;
|
||||
+ int aux;
|
||||
struct attack *theattack = NULL;
|
||||
struct term_vty *vty = node->specific;
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- configure~ Tue May 24 21:38:11 2005
|
||||
+++ configure Sun Jul 24 13:04:08 2005
|
||||
@@ -2908,7 +2908,7 @@
|
||||
--- configure~ Sun Jun 18 17:24:36 2006
|
||||
+++ configure Sun Jun 25 11:52:30 2006
|
||||
@@ -2971,7 +2971,7 @@
|
||||
|
||||
|
||||
if test -n "$GCC"; then
|
||||
|
10
security/yersinia/files/patch-protocols.h
Normal file
10
security/yersinia/files/patch-protocols.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/protocols.h~ Sun Jun 18 17:23:33 2006
|
||||
+++ src/protocols.h Sun Jun 25 11:46:35 2006
|
||||
@@ -26,6 +26,7 @@
|
||||
#define __PROTOCOLS_H__
|
||||
|
||||
#include <pcap.h>
|
||||
+#include <sys/socket.h>
|
||||
#include <net/if.h>
|
||||
|
||||
#ifdef SOLARIS
|
@ -9,4 +9,4 @@ IEEE 802.1q
|
||||
Spanning Tree Protocol (STP, RSTP)
|
||||
Virtual Trunking Protocol (VTP)
|
||||
|
||||
WWW: http://yersinia.sourceforge.net/
|
||||
WWW: http://www.yersinia.net/
|
||||
|
Loading…
Reference in New Issue
Block a user