Giter VIP home page Giter VIP logo

go-msfdb's People

Contributors

dependabot[bot] avatar kotakanbe avatar mainek00n avatar sadayuki-matsuno avatar segatomo avatar takuzoo3868 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

go-msfdb's Issues

Data too long for column 'description' in MySQL

EROR[11-14|18:42:11] Failed to insert. dbpath="vuls:vuls@tcp(localhost:3306)/msfdb?parseTime=true" err="Failed to insert. err: Error 1406: Data too long for column 'description' at row 1"
Failed to insert. err: Error 1406: Data too long for column 'description' at row 1

It needs to change SQL data type to TEXT

If cachedir can't be created there are no data in DBs

IIUC if cachedir can't be created there are no data in DBs.

# docker inspect 82d740cc0095 | jq -r '.[] | .RepoDigests'
[
  "vuls/go-msfdb@sha256:a0cc1b90e1d3b500b6d9127fb8e5d0b9ffe33da2bc7bdb410c853107ecb53814"
]
t=2020-07-14T12:36:43+0000 lvl=info msg="Opening DB" db=sqlite3
t=2020-07-14T12:36:43+0000 lvl=info msg="Init DB" db=sqlite3
t=2020-07-14T12:36:43+0000 lvl=info msg="Migrating DB" db=sqlite3
t=2020-07-14T12:36:43+0000 lvl=info msg="Fetching vulsio/msfdb-list"
t=2020-07-14T12:36:43+0000 lvl=info msg="git clone" repo=/.cache/go-msfdb/msfdb-list
t=2020-07-14T12:36:43+0000 lvl=eror msg="Failed to fetch vulsio/msfdb-list" err="mkdir /.cache: permission denied"
sqlite> .tables
edbs         metasploits  msf_edbs     msf_refs     references 
sqlite> .schema metasploits;
sqlite> 
sqlite> .schema mtasploits
sqlite> select * from metasploits;
sqlite> .quit

I solved it this way:

--mount type=tmpfs,destination=/cache,tmpfs-mode=1777 -e XDG_CACHE_HOME=/cache -u <myuser>:<myuser>
# sqlite3 /data/vuls/data/go-msfdb.sqlite3 '.schema metasploits'
CREATE TABLE "metasploits" ("id" integer primary key autoincrement,"created_at" datetime,"updated_at" datetime,"deleted_at" datetime,"name" varchar(255),"title" varchar(255),"description" varchar(255),"cve_id" varchar(255) );
CREATE INDEX idx_metasploits_deleted_at ON "metasploits"(deleted_at) ;
CREATE INDEX idx_metasploit_cve_id ON "metasploits"(cve_id) ;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.