Coder Social home page Coder Social logo

esurfing's Introduction

有关*翼客户端算法更新公告

更新日期:2017-10-11

此项目在16年年底已放弃维护,谢谢大家的关注!

更新日期:2016-10-12

有关最新登录协议发布在:https://edmondfrank.github.io/blog/2016/10/12/tian-yi-xiao-yuan-wang-ke-hu-duan-deng-lu-xie-yi-geng-xin/

后续完整程序的发布请继续关注我的Github的动态!

Esurfing for Linux

天翼校园网客户端 for Linux

众所周知,由于Linux客户量在国内十分少,因此十分多的国内软件商都很少有提供Linux下的客户端. 即使是天翼校园网也不例外. 这样便苦了我们这一批在校学习的大学学子们了.

为了尝试去解决这样的困境,我通过模拟天翼校园网Windows客户端的post登录协议,成功登录了校园网.

在此,将代码放出供大家完善与参考(Ruby实现).

我的环境:

  • Ubuntu 14.04 LTS
  • JDK 1.8
  • JRuby 1.7.25(此处使用JRuby是因为要配合最新版的Shoes4界面库)
  • Shoes4(Ruby的一个轻量Gui)

运行界面如下:

image    

选项解释:

关键参数:config.json文件中的nasip的值,此值为天翼校园网对各校园分配的各标志性ip,默认为笔者所在院校,请各位根据自己的实际院校填写.一般此ip会显示在天翼校园网未登录时,打开网页后所自动跳转的天翼的登录页面中的地址栏上.

**帐号:**天翼客户端登录帐号

密码: 同理

MAC: 若勾选了路由器登录模式,则填写路由器的MAC地址,(格式:XX-XX-XX-XX-XX-XX)

动态IP: 若勾选了路由器登录模式,则填写天翼分配给路由器的动态IP地址,可以在路由器的配置页面上查到.

有关路由器配置页面,一般为:192.168.1.1或1192.168.0.1,如TP-Link的为192.168.1.1

使用说明

  1. 由于本程序使用到了Shoes4界面库. 而Shoes4界面库又是基于JRuby的,所以在使用前,请遵循JRuby的安装说明,安装并配置JRuby环境.
  2. 然后遵循Shoes4上的Shoes4配置方法进行Shoes4界面库的安装配置.
  3. 完成以上步骤后,可以直接在终端下输入
    $ jruby main.rb
    来运行本程序.

最后笔者邮箱为:[email protected],欢迎报告BUG和来信交流!

esurfing's People

Contributors

edmondfrank avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esurfing's Issues

路由器登录?

我是广东火炬职院的同学 我们这是用天翼客户端打帐号密码直接登录的 前段时间用的是海洋大学贴吧的软件 后来和谐了 之后自己想了个办法把路由器和手机mac改成一样 能用了 但是好麻烦 博主大大教我怎么路由器登录好吗

你好我们学校是四川天翼飞young3.09

我想实现路由器里可以自动拨号连接,貌似crazybox里有个拨号协议可以实现 但是找不到源码和编译过程,我也是小白,所以搞不来,看了很多教程貌似没啥用,博主会弄吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.