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

路径含有特殊字符提取报错 #76

Open
Secur1ty0 opened this issue Jul 2, 2023 · 0 comments
Open

路径含有特殊字符提取报错 #76

Secur1ty0 opened this issue Jul 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Secur1ty0
Copy link

大佬好,在提取路径时候含有特殊字符会导致报错:
image
建议增加空值判断以及特殊字符转义处理。Packer-Fuzzer-1.4/lib/Database.py改动代码如下:
import pymysql

if api_path.split("/")[-1]=="": pathsplit = "/" else: pathsplit = api_path.split("/")[-1] sql = "insert into api_tree(path,name,from_js) values(\"" + pymysql.converters.escape_string(api_path) + "\",\"" + pymysql.converters.escape_string(pathsplit) + "\"," + str(jsFileID) + ")"
`

@rtcatc rtcatc added the bug Something isn't working label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants