-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 226a7ec
Showing
33 changed files
with
3,491 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
程序编写 | ||
HustMoon <[email protected]> form HUST | ||
kkHAIKE <[email protected]> from XTU | ||
|
||
编译脚本 | ||
Microcai <[email protected]> from ZSTU | ||
|
||
deb包脚本 | ||
Cheese Lee <[email protected]> from SYSU | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
SUBDIRS = src | ||
|
||
dist_doc_DATA = README | ||
|
||
dist_man_MANS = mentohust.1 | ||
|
||
SPEC = mentohust.spec | ||
|
||
EXTRA_DIST = $(SPEC) debian/changelog debian/compat debian/control debian/copyright debian/rules debian/watch | ||
|
||
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 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#使用方法 | ||
|
||
#安装mentohust:建议Ubuntu用户使用Deb包安装,Fedora用户使用RPM包安装 | ||
|
||
#如果确定自己可以使用xrgsu认证成功,打开终端输入sudo mentohust运行即可 | ||
#如果不确定,切换到锐捷所在目录,然后输入以下命令: | ||
sudo mkdir /etc/mentohust | ||
sudo cp ./8021x.exe /etc/mentohust | ||
#如果准确按以上步骤操作后还是认证失败,请下载MentoHUSTTool,在Windows下抓包并保存为data.mpf, | ||
然后回到Linux,切换到data.mpf所在目录,输入以下命令: | ||
sudo cp ./data.mpf /etc/mentohust | ||
然后打开终端输入sudo mentohust -f/etc/mentohust/data.mpf -w运行即可。以后也只需输入sudo mentohust。 | ||
|
||
#如何退出:不以后台模式运行mentohust时,按Ctrl+C即可退出;后台运行时使用sudo mentohust -k退出认证。 | ||
|
||
#查看帮助信息请输入:mentohust -h | ||
更详细的帮助信息请参考:http://wiki.ubuntu.org.cn/锐捷、赛尔认证MentoHUST | ||
|
||
#修改参数请根据帮助信息操作,例如修改用户名和密码:sudo mentohust -uUsername -pPassword -w | ||
指定某些参数仅对当次认证有效请根据帮助信息操作,例如临时修改用户名和密码:sudo mentohust -uUsername -pPassword | ||
|
||
#如果提示缺少libpcap.so.0.x而在/usr/lib/目录下已存在一个libpcap.so.0.x.y,输入以下命令: | ||
sudo ln -s libpcap.so.0.x.y /usr/lib/libpcap.so.0.x | ||
否则请安装libpcap。 | ||
|
||
#权责声明 | ||
1、本程序所有涉及锐捷赛尔认证的功能均是来自前辈公开代码及抓包分析。 | ||
2、本程序于个人仅供学习,于他人仅供方便认证,不得使用本程序有意妨害锐捷赛尔认证机制及相关方利益。 | ||
3、一切使用后果由用户自己承担。 | ||
4、本程序不提供任何服务及保障,编写及维护纯属个人爱好,随时可能被终止。 | ||
5、使用本程序者,即表示同意该声明。谢谢合作。 | ||
|
||
源码可在项目主页获取:http://mentohust.googlecode.com/ | ||
联系作者:在http://mentohust.googlecode.com/留言或Email:[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/sh | ||
|
||
set -x | ||
|
||
aclocal | ||
autoheader | ||
automake --add-missing | ||
autoconf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# -*- Autoconf -*- | ||
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.63]) | ||
AC_INIT([mentohust], [0.3.1], [http://code.google.com/p/mentohust/issues/list]) | ||
AC_CANONICAL_HOST | ||
AM_INIT_AUTOMAKE | ||
AC_CONFIG_SRCDIR([src/myconfig.h]) | ||
AC_CONFIG_HEADERS([config.h]) | ||
|
||
# Checks for programs. | ||
AS_IF([test "x$prefix" = "xNONE"], [prefix="/usr"]) | ||
AC_ARG_ENABLE([debug], [AC_HELP_STRING([ --enable-debug], [Build a debug version])], | ||
[CFLAGS="$CFLAGS -g -O0 -DDEBUG -Wall"], | ||
[CFLAGS="$CFLAGS -Os -Wall"]) | ||
|
||
AC_PROG_CC | ||
AC_C_BIGENDIAN | ||
|
||
AC_ARG_ENABLE([encodepass], [AC_HELP_STRING([ --disable-encodepass], [Don't encode password])], | ||
[], [enable_encodepass="yes"]) | ||
AS_IF([test "x$enable_encodepass" = "xno"], | ||
[AC_DEFINE(NO_ENCODE_PASS, [], [Define NO_ENCODE_PASS to disable encoding password])]) | ||
|
||
AC_ARG_ENABLE([arp], [AC_HELP_STRING([ --disable-arp], [Don't care ARP info])], | ||
[], [enable_arp="yes"]) | ||
AS_IF([test "x$enable_arp" = "xno"], | ||
[AC_DEFINE(NO_ARP, [], [Define NO_ARP to disable careing ARP])]) | ||
|
||
# Checks for libraries. | ||
AS_CASE([$host_os], | ||
[*darwin*], | ||
[AC_DEFINE(MAC_OS, [], [Define MAC_OS when compiling for Mac OS]) | ||
AC_CHECK_LIB([iconv], [iconv])]) | ||
|
||
AC_ARG_WITH([pcap], [AC_HELP_STRING([ --with-pcap=TYPE], [How to link libpcap: dyload(Default) | dylib | stlib | PATH])], | ||
[], [with_pcap="dyload"]) | ||
AS_IF([test "x$with_pcap" = "xyes" || test -z "$with_pcap"], [with_pcap="dyload"]) | ||
AS_IF([test "$with_pcap" = "dyload"], [AC_CHECK_LIB([dl], [dlsym])], | ||
[AC_DEFINE(NO_DYLOAD, [], [Define NO_DYLOAD when not load libpcap dynamicly]) | ||
AS_CASE([$with_pcap], | ||
[dylib], [AC_CHECK_LIB([pcap], [pcap_sendpacket])], | ||
[stlib], [AC_SUBST(LDADD, libpcap.a)], | ||
[AC_SUBST(LDADD, "$with_pcap")])]) | ||
|
||
AC_ARG_ENABLE([notify], [AC_HELP_STRING([ --disable-notify], [Don't show notification])], | ||
[], [enable_notify="yes"]) | ||
AS_IF([test "x$enable_notify" = "xno"], | ||
[AC_DEFINE(NO_NOTIFY, [], [Define NO_NOTIFY to disable notification])], | ||
[AC_CHECK_LIB([dl], [dlsym])]) | ||
|
||
# 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]) | ||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
AC_TYPE_SIZE_T | ||
|
||
# Checks for library functions. | ||
AC_CHECK_FUNCS([atexit memmove memset socket strrchr]) | ||
|
||
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)]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
mentohust (0.3.1-1) karmic; urgency=low | ||
|
||
* new upstream release. | ||
* add a manpage. | ||
|
||
-- HustMoon <[email protected]> Thu, 03 Dec 2009 21:26:15 +0800 | ||
|
||
mentohust (0.3.0-1) karmic; urgency=low | ||
|
||
* new upstream release. | ||
* debian/control: remove libpcap0.8-dev from Build-Depends. | ||
* debian/control: change libpcap0.8 to libpcap0.8 | libpcap0.9 | libpcap1.0 | libpcap1.1 in Depends. | ||
|
||
-- HustMoon <[email protected]> Thu, 12 Nov 2009 14:42:15 +0800 | ||
|
||
mentohust (0.2.5-0~r1) karmic; urgency=low | ||
|
||
* New upstream release | ||
* Moved the executable from /usr/sbin/ to /usr/bin/ | ||
|
||
-- Cheese Lee <[email protected]> Wed, 04 Nov 2009 16:07:18 +0800 | ||
|
||
mentohust (0.2.4-0~r3) karmic; urgency=low | ||
|
||
* Changed versioning suffix | ||
* Purged some empty files | ||
* Renamed the executable to lowercases | ||
|
||
-- Cheese Lee <[email protected]> Fri, 30 Oct 2009 10:50:03 +0800 | ||
|
||
mentohust (0.2.4-0~ppa2) karmic; urgency=low | ||
|
||
* Depend on libpcap0.8 without version | ||
|
||
-- Cheese Lee <[email protected]> Thu, 29 Oct 2009 16:24:20 +0800 | ||
|
||
mentohust (0.2.4-0~ppa1) karmic; urgency=low | ||
|
||
* Initial release | ||
|
||
-- Cheese Lee <[email protected]> Tue, 27 Oct 2009 19:44:51 +0800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: mentohust | ||
Section: net | ||
Priority: optional | ||
Maintainer: HustMoon <[email protected]> | ||
Build-Depends: debhelper (>= 7), autotools-dev | ||
Standards-Version: 3.8.1 | ||
Homepage: http://code.google.com/p/mentohust/ | ||
|
||
Package: mentohust | ||
Architecture: any | ||
Depends: libpcap0.8 | libpcap0.9 | libpcap1.0 | libpcap1 | ||
Description: A Ruijie and Cernet supplicant on Linux and MacOS from HustMoon Studio | ||
See /usr/share/doc/mentohust/README for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
This package was debianized by HustMoon <[email protected]> on | ||
Thu, 03 Dec 2009 21:26:15 +0800. | ||
|
||
It was downloaded from http://code.google.com/p/mentohust/downloads/list | ||
|
||
Upstream Authors: | ||
|
||
HustMoon Studio <[email protected]> | ||
|
||
Copyright: | ||
|
||
Copyright (C) 2009 HustMoon Studio | ||
|
||
License: | ||
|
||
This package is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License version 3. | ||
|
||
On Debian systems, the complete text of the GNU General Public License | ||
can be found in `/usr/share/common-licenses/GPL-3'. | ||
|
||
The Debian packaging is: | ||
|
||
Copyright (C) 2009 Cheese Lee <[email protected]> | ||
Copyright (C) 2009 HustMoon <[email protected]> | ||
|
||
and is licensed under the GPL version 3, | ||
see `/usr/share/common-licenses/GPL-3'. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
#!/usr/bin/make -f | ||
# -*- makefile -*- | ||
# Sample debian/rules that uses debhelper. | ||
# This file was originally written by Joey Hess and Craig Small. | ||
# As a special exception, when this file is copied by dh-make into a | ||
# dh-make output file, you may use that output file without restriction. | ||
# This special exception was added by Craig Small in version 0.37 of dh-make. | ||
|
||
# Uncomment this to turn on verbose mode. | ||
#export DH_VERBOSE=1 | ||
|
||
|
||
# These are used for cross-compiling and for saving the configure script | ||
# from having to guess our platform (since we know it already) | ||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | ||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) | ||
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) | ||
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) | ||
else | ||
CROSS= --build $(DEB_BUILD_GNU_TYPE) | ||
endif | ||
|
||
|
||
|
||
config.status: configure | ||
dh_testdir | ||
# Add here commands to configure the package. | ||
ifneq "$(wildcard /usr/share/misc/config.sub)" "" | ||
cp -f /usr/share/misc/config.sub config.sub | ||
endif | ||
ifneq "$(wildcard /usr/share/misc/config.guess)" "" | ||
cp -f /usr/share/misc/config.guess config.guess | ||
endif | ||
./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" | ||
|
||
|
||
build: build-stamp | ||
|
||
#build-stamp: config.status | ||
build-stamp: | ||
dh_testdir | ||
|
||
# Add here commands to compile the package. | ||
$(MAKE) | ||
#docbook-to-man debian/mentohust.sgml > mentohust.1 | ||
|
||
touch $@ | ||
|
||
clean: | ||
dh_testdir | ||
dh_testroot | ||
rm -f build-stamp | ||
|
||
# Add here commands to clean up after the build process. | ||
#[ ! -f Makefile ] || $(MAKE) distclean | ||
#rm -f config.sub config.guess | ||
|
||
dh_clean | ||
|
||
install: build | ||
dh_testdir | ||
dh_testroot | ||
dh_prep | ||
dh_installdirs | ||
|
||
# Add here commands to install the package into debian/mentohust. | ||
$(MAKE) DESTDIR=$(CURDIR)/debian/mentohust install | ||
|
||
# Build architecture-independent files here. | ||
binary-indep: install | ||
# We have nothing to do by default. | ||
|
||
# Build architecture-dependent files here. | ||
binary-arch: install | ||
dh_testdir | ||
dh_testroot | ||
dh_installchangelogs # ChangeLog | ||
dh_installdocs | ||
# dh_installexamples | ||
# dh_install | ||
# dh_installmenu | ||
# dh_installdebconf | ||
# dh_installlogrotate | ||
# dh_installemacsen | ||
# dh_installpam | ||
# dh_installmime | ||
# dh_python | ||
# dh_installinit | ||
# dh_installcron | ||
# dh_installinfo | ||
# dh_installman | ||
# dh_link | ||
dh_strip | ||
dh_compress | ||
dh_fixperms | ||
# dh_perl | ||
# dh_makeshlibs | ||
dh_installdeb | ||
# dh_shlibdeps | ||
dh_gencontrol | ||
dh_md5sums | ||
dh_builddeb | ||
|
||
binary: binary-indep binary-arch | ||
.PHONY: build clean binary-indep binary-arch binary install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version=3 | ||
http://code.google.com/p/mentohust/downloads/list \ | ||
http://mentohust.googlecode.com/files/mentohust-(.*).tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.\" This file is distributed under the same license as the mentohust package. | ||
.\" Copyright (C) 2009 HustMoon <[email protected]>. | ||
.\" | ||
.TH MENTOHUST 1 "2009-12-03" | ||
|
||
.SH NAME | ||
mentohust \- A Ruijie and Cernet supplicant on Linux and MacOS | ||
|
||
.SH SYNOPSIS | ||
.B mentohust | ||
[-option][value] ... | ||
|
||
.SH DESCRIPTION | ||
.PP | ||
mentohust is a Ruijie and Cernet supplicant on Linux and MacOS. | ||
.br | ||
See \fI/usr/share/doc/mentohust/README\fR for more information. | ||
|
||
.PP | ||
Type | ||
.B mentohust -h | ||
and see \fI/usr/share/doc/mentohust/README\fR for usage. | ||
|
||
.PP | ||
Homepage: http://mentohust.googlecode.com/ | ||
.br | ||
E-mail: [email protected] | ||
|
||
.SH AUTHOR | ||
.PP | ||
mentohust was written by HustMoon <[email protected]> | ||
.br | ||
and kkHAIKE <[email protected]>. | ||
.br | ||
This manual page was written by HustMoon <[email protected]>. |
Oops, something went wrong.