AuthLite PowerOn初步实现和其他改进

This commit is contained in:
Remik1r3n
2025-02-21 23:34:49 +08:00
parent 47cbd5b09a
commit 55bd19717a
10 changed files with 177 additions and 57 deletions

View File

@@ -1,28 +0,0 @@
import os
import re
pattern = re.compile(r'Maimai2Servlet/(.*?)MaimaiChn')
# 获取目录
dir = 'C:/Users/remik1r3n/Workspace/maimaiDX-Api/HashEntertainment'
known_hashes = []
for filename in os.listdir(dir):
# 只处理.txt文件
if filename.endswith('.txt'):
file_path = os.path.join(dir, filename)
with open(file_path, 'r', encoding='utf-8') as file:
content = file.read()
# 搜索匹配的模式
matches = pattern.findall(content)
# 输出每个匹配中的不定内容
for match in matches:
known_hashes.append(match)
# 去重
known_hashes = list(set(known_hashes))
# 输出
for hash in known_hashes:
print(hash)