Skip to content

Commit

Permalink
V4
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrathb committed Nov 25, 2015
1 parent 6a9f9bf commit 38fe343
Show file tree
Hide file tree
Showing 57 changed files with 7,515 additions and 450 deletions.
4 changes: 4 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
程序编写
hyrathb
HustMoon <[email protected]> form HUST
kkHAIKE <[email protected]> from XTU

Expand All @@ -8,3 +9,6 @@
deb包脚本
Cheese Lee <[email protected]> from SYSU

逆向
hyrathb
紫禁北归
24 changes: 12 additions & 12 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src po
SUBDIRS = src

dist_doc_DATA = README

dist_man_MANS = mentohust.1

EXTRA_DIST = @[email protected] m4 debian/changelog debian/compat debian/control debian/copyright debian/rules debian/watch
SPEC = mentohust.spec

EXTRA_DIST = $(SPEC) debian/changelog debian/compat debian/control debian/copyright debian/rules debian/watch

rpm: dist @[email protected]
rpmbuild -bb \
--define "_sourcedir `pwd`" \
--define "_builddir `pwd`" \
--define "_specdir `pwd`" \
--define "_rpmdir `pwd`" \
--define "_srcrpmdir `pwd`" \
@[email protected]
rpm: dist-gzip
mkdir -p ~/rpmbuild/SOURCES/
mv mentohust-*.tar.gz ~/rpmbuild/SOURCES/
if [ -z "$(TARGET)" ] ;then \
rpmbuild -bb $(top_srcdir)/$(SPEC) ; \
else rpmbuild -bb $(top_srcdir)/$(SPEC) --target=$(TARGET) ; fi
mv ~/rpmbuild/RPMS/*$(TARGET)/mentohust-*$(TARGET).rpm ./
rm ~/rpmbuild/SOURCES/mentohust*

deb: debian/rules
dpkg-buildpackage -rfakeroot -uc -b -d
25 changes: 7 additions & 18 deletions README
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
完全没怎么看原来的代码,瞎改的。
加入了V4支持。具体算法看checkV4.c

所有hash都是从算法在rhash和ampheck借来魔改的……。

#使用方法

#安装mentohust:建议Ubuntu用户使用Deb包安装,Fedora用户使用RPM包安装

#如果确定自己可以使用xrgsu认证成功,打开终端输入sudo mentohust运行即可
如果不确定,切换到锐捷所在目录,然后输入以下命令:
#如果不确定,切换到锐捷所在目录,然后输入以下命令:
sudo mkdir /etc/mentohust
sudo cp ./8021x.exe /etc/mentohust
sudo cp ./W32N55.dll /etc/mentohust
然后打开终端输入sudo mentohust运行。如果认证失败,再切换到锐捷所在目录,输入以下命令:
sudo cp ./SuConfig.dat /etc/mentohust
然后打开终端输入sudo mentohust运行即可。
如果准确按以上步骤操作后还是认证失败,请下载MentoHUSTTool,在Windows下抓包并保存为data.mpf,
#如果准确按以上步骤操作后还是认证失败,请下载MentoHUSTTool,在Windows下抓包并保存为data.mpf,
然后回到Linux,切换到data.mpf所在目录,输入以下命令:
sudo cp ./data.mpf /etc/mentohust
然后打开终端输入sudo mentohust -f/etc/mentohust/data.mpf -w运行即可。以后也只需输入sudo mentohust。

#您也可以按下面的方法操作:
1、静态IP用户请事先设置好IP;
2、打开终端,输入sudo mentohust,回车;
3、[正确]输入相应信息,如果认证成功,跳到第8步;如果提示“不允许使用的客户端类型”,按Ctrl+C结束认证;
4、打开终端,输入sudo mentohust -w -f'锐捷目录下任意文件路径',回车;
5、如果认证成功,跳到第8步;如果提示“客户端完整性被破坏”,按Ctrl+C结束认证;
6、将锐捷安装目录下的SuConfig.dat重命名为其他名字;
7、打开终端,输入sudo mentohust,回车;
8、如果是动态IP且不是Linux,打开相应设置去更新IP。
9、以后认证只需打开终端,输入sudo mentohust,回车。
10、要修改某些参数请输入mentohust -h查看帮助信息并据此修改,例如修改密码sudo mentohust -pNewPassword -w,要临时修改则不加-w参数。

#如何退出:不以后台模式运行mentohust时,按Ctrl+C即可退出;后台运行时使用sudo mentohust -k退出认证。

#查看帮助信息请输入:mentohust -h
Expand Down
18 changes: 4 additions & 14 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/myconfig.h])
AC_CONFIG_HEADERS([config.h])

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

# Checks for programs.
AS_IF([test "x$prefix" = "xNONE"], [prefix="/usr"])
AC_ARG_ENABLE([debug], [AC_HELP_STRING([ --enable-debug], [Build a debug version])],
Expand Down Expand Up @@ -51,24 +49,16 @@ AS_IF([test "x$enable_notify" = "xno"],
[AC_DEFINE(NO_NOTIFY, [], [Define NO_NOTIFY to disable notification])],
[AC_CHECK_LIB([dl], [dlsym])])

AS_IF([test -z "$enable_nls"], [enable_nls="yes"])

GETTEXT_PACKAGE="$PACKAGE_NAME"
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext.])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION(0.16.1)

# Checks for header files.
AC_CHECK_HEADERS([iconv.h arpa/inet.h fcntl.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h libintl.h locale.h])
AC_CHECK_HEADERS([iconv.h arpa/inet.h fcntl.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

# Checks for library functions.
AC_CHECK_FUNCS([atexit memmove memset socket strrchr setlocale])
AC_CHECK_FUNCS([atexit memmove memset socket strrchr])

AC_CONFIG_FILES([Makefile src/Makefile po/Makefile.in mentohust.spec])
AC_CONFIG_FILES([Makefile src/Makefile])

AC_MSG_RESULT([config result: host($host_os) pcap($with_pcap) notify($enable_notify) encode($enable_encodepass) arp($enable_arp) nls($enable_nls)])
AC_MSG_RESULT([config result: host($host_os) pcap($with_pcap) notify($enable_notify) encode($enable_encodepass) arp($enable_arp)])
AC_OUTPUT
Binary file added src/.checkV4.c.un~
Binary file not shown.
90 changes: 90 additions & 0 deletions src/.deps/byte_order.Po
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
byte_order.o: byte_order.c /usr/include/stdc-predef.h byte_order.h ustd.h \
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stdint.h \
/usr/include/stdint.h /usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-64.h /usr/include/bits/wchar.h \
/usr/include/unistd.h /usr/include/bits/posix_opt.h \
/usr/include/bits/environments.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h \
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stddef.h \
/usr/include/bits/confname.h /usr/include/getopt.h /usr/include/stdlib.h \
/usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/bits/byteswap-16.h \
/usr/include/sys/types.h /usr/include/time.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
/usr/include/bits/stdlib-float.h

/usr/include/stdc-predef.h:

byte_order.h:

ustd.h:

/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stdint.h:

/usr/include/stdint.h:

/usr/include/features.h:

/usr/include/sys/cdefs.h:

/usr/include/bits/wordsize.h:

/usr/include/gnu/stubs.h:

/usr/include/gnu/stubs-64.h:

/usr/include/bits/wchar.h:

/usr/include/unistd.h:

/usr/include/bits/posix_opt.h:

/usr/include/bits/environments.h:

/usr/include/bits/types.h:

/usr/include/bits/typesizes.h:

/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stddef.h:

/usr/include/bits/confname.h:

/usr/include/getopt.h:

/usr/include/stdlib.h:

/usr/include/bits/waitflags.h:

/usr/include/bits/waitstatus.h:

/usr/include/endian.h:

/usr/include/bits/endian.h:

/usr/include/bits/byteswap.h:

/usr/include/bits/byteswap-16.h:

/usr/include/sys/types.h:

/usr/include/time.h:

/usr/include/sys/select.h:

/usr/include/bits/select.h:

/usr/include/bits/sigset.h:

/usr/include/bits/time.h:

/usr/include/sys/sysmacros.h:

/usr/include/bits/pthreadtypes.h:

/usr/include/alloca.h:

/usr/include/bits/stdlib-float.h:
127 changes: 127 additions & 0 deletions src/.deps/checkV4.Po
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
checkV4.o: checkV4.c /usr/include/stdc-predef.h rjwhirlpool.h ustd.h \
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stdint.h \
/usr/include/stdint.h /usr/include/features.h /usr/include/sys/cdefs.h \
/usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \
/usr/include/gnu/stubs-64.h /usr/include/bits/wchar.h \
/usr/include/unistd.h /usr/include/bits/posix_opt.h \
/usr/include/bits/environments.h /usr/include/bits/types.h \
/usr/include/bits/typesizes.h \
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stddef.h \
/usr/include/bits/confname.h /usr/include/getopt.h /usr/include/stdlib.h \
/usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h \
/usr/include/endian.h /usr/include/bits/endian.h \
/usr/include/bits/byteswap.h /usr/include/bits/byteswap-16.h \
/usr/include/sys/types.h /usr/include/time.h /usr/include/sys/select.h \
/usr/include/bits/select.h /usr/include/bits/sigset.h \
/usr/include/bits/time.h /usr/include/sys/sysmacros.h \
/usr/include/bits/pthreadtypes.h /usr/include/alloca.h \
/usr/include/bits/stdlib-float.h rjmd5.h rjtiger.h rjripemd128.h \
rjsha1.h md5.h types.h checkV4.h /usr/include/stdio.h \
/usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stdarg.h \
/usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \
/usr/include/string.h /usr/include/xlocale.h

/usr/include/stdc-predef.h:

rjwhirlpool.h:

ustd.h:

/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stdint.h:

/usr/include/stdint.h:

/usr/include/features.h:

/usr/include/sys/cdefs.h:

/usr/include/bits/wordsize.h:

/usr/include/gnu/stubs.h:

/usr/include/gnu/stubs-64.h:

/usr/include/bits/wchar.h:

/usr/include/unistd.h:

/usr/include/bits/posix_opt.h:

/usr/include/bits/environments.h:

/usr/include/bits/types.h:

/usr/include/bits/typesizes.h:

/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stddef.h:

/usr/include/bits/confname.h:

/usr/include/getopt.h:

/usr/include/stdlib.h:

/usr/include/bits/waitflags.h:

/usr/include/bits/waitstatus.h:

/usr/include/endian.h:

/usr/include/bits/endian.h:

/usr/include/bits/byteswap.h:

/usr/include/bits/byteswap-16.h:

/usr/include/sys/types.h:

/usr/include/time.h:

/usr/include/sys/select.h:

/usr/include/bits/select.h:

/usr/include/bits/sigset.h:

/usr/include/bits/time.h:

/usr/include/sys/sysmacros.h:

/usr/include/bits/pthreadtypes.h:

/usr/include/alloca.h:

/usr/include/bits/stdlib-float.h:

rjmd5.h:

rjtiger.h:

rjripemd128.h:

rjsha1.h:

md5.h:

types.h:

checkV4.h:

/usr/include/stdio.h:

/usr/include/libio.h:

/usr/include/_G_config.h:

/usr/include/wchar.h:

/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include/stdarg.h:

/usr/include/bits/stdio_lim.h:

/usr/include/bits/sys_errlist.h:

/usr/include/string.h:

/usr/include/xlocale.h:
Loading

0 comments on commit 38fe343

Please sign in to comment.