Giter VIP home page Giter VIP logo

neu-webvpn-anysite's Introduction

在校外通过WebVPN访问东北大学校园网任何网页的方法

why

  1. 学校给的SSL VPN服务很不稳定,而且需要安装客户端/浏览器插件。
  2. 学校提供的WebVPN服务所能选择的网页很少,cg平台和oj等常用网页都没有提供。

how

原理

  1. 通过分析WebVPN的链接发现,都是以https://webvpn.neu.edu.cn/http/62304135386136393339346365373340开头。
  2. 这个链接后面的内容实际上是通过AES-128加密的域名,再加上url后半段。

在哪用?

web端

点我

客户端

  1. 安装pycrypto:pip3 install pycrypto
  2. 将下面脚本中的url改为你想要访问的域名。
from Crypto.Cipher import AES

url = 'neucsecg.neu.edu.cn'

cipher = AES.new(
    'b0A58a69394ce73@',
    AES.MODE_CFB,
    'b0A58a69394ce73@',
    segment_size=128)
cipher_text = cipher.encrypt(url.ljust(len(url)//16*16+16, '\0').encode())

res = 'https://webvpn.neu.edu.cn/http/62304135386136393339346365373340' \
    + cipher_text[:len(url)].hex()
print(res)
  1. 运行脚本,输出的链接即为转换后的链接
  2. 用浏览器打开链接,enjoy

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.