Coder Social home page Coder Social logo

sustech_tools's Introduction

Hi there, I'm Frank Wu

🏫 Senior UG @SUSTech
✨ I'm interested about Reverse & Binary Exploitation & APT
💻 Currently exploring System Security & Program Analysis in 【Teecert Lab】
🔑 GPG ID: F3361E0E712472BB01957DFBC252135B3B91FF1D

Aka Frankss, leader of COMPASS CTF in COMPASS Lab. Hack with S1uM4i and r3kapig for fun.

Other Projects
请我喝咖啡 Buy me a coffee☕️
支付宝 微信 收钱吧

Github stats

sustech_tools's People

Stargazers

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

Watchers

 avatar  avatar  avatar

sustech_tools's Issues

使用时发生错误

[!] 读取规划课表...
[+] 规划课表读取完毕
[!] 测试CAS链接...
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
[+] 成功连接到CAS...
[!] 登录中...
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
[+] 登录成功
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
[!] 从服务器获取当前喵课时间...
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
[+] 当前学期是2023-2024学年第2学期,为春季学期
[!] 从服务器下载课程信息,请稍等...
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
D:\software\Anaconda\Lib\site-packages\urllib3\connectionpool.py:1056: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
Traceback (most recent call last):
File "D:\Project\Python_project\SUSTech_Tools\main.py", line 167, in
postList = getinfo(semester_info)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\Project\Python_project\SUSTech_Tools\main.py", line 76, in getinfo
for i in raw_class_data['kxrwList']['list']:
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

在输入学号后显示登录成功即闪退

把学号和CAS密码输进去之后显示了一个登录成功就直接闪退了 正确地输入了课表 且没挂代理 同宿舍的同学也出现了同种情况 想知道如何解决

对于研究生课程好像不生效

我不擅长脚本,今天测试一下发现该脚本好像读不到所有的课程(只读出来一门课),应该是semester_info没有读取到所有信息。请问该如何修改呢?

内网报SSL证书校验错误的问题

内网直接访问会因为 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] 异常退出
推测是tis的证书链配糊了,找不到根证书
建议修复方案:

  • 本地配置证书
  • verify=False
  • 欢迎提出其他修复方案

显示“用户名或密码错误,请检查”,无法登录

我输入了正确CAS密码,但是使用时显示密码错误,无法登录。已经确认过多次,想问一下是什么原因。
req返回的信息是:

KeysView({'Server': 'nginx', 'Date': 'Sat, 03 Sep 2022 12:00:07 GMT', 'Content-Type': 'text/html;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'Strict-Transport-Security': 'max-age=15768000 ; includeSubDomains, max-age=15768000', 'X-Content-Type-Options': 'nosniff, nosniff', 'X-Frame-Options': 'DENY', 'X-XSS-Protection': '1; mode=block', 'vary': 'accept-encoding', 'Content-Encoding': 'gzip', 'Content-Language': 'zh-CN'})

Program will crash if the first http request is refused!

Issue Description
项目中存在一个request.post未进行try-except,并且由于该request是在程序开头就会执行。如果目标服务器由于某种原因拒绝请求,项目将会崩溃,需要重新启动。
QQ图片20220214153502

Environment
windows 10
pycharm 2021.3.1
python 3.9.7

Anything else we need to know?
请问贵方有无修复该问题的意向,并且本人可以积极提供修复帮助。

getinfo函数返回的课程不正确

getinfo函数返回的课程不正确,返回的课程并非是我培养计划中的课程,而且两次运行脚本,两次中的getinfo不同。猜测可能是request网址的问题,同时也想问问您是怎么获取到那些url的?

添加 tis 平台的其他功能

仓库名称为 SUSTech_Tools,因此可以整理一下常用的工具,比如将 tis 平台的选课、查看成绩等接口以库的形式整合,然后,使用 click 等命令行交互相关的库制作命令行工具(只是一个幻想)。另外,可以使用 pipenv 或者 poetry 等工具管理虚拟环境与依赖。

可供参考的两个脚本:研究生分数查询及 GPA 计算电费余量查询,这两个脚本的创作时间相差较大,因此风格不一致。不过,目前我还没有想好整合的形式,下面调用形式仅抛砖引玉。

from sustech import SUSTech  # or `from sustech import CAS`

sustech = SUSTech.login(username=..., password=...)

sustech.tis.select(...)  # 选课、退课等其他功能

print(sustech.tis.grades(is_undergraduate=True))
print(sustech.ehall.dfyl(195, 209))

如果以库的形式整合,那么就可以在文件夹中新建 __main__.py 文件,直接可以 python 加文件夹名即可启动。使用 click 的抛砖引玉如下,比如第一次可以输入账号密码,之后就缓存在本地。

λ python <文件夹名>
Usage:  [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  select  课程选择
  grades  查询课程成绩
  dfyl    查询电费余量

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.