diff --git a/.gitattributes b/.gitattributes index 07fe41c..43817b4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + # GitHub syntax highlighting pixi.lock linguist-language=YAML linguist-generated=true diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 8359a22..5a3346f 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -1,3 +1,9 @@ + + # Blint-db Github Workflow ## Description diff --git a/.github/workflows/build-meson-tst.yml b/.github/workflows/build-meson-tst.yml index a2d03d3..8073007 100644 --- a/.github/workflows/build-meson-tst.yml +++ b/.github/workflows/build-meson-tst.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + name: Build and Upload meson blint-db 0.1.0 on: diff --git a/.github/workflows/build-meson.yml b/.github/workflows/build-meson.yml index 57d2672..e5c09a4 100644 --- a/.github/workflows/build-meson.yml +++ b/.github/workflows/build-meson.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + name: Build and Upload meson blint-db 0.1.0 on: diff --git a/.github/workflows/build-vcpkg-tst.yml b/.github/workflows/build-vcpkg-tst.yml index 565521e..5db32eb 100644 --- a/.github/workflows/build-vcpkg-tst.yml +++ b/.github/workflows/build-vcpkg-tst.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + name: Build and Upload vcpkg blint-db 0.1.0 on: diff --git a/.gitignore b/.gitignore index b0a822a..8293a2b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + # temp scripts temp/ build/ diff --git a/.oras/annotations.json.license b/.oras/annotations.json.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/.oras/annotations.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/.oras/config.json.license b/.oras/config.json.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/.oras/config.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/.oras/orasclient.py b/.oras/orasclient.py index 5212c85..d0aa237 100644 --- a/.oras/orasclient.py +++ b/.oras/orasclient.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import argparse import os diff --git a/.vscode/launch.json.license b/.vscode/launch.json.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/.vscode/launch.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/.vscode/settings.json.license b/.vscode/settings.json.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/.vscode/settings.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/.vscode/tasks.json.license b/.vscode/tasks.json.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/.vscode/tasks.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/.vscode/vscode_init.sh b/.vscode/vscode_init.sh index 74a082f..bc92e5c 100644 --- a/.vscode/vscode_init.sh +++ b/.vscode/vscode_init.sh @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + conda deactivate source ./venv/bin/activate \ No newline at end of file diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..bc1a915 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2024 AppThreat + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index b043f05..8644d9d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # Symbols-db Blint-db is a binary database powered by OWASP blint. diff --git a/blint_db/__init__.py b/blint_db/__init__.py index cab4926..1ff4998 100644 --- a/blint_db/__init__.py +++ b/blint_db/__init__.py @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + # noqa: F403,F401 from blint_db.config import * diff --git a/blint_db/cli.py b/blint_db/cli.py index 1d80b3f..dcf1ad3 100644 --- a/blint_db/cli.py +++ b/blint_db/cli.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import argparse import os import shutil diff --git a/blint_db/config.py b/blint_db/config.py index a125f45..45868f5 100644 --- a/blint_db/config.py +++ b/blint_db/config.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import logging import os import sqlite3 diff --git a/blint_db/handlers/blint_handler.py b/blint_db/handlers/blint_handler.py index e00ae44..59df1a3 100644 --- a/blint_db/handlers/blint_handler.py +++ b/blint_db/handlers/blint_handler.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import subprocess from pathlib import Path diff --git a/blint_db/handlers/git_handler.py b/blint_db/handlers/git_handler.py index 21a1f8b..8b5a3c9 100644 --- a/blint_db/handlers/git_handler.py +++ b/blint_db/handlers/git_handler.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import subprocess from blint_db import DEBUG_MODE diff --git a/blint_db/handlers/language_handlers/__init__.py b/blint_db/handlers/language_handlers/__init__.py index fd88d0c..8e7c342 100644 --- a/blint_db/handlers/language_handlers/__init__.py +++ b/blint_db/handlers/language_handlers/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import subprocess from blint_db import WRAPDB_LOCATION diff --git a/blint_db/handlers/language_handlers/meson_handler.py b/blint_db/handlers/language_handlers/meson_handler.py index d341d17..71f80cb 100644 --- a/blint_db/handlers/language_handlers/meson_handler.py +++ b/blint_db/handlers/language_handlers/meson_handler.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import os import shutil import subprocess diff --git a/blint_db/handlers/language_handlers/vcpkg_handler.py b/blint_db/handlers/language_handlers/vcpkg_handler.py index 9b0e60f..15424a7 100644 --- a/blint_db/handlers/language_handlers/vcpkg_handler.py +++ b/blint_db/handlers/language_handlers/vcpkg_handler.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import os import subprocess diff --git a/blint_db/handlers/language_handlers/wrapdb_handler.py b/blint_db/handlers/language_handlers/wrapdb_handler.py index d4c016e..100a193 100644 --- a/blint_db/handlers/language_handlers/wrapdb_handler.py +++ b/blint_db/handlers/language_handlers/wrapdb_handler.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import os from pathlib import Path diff --git a/blint_db/handlers/sqlite_handler.py b/blint_db/handlers/sqlite_handler.py index 6f97ae7..0bd768c 100644 --- a/blint_db/handlers/sqlite_handler.py +++ b/blint_db/handlers/sqlite_handler.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import datetime import os import sqlite3 diff --git a/blint_db/projects_compiler/meson.py b/blint_db/projects_compiler/meson.py index 5b849d9..0beac9e 100644 --- a/blint_db/projects_compiler/meson.py +++ b/blint_db/projects_compiler/meson.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import shutil import traceback from sqlite3 import OperationalError diff --git a/blint_db/projects_compiler/vcpkg.py b/blint_db/projects_compiler/vcpkg.py index 4b5c951..484b8a5 100644 --- a/blint_db/projects_compiler/vcpkg.py +++ b/blint_db/projects_compiler/vcpkg.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import os import subprocess import traceback diff --git a/blint_db/utils/__init__.py b/blint_db/utils/__init__.py index af22491..e425770 100644 --- a/blint_db/utils/__init__.py +++ b/blint_db/utils/__init__.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import os from pathlib import Path diff --git a/blint_db/utils/json.py b/blint_db/utils/json.py index f421aca..fc2ef6f 100644 --- a/blint_db/utils/json.py +++ b/blint_db/utils/json.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import json diff --git a/blint_db/utils/utils.py b/blint_db/utils/utils.py index f383236..5d496e9 100644 --- a/blint_db/utils/utils.py +++ b/blint_db/utils/utils.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + from blint_db import DEBUG_MODE, WRAPDB_LOCATION, logger diff --git a/poetry.lock.license b/poetry.lock.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/poetry.lock.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/pyproject.toml b/pyproject.toml index 8003ca0..d0697cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + [tool.poetry] name = "blint-db" version = "0.1.0" diff --git a/tests/blint_librdkafka.json.license b/tests/blint_librdkafka.json.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/tests/blint_librdkafka.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/tests/cdxgen_ouch_rust.json.license b/tests/cdxgen_ouch_rust.json.license new file mode 100644 index 0000000..d2712a2 --- /dev/null +++ b/tests/cdxgen_ouch_rust.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 AppThreat + +SPDX-License-Identifier: MIT diff --git a/tests/scripts/explore_json_all_func.py b/tests/scripts/explore_json_all_func.py index 0ba1855..735f591 100644 --- a/tests/scripts/explore_json_all_func.py +++ b/tests/scripts/explore_json_all_func.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import json from tests.scripts.match_internal_functions_withdb import get_pname_bname diff --git a/tests/scripts/get_internal_functions.py b/tests/scripts/get_internal_functions.py index a8e0312..4a6bf73 100644 --- a/tests/scripts/get_internal_functions.py +++ b/tests/scripts/get_internal_functions.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import argparse import concurrent import concurrent.futures diff --git a/tests/scripts/match_internal_functions_withdb.py b/tests/scripts/match_internal_functions_withdb.py index 0c9631e..dd4a0eb 100644 --- a/tests/scripts/match_internal_functions_withdb.py +++ b/tests/scripts/match_internal_functions_withdb.py @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 AppThreat +# +# SPDX-License-Identifier: MIT + import sqlite3 from contextlib import closing from pathlib import Path