diff --git a/Cargo.toml b/Cargo.toml index 857205d..175c415 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,14 +9,20 @@ tokio-macros = "2.4.0" reqwest = "0.12.5" log = "0.4.22" env_logger = "0.8" +clap = "3.0" url = "2.2" percent-encoding = "2.1" trust-dns-resolver = "0.20" select = "0.5" scraper = "0.12" arboard = "3.4.0" - +aes = "0.7" +block-modes = "0.8" +rand = "0.8" # 哈希库 winapi = { version = "0.3.9", features = ["winuser", "psapi"] } +base64 = "0.21" +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" [profile.test] env = { "RUST_LOG" = "debug" } diff --git a/info.json b/info.json new file mode 100755 index 0000000..c13ff43 --- /dev/null +++ b/info.json @@ -0,0 +1,6 @@ +{ + "cookies": "", + "magic": "3", + "password": "ZWtrb2Jhb19fX19fX19fXzlytojwgd3qVW7PNYs7Y9s=", + "user_name": "ekko.bao" +} \ No newline at end of file diff --git a/python_flask_http_server/server.py b/python_flask_http_server/server.py new file mode 100755 index 0000000..915f56b --- /dev/null +++ b/python_flask_http_server/server.py @@ -0,0 +1,24 @@ +from flask import Flask, send_from_directory, request,jsonify +import sys +app = Flask(__name__) + +@app.route('/SSWeb/rd/copy_paste.jsp') +def copy_paste(): + return send_from_directory('templates', 'copy_paste.html') + +@app.route('/SSWeb/rd/copy_paste.jsp', methods=['POST']) +def recive_msg(): + # 获取查询参数 + send_param = request.args.get('send') + if not send_param: + return jsonify({ + "zz": "must send query param" + }) + # 获取 JSON 数据 + data = request.get_data().decode() + print(f"msg is [{data}]\n") + return send_from_directory('templates', 'copy_paste.html') + +if __name__ == '__main__': + sys.stdout.reconfigure(encoding='utf-8') + app.run(host='0.0.0.0', port=5000) diff --git a/python_flask_http_server/templates/copy_paste.html b/python_flask_http_server/templates/copy_paste.html new file mode 100755 index 0000000..6ee7c8a --- /dev/null +++ b/python_flask_http_server/templates/copy_paste.html @@ -0,0 +1,513 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + ++ Message + | ++ Create_Date_Time + | +
---|---|
+
+ |
+ 2022-10-20 11:25:09.92 | +
+
+ |
+ 2022-10-20 11:24:14.543 | +
+
+ |
+ 2022-10-11 17:15:46.733 | +
+
+ |
+ 2022-09-15 10:06:45.327 | +
+
+ |
+ 2022-09-14 15:18:48.05 | +
+
+ |
+ 2022-09-08 11:53:33.86 | +
+
+ |
+ 2022-09-05 10:04:31.997 | +
+
+ |
+ 2022-08-09 20:08:09.93 | +
+
+ |
+ 2022-08-09 20:01:22.627 | +
+
+ |
+ 2022-07-11 11:20:22.407 | +
+
+ |
+ 2022-06-22 11:05:09.673 | +
+
+ |
+ 2022-06-20 16:00:29.843 | +
+
+ |
+ 2022-06-14 19:56:49.29 | +
+
+ |
+ 2022-03-02 21:45:44.06 | +
+
+ |
+ 2022-03-02 21:45:16.637 | +
+
+ |
+ 2022-03-01 21:42:29.107 | +
+
+ |
+ 2022-03-01 21:42:15.73 | +
+
+ |
+ 2022-02-28 21:46:52.983 | +
+
+ |
+ 2022-02-25 16:51:25.16 | +
+
+ |
+ 2022-02-25 15:40:49.633 | +
+
+ |
+ 2022-02-24 21:34:01.697 | +
+
+ |
+ 2022-02-23 21:41:34.017 | +
+
+ |
+ 2022-02-21 21:40:54.953 | +
+
+ |
+ 2022-02-08 21:26:28.69 | +
+
+ |
+ 2022-02-07 18:04:37.017 | +
+
+ |
+ 2022-01-27 10:10:16.68 | +
+
+ |
+ 2022-01-27 10:10:14.037 | +
+
+ |
+ 2022-01-26 21:51:48.77 | +
+
+ |
+ 2022-01-26 21:51:32.287 | +
+
+ |
+ 2022-01-26 11:05:20.77 | +
+
+ |
+ 2022-01-26 11:04:23.627 | +
+
+ |
+ 2022-01-25 21:35:52.353 | +
+
+ |
+ 2022-01-25 21:35:44.177 | +
+
+ |
+ 2022-01-24 21:33:03.9 | +
+
+ |
+ 2022-01-24 21:32:46.773 | +
+
+ |
+ 2022-01-21 21:39:55.213 | +
+
+ |
+ 2022-01-19 21:34:06.807 | +
+
+ |
+ 2022-01-19 10:12:20.44 | +
+
+ |
+ 2022-01-18 16:48:57.65 | +
+
+ |
+ 2022-01-18 10:37:18.5 | +
+
+ |
+ 2022-01-17 21:40:56.903 | +
+
+ |
+ 2022-01-17 18:00:31.783 | +
+
+ |
+ 2022-01-14 21:01:21.743 | +
+
+ |
+ 2022-01-14 10:06:00.52 | +
+
+ |
+ 2022-01-14 09:45:05.487 | +
+
+ |
+ 2022-01-14 09:44:40.43 | +
+
+ |
+ 2022-01-13 21:55:37.52 | +
+
+ |
+ 2022-01-13 21:49:28.853 | +
+
+ |
+ 2022-01-13 16:39:14.647 | +
+
+ |
+ 2022-01-13 11:24:59.05 | +