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

可以通过yaml文件加载poc吗? #93

Closed
lovelyjuice opened this issue Sep 9, 2024 · 2 comments
Closed

可以通过yaml文件加载poc吗? #93

lovelyjuice opened this issue Sep 9, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@lovelyjuice
Copy link

比如--poc xxx.yaml
我这里有很多poc,但是打包进去会反序列化错误(generate的时候不会报错,但是扫描的时候会报错)

[-] neutron config load FAIL!, json: cannot unmarshal number into Go struct field Request.http.headers of type string

其中一个错误的原因:下面的判断条件nuclei是可以解析的,但是转换成json就会无法识别是布尔变量还是字符串变量

  matchers:
  - type: word
    part: body
    words:
    - false

改成

  matchers:
  - type: word
    part: body
    words:
    - 'false'

之后就正常了,我现在想要找出哪些poc有问题,就得用二分法在几百个poc里面找。。。如果能用命令行加载poc,我可以批量检测是哪些poc不兼容

@M09Ic
Copy link
Contributor

M09Ic commented Sep 9, 2024

yaml与json应该是可以无缝转换的, 可以试试换个库。

确实现在需要一个poc validate, 我会在neutron中尽快实现这个功能

@M09Ic M09Ic added the enhancement New feature or request label Sep 9, 2024
@M09Ic
Copy link
Contributor

M09Ic commented Sep 24, 2024

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

No branches or pull requests

2 participants