|
|
发表于 2025-10-7 10:17:18
|
显示全部楼层
是的,完全没有任何处理,以下是整个软件的全部代码(由pyinstxtractor 和decompyle3软件得到可自行网上下载验证真伪):
- import os, sys, time, binascii
- def display_hello_world():
- print("Welcome To HiFi World!")
- print("HiFi Plus+ AudioFileRebuilder V1.2预览版")
- print("Copyright(C)版权所有 From SDK")
- def get_user_input(prompt):
- return input(prompt).strip()
- def is_file_or_folder(path):
- if os.path.isfile(path):
- return ('文件', 1)
- else:
- if os.path.isdir(path):
- return ('文件夹', 0)
- return (None, None)
- def get_file_modification_time(file_path):
- return os.path.getmtime(file_path)
- def set_file_modification_time(file_path, modification_time):
- os.utime(file_path, (modification_time, modification_time))
- def strip_quotes_from_path(input_path):
- if input_path.startswith('"') and input_path.endswith('"'):
- path = input_path[1:-1]
- else:
- path = input_path
- return path
- def process_file(file_path, F):
- try:
- original_mod_time = get_file_modification_time(file_path)
- with open(file_path, "rb+") as file:
- original_first_byte = file.read(1)
- if original_first_byte:
- print("文件 {}: 读取成功!".format(file_path))
- else:
- print("文件 {}: 无法读取(可能是空文件)".format(file_path))
- return
- if F == 1:
- input("按回车开始处理文件...")
- file.seek(0)
- file.write(b'\x00')
- if F == 1:
- print("文件分析中...")
- time.sleep(2)
- file.seek(0)
- file.write(original_first_byte)
- file.close()
- if F == 1:
- print("文件处理中...")
- time.sleep(2)
- set_file_modification_time(file_path, original_mod_time)
- print("文件 {}: HiFi文件已生成完毕!".format(file_path))
- if F == 1:
- print("结束")
- except Exception as e:
- print("处理文件 {} 时出错: {}".format(file_path, e))
- def process_folder(folder_path, F):
- modified_files = []
- for root, dirs, files in os.walk(folder_path):
- for file in files:
- file_path = os.path.join(root, file)
- process_file(file_path, F)
- modified_files.append(file_path)
- print("已修改文件数量: {}".format(len(modified_files)))
- input("按回车继续...")
- def main():
- display_hello_world()
- while True:
- input_path = get_user_input("请输入文件完整路径: ")
- path = strip_quotes_from_path(input_path)
- file_or_folder, F = is_file_or_folder(path)
- if file_or_folder == "文件":
- if os.path.exists(path):
- print("{} 存在,是一个文件。".format(path, F))
- process_file(path, F)
- input("按回车退出")
- sys.exit(1)
- else:
- print("{} 不存在。".format(path))
- input("按回车继续...")
- elif file_or_folder == "文件夹":
- print("{} 不是一个有效的文件。".format(path))
- input("按回车继续...")
- else:
- print("{} 不是一个有效的文件。".format(path))
- input("按回车继续...")
- if __name__ == "__main__":
- main()
复制代码
如果看不懂可以随便丢进任何AI询问代码作用 |
|