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

--json 报错 #380

Open
zhangxp12 opened this issue Jul 31, 2023 · 1 comment
Open

--json 报错 #380

zhangxp12 opened this issue Jul 31, 2023 · 1 comment

Comments

@zhangxp12
Copy link

使用 --json 报错
python xsstrike.py -u http://127.0.0.1:8201/post1 --data '{"q":"query"}' --json
报错内容:

Traceback (most recent call last):
File "xsstrike.py", line 143, in
paramData = converter(paramData)
File "D:\project\XSStrike\core\utils.py", line 19, in converter
return json.loads(data)
File "D:\Users\PC\AppData\Local\Programs\Python\Python37\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "D:\Users\PC\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\Users\PC\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@JoJenH
Copy link

JoJenH commented Oct 17, 2023

代码bug,用args从命令行参数取的值,没有双引号导致json解析不了

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