Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

程序对输入的信息敏感 #149

Open
ELMeight opened this issue Nov 20, 2024 · 3 comments
Open

程序对输入的信息敏感 #149

ELMeight opened this issue Nov 20, 2024 · 3 comments

Comments

@ELMeight
Copy link

问题描述
微信号有字符要求,但是微信名称没有限制。
输入的信息存在re的匹配字符时代码报错re.error: nothing to repeat at position 0

复现步骤
import re
name = "--_-"
name1 = ".
?__--"
def pp(name=br'\Msg\FTSContact'):
name = re.compile(pattern)
name = re.compile(re.escape(pattern))

pp(name.encode("utf-8"))

代码的re.compile()好像没设置关键字转义

@xaoyaoo
Copy link
Owner

xaoyaoo commented Nov 21, 2024

这是哪部分代码?

@ELMeight
Copy link
Author

上面的是我自己复现的,源码在memory_search.py中pattern = re.compile(pattern)

@ELMeight
Copy link
Author

在命令行执行时wxdump bias --mobile 1xxx --name *--_- --account xxxx 会出现上述代码的错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants