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

v2.0.6版本新增参数-l展示poc时存在兼容性问题 #400

Closed
geelph opened this issue Dec 29, 2023 · 2 comments · Fixed by #407
Closed

v2.0.6版本新增参数-l展示poc时存在兼容性问题 #400

geelph opened this issue Dec 29, 2023 · 2 comments · Fixed by #407
Labels
bug Something isn't working

Comments

@geelph
Copy link

geelph commented Dec 29, 2023

测试环境:
windows
v2.0.6

问题显示:
python3 cli.py -l
image
yaml poc 显示错位

问题定位:
调试发现名称末尾存在\r
image

不同系统回车换行的问题

定位代码位置:pocsuite3\lib\core\common.py 585行
image

临时解决:

return extract_regex_result(r"""(?sm)\s*name\s*:\s*(?P<result>[^\r\n]*).*matchers:""", code)
@wh0am1i
Copy link
Collaborator

wh0am1i commented Dec 29, 2023

copy that,所以你的文件名为啥会有 \r 呢

@geelph
Copy link
Author

geelph commented Dec 30, 2023

copy that,所以你的文件名为啥会有 \r 呢

在Windows上创建的yaml默认换行为0d0a

@wh0am1i wh0am1i added the bug Something isn't working label Jan 2, 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

Successfully merging a pull request may close this issue.

2 participants