Files
revsuit/internal/database/db.go
T
Li4n0 3559894acc feat: complete basic functions
Support http,dns and mysql connection. Support custom http, dns response. Support dns rebinding.
Support mysql load local files and jdbc deserialize exploit.
2021-04-21 18:55:16 +08:00

14 lines
178 B
Go

package database
import "gorm.io/gorm"
var DB *gorm.DB
func InitDB(driver, dsn string) (err error) {
switch driver {
case "sqlite":
DB, err = NewSqlite3(dsn)
}
return
}