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

数据库初始化失败 #110

Closed
handbye opened this issue Nov 11, 2024 · 7 comments
Closed

数据库初始化失败 #110

handbye opened this issue Nov 11, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@handbye
Copy link

handbye commented Nov 11, 2024

[INFO] 2024/11/11 16:49 add pusher: wechatwork
[INFO] 2024/11/11 16:49 [ctrl]: initialize local database..
[INFO] 2024/11/11 16:49 [ctrl]: start to init data from oscs
[INFO] 2024/11/11 16:49 [oscs]: got 10 vulns from page 1
[INFO] 2024/11/11 16:49 [oscs]: got 10 vulns from page 2
[INFO] 2024/11/11 16:49 [oscs]: got 10 vulns from page 3
[INFO] 2024/11/11 16:49 [oscs]: got 10 vulns from page 4
[INFO] 2024/11/11 16:49 [oscs]: got 10 vulns from page 5
[INFO] 2024/11/11 16:50 [oscs]: got 10 vulns from page 6
[INFO] 2024/11/11 16:50 [oscs]: got 10 vulns from page 7
[INFO] 2024/11/11 16:50 [oscs]: got 10 vulns from page 8
[INFO] 2024/11/11 16:50 [oscs]: got 10 vulns from page 9
[INFO] 2024/11/11 16:50 [oscs]: got 10 vulns from page 10
[INFO] 2024/11/11 16:50 [oscs]: got 10 vulns from page 11
[ERRO] 2024/11/11 16:50 [oscs]: failed to parse https://www.oscs1024.com/hd/MPS-dxnp-u5h3, response error success
[INFO] 2024/11/11 16:50 [oscs]: got 9 vulns from page 12
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 13
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 14
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 15
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 16
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 17
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 18
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 19
[INFO] 2024/11/11 16:51 [oscs]: got 10 vulns from page 20
[ERRO] 2024/11/11 16:51 [ctrl]: init data: oscs: RabbitMQ HTTP API 权限验证绕过漏洞 (https://www.oscs1024.com/hd/MPS-eqbm-uzr4): SQL logic error: no such table: vuln_informations (1)
[FTAL] 2024/11/11 16:51 [main]: failed to run app: SQL logic error: no such table: vuln_informations (1)
exit status 1
@zema1
Copy link
Owner

zema1 commented Nov 11, 2024

麻烦提供一下运行环境信息,如果是 docker 运行的,提供一下 docker 版本

@handbye
Copy link
Author

handbye commented Nov 11, 2024

go 直接编译运行的:

go version
go version go1.23.2 darwin/arm64

go run main.go --db-conn sqlite3:///Users/Downloads/vuln.sqlite3 -s oscs -wk xxx

@handbye
Copy link
Author

handbye commented Nov 11, 2024

https://www.oscs1024.com/hd/MPS-dxnp-u5h3
这个页面是空白的,导致抓取异常
https://www.oscs1024.com/hd/MPS-eqbm-uzr4
这个页面是正常的,不知道为啥会导致数据库初始化异常。

@handbye
Copy link
Author

handbye commented Nov 11, 2024

又发现一个bug

--db-conn sqlite3:///Users/Downloads/vuln.sqlite3

使用这种方式无法在指定目录下创建sqlite3数据库,只能在当前目录创建,好像无法识别/Users/Downloads 这个路径

@zema1 zema1 added the bug Something isn't working label Nov 13, 2024
zema1 added a commit that referenced this issue Nov 13, 2024
@zema1
Copy link
Owner

zema1 commented Nov 13, 2024

https://www.oscs1024.com/hd/MPS-dxnp-u5h3 这个页面是空白的,导致抓取异常 https://www.oscs1024.com/hd/MPS-eqbm-uzr4 这个页面是正常的,不知道为啥会导致数据库初始化异常。

这个不会导致 db 初始化失败,会跳过失败的那个,db 初始化这个问题我再看下

zema1 added a commit that referenced this issue Nov 14, 2024
@zema1
Copy link
Owner

zema1 commented Nov 14, 2024

麻烦再试试最新 main 分支是否还有这些问题

@handbye
Copy link
Author

handbye commented Nov 14, 2024

没问题了,谢谢。

@handbye handbye closed this as completed Nov 14, 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