-
Notifications
You must be signed in to change notification settings - Fork 54
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
mysql type error Value type []uint8 into type *time.Time
for various tables
#234
Comments
Same issue when actually searching $ go-exploitdb search --param "CVE-2021-3156" --dbtype mysql --dbpath "goexploitdb:passwd@tcp(serverhostname:3306)" --debug
Failed to get OffensiveSecurity. err: sql: Scan error on column index 4, name "date_published": unsupported Scan, storing driver.Value type []uint8 into type *time.Time |
Value type []uint8 into type *time.Time
for various tables
@FalcoGer $ go-exploitdb fetch awesomepoc --dbtype mysql --dbpath "root:password@tcp(127.0.0.1:3306)/test"
INFO[02-04|09:59:27] Fetching Awesome Poc Exploit
INFO[02-04|09:59:27] Awesome Poc Exploit count=823
INFO[02-04|09:59:27] Insert Exploit into go-exploitdb. db=mysql
INFO[02-04|09:59:27] Inserting 823 Exploits
INFO[02-04|09:59:27] Inserting new Exploits
823 / 823 [-----------------------------------------------------------------------------------------] 100.00% 4108 p/s
INFO[02-04|09:59:27] No CveID Exploit Count count=0
INFO[02-04|09:59:27] CveID Exploit Count count=823
$ go-exploitdb fetch awesomepoc --dbtype mysql --dbpath "root:password@tcp(127.0.0.1:3306)/test"
Failed to get FetchMeta from DB. err: sql: Scan error on column index 1, name "created_at": unsupported Scan, storing driver.Value type []uint8 into type *time.Time
$ go-exploitdb fetch awesomepoc --dbtype mysql --dbpath "root:password@tcp(127.0.0.1:3306)/test?parseTime=true"
INFO[02-04|09:59:41] Fetching Awesome Poc Exploit
INFO[02-04|09:59:41] Awesome Poc Exploit count=823
INFO[02-04|09:59:41] Insert Exploit into go-exploitdb. db=mysql
INFO[02-04|09:59:41] Inserting 823 Exploits
INFO[02-04|09:59:41] Deleting old Exploits
823 / 823 [--------------------------------------------------------------------------------------------] 100.00% ? p/s
INFO[02-04|09:59:41] Inserting new Exploits
823 / 823 [--------------------------------------------------------------------------------------------] 100.00% ? p/s
INFO[02-04|09:59:42] No CveID Exploit Count count=0
INFO[02-04|09:59:42] CveID Exploit Count count=823 |
that does it. but I don't know why. |
The reason is as follows.
https://github.com/go-sql-driver/mysql?tab=readme-ov-file#parsetime |
What did you do? (required. The issue will be closed when not provided.)
I fetched exploitdb, then trying to fetch awesomepoc, yielded an error message.
Clearing the
fetch_meta
table allowed me to fetch the awesomepoc data without that error.What did you expect to happen?
What happened instead?
Please re-run the command using
-debug
and provide the output below.Steps to reproduce the behaviour
fetch
command. This will initially work.Failed to get FetchMeta from DB. err: sql: Scan error on column index 1, name "created_at": unsupported Scan, storing driver.Value type []uint8 into type *time.Time
Configuration (MUST fill this out):
go version
):go version go1.23.4 linux/amd64
go env
):7d2fc13a9f55fa36e545077c9dfb63c3db0d099c
go-exploitdb v0.5.0 7d2fc13
The text was updated successfully, but these errors were encountered: