Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zheng Yile
codiaclient
Commits
6f8f53d7
Commit
6f8f53d7
authored
May 28, 2021
by
Zheng Yile
Browse files
更新关于'--origin'选项的相关解释
parent
473b931f
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
6f8f53d7
...
...
@@ -107,13 +107,14 @@ pid, eid 可以通过客户端查询, 也可以在网页端访问的链接中获
查看变量名为VAR的变量; 若没有指定变量名, 则返回所有变量
*(包括 `username`, `pid`, `eid`, `lang`, `solutioncode`)*
. 返回类型为
*json*
.
# 辅助功能
## 接口相关
若非直接命令行运行, 建议在启动时加上
`--origin`
选项以获取
**未解码**
的数据, 数据以
***Unicode**
* 编码, *
python
*
可以直接以
`str.encode('utf-8').decode('unicode-escape')`
的形式解码, 可以参考
`./run.py`
.
## 配置相关
每次成功登录后默认会往配置文件
`./cache.passwd.conf`
中写入登录信息,包括:
-
用户名
*(明文 )*
-
密码的
哈希值
*
(
sha256
)
*
-
cookie用AES加密的值
*(密钥为密码明文 )*
-
密码的
*sha256*
哈希值
-
cookie用
*
AES
*
加密的值
*(密钥为密码明文 )*
这种记录方法在绝大多数情况下保证无法从配置文件中获取密码的值,并且在密码不正确时不能获取对应的cookie.
在登录时会首先尝试匹配配置中的信息。成功匹配则直接使用配置中的cookie尝试登录,失败则会向服务器提交数据以获得新的cookie.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment