Skip to content

Commit ffb40d2

Browse files
author
Vadim Bogulean
committed
Initial commit
0 parents  commit ffb40d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+5530
-0
lines changed

.gitignore

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# Temporary files
2+
*~
3+
#*bak
4+
5+
# Byte-compiled / optimized / DLL files
6+
__pycache__/
7+
*.py[cod]
8+
*$py.class
9+
10+
# C extensions
11+
*.so
12+
13+
# Distribution / packaging
14+
.Python
15+
build/
16+
develop-eggs/
17+
dist/
18+
downloads/
19+
eggs/
20+
.eggs/
21+
lib/
22+
lib64/
23+
parts/
24+
sdist/
25+
var/
26+
wheels/
27+
*.egg-info/
28+
.installed.cfg
29+
*.egg
30+
MANIFEST
31+
32+
# PyInstaller
33+
# Usually these files are written by a python script from a template
34+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
35+
*.manifest
36+
*.spec
37+
38+
# Installer logs
39+
pip-log.txt
40+
pip-delete-this-directory.txt
41+
42+
# Unit test / coverage reports
43+
htmlcov/
44+
.tox/
45+
.coverage
46+
.coverage.*
47+
.cache
48+
nosetests.xml
49+
coverage.xml
50+
*.cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
63+
# Flask stuff:
64+
instance/
65+
.webassets-cache
66+
67+
# Scrapy stuff:
68+
.scrapy
69+
70+
# Sphinx documentation
71+
docs/_build/
72+
73+
# PyBuilder
74+
target/
75+
76+
# Jupyter Notebook
77+
.ipynb_checkpoints
78+
79+
# pyenv
80+
.python-version
81+
82+
# celery beat schedule file
83+
celerybeat-schedule
84+
85+
# SageMath parsed files
86+
*.sage.py
87+
88+
# Environments
89+
.env
90+
.venv
91+
env/
92+
venv/
93+
ENV/
94+
env.bak/
95+
venv.bak/
96+
97+
# Spyder project settings
98+
.spyderproject
99+
.spyproject
100+
101+
# Rope project settings
102+
.ropeproject
103+
104+
# mkdocs documentation
105+
/site
106+
107+
# mypy
108+
.mypy_cache/
109+
110+
# Visual Studio Code settings
111+
.vscode/
112+
.code-workspace.code-workspace
113+
.vscode-insiders
114+
115+
# NPM dependencies
116+
node_modules/
117+

ACKNOWLEDGEMENT.md

Whitespace-only changes.

AUTHORS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Primary Authors
2+
===============
3+
4+
* __[Vadim Bogulean](https://github.com/vadimbo)__
5+
6+
@vadimbo is the current maintainer of the code and has written the current code base, for version 1.0.0.
7+
8+
Other Contributors
9+
==================

COPYRIGHT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
Binare Oy (binare.io) © IoT Firmware Cybersecurity, 2020.
2+
3+
FastCVE software is licensed under the BSD 3-Clause [License](./LICENSE.md)
4+
5+
Follows a list of the Open Source Softwares and their respective applicable Open
6+
Source licenses and copyright notices.
7+
8+
Observation: Information may be subject to alteration.
9+
10+
1. Docker PostgreSQL
11+
-------------------------
12+
- Docker PostgreSQL released under the MIT license.
13+
- https://github.com/docker-library/postgres
14+
15+
2. Alembic
16+
--------------------------
17+
- Alembic released under the MIT license
18+
- https://github.com/sqlalchemy/alembic
19+
20+
3. SQLAlchemy
21+
--------------------------
22+
- SQLAlchemy released under the MIT license
23+
- https://github.com/sqlalchemy/sqlalchemy
24+
25+
4. psycopg2
26+
--------------------------
27+
- psycopg2 released under the GNU Lesser General Public License
28+
- https://github.com/psycopg/psycopg2
29+
30+
5. requests
31+
--------------------------
32+
- requests released under the Appache 2.0 License
33+
- https://github.com/psf/requests
34+
35+
6. tqdm
36+
------------------------
37+
- tqdm released under the MIT License
38+
- https://github.com/tqdm/tqdm
39+
40+
7. pytz
41+
------------------------
42+
- pytz released under the MIT License
43+
- https://github.com/stub42/pytz
44+
45+
8. pydantic
46+
------------------------
47+
- pydantic released under the MIT License
48+
- https://github.com/pydantic/pydantic
49+
50+
9. FastAPI
51+
------------------------
52+
- FastAPI released under the MIT License
53+
- https://github.com/tiangolo/fastapi
54+
55+
10. uvicorn
56+
------------------------
57+
- Uvicorn released under the BSD 3-Clause "New" or "Revised" License
58+
- Copyright © 2017-present, Encode OSS Ltd. All rights reserved.
59+
- https://github.com/encode/uvicorn
60+
61+
11. xmltodict
62+
------------------------
63+
- xmltodict released under the MIT License
64+
- https://github.com/martinblech/xmltodict
65+
66+
12. pydantic-argparse
67+
------------------------
68+
- pydantic-argparse released under the MIT License
69+
- https://github.com/SupImDos/pydantic-argparse
70+
71+
13. argcomplete
72+
------------------------
73+
- argcomplete released under the Appache 2.0 License
74+
- https://github.com/kislyuk/argcomplete

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM postgres:13.4-alpine
2+
3+
ENV FCDB_HOME=/fastcve FCDB_NAME=vuln_db POSTGRES_PASSWORD=POSTGRES_PASSWORD FCDB_USER= FCDB_PASS=
4+
ENV PATH $PATH:${FCDB_HOME}
5+
6+
RUN apk add gcc g++ build-base python3-dev py3-pip
7+
8+
WORKDIR ${FCDB_HOME}
9+
10+
COPY ./src/config/requirements.txt /tmp
11+
12+
RUN pip install -r /tmp/requirements.txt
13+
14+
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
15+
COPY ./start_web.sh /always-init.d/start_web.sh
16+
COPY ./src ${FCDB_HOME}
17+
18+
RUN mkdir -p ${FCDB_HOME}/logs && chmod +wx ${FCDB_HOME}/logs \
19+
&& chmod +x ${FCDB_HOME}/db/setup_db.sh \
20+
&& chmod +x ${FCDB_HOME}/db/schema.sh \
21+
&& chmod -x ${FCDB_HOME}/config/setenv.sh \
22+
&& ln -s ${FCDB_HOME}/db/setup_db.sh /docker-entrypoint-initdb.d \
23+
&& ln -s ${FCDB_HOME}/config/setenv.sh /docker-entrypoint-initdb.d \
24+
&& chown -R postgres:postgres ${FCDB_HOME}
25+
26+
USER postgres

LICENSE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2020 to date, Binare Oy (license@binare.io) All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
11+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)