binary-inspector 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- binary_inspector-0.1.0/.gitattributes +3 -0
- binary_inspector-0.1.0/.github/workflows/docs-ci.yml +34 -0
- binary_inspector-0.1.0/.github/workflows/pypi-release.yml +83 -0
- binary_inspector-0.1.0/.gitignore +74 -0
- binary_inspector-0.1.0/.readthedocs.yml +29 -0
- binary_inspector-0.1.0/AUTHORS.rst +5 -0
- binary_inspector-0.1.0/CHANGELOG.rst +13 -0
- binary_inspector-0.1.0/CODE_OF_CONDUCT.rst +86 -0
- binary_inspector-0.1.0/MANIFEST.in +15 -0
- binary_inspector-0.1.0/Makefile +54 -0
- binary_inspector-0.1.0/NOTICE +19 -0
- binary_inspector-0.1.0/PKG-INFO +192 -0
- binary_inspector-0.1.0/README.rst +145 -0
- binary_inspector-0.1.0/apache-2.0.LICENSE +201 -0
- binary_inspector-0.1.0/azure-pipelines.yml +16 -0
- binary_inspector-0.1.0/configure +202 -0
- binary_inspector-0.1.0/configure.bat +207 -0
- binary_inspector-0.1.0/docs/Makefile +28 -0
- binary_inspector-0.1.0/docs/make.bat +47 -0
- binary_inspector-0.1.0/docs/scripts/doc8_style_check.sh +5 -0
- binary_inspector-0.1.0/docs/scripts/sphinx_build_link_check.sh +5 -0
- binary_inspector-0.1.0/docs/source/_static/theme_overrides.css +26 -0
- binary_inspector-0.1.0/docs/source/conf.py +116 -0
- binary_inspector-0.1.0/docs/source/contribute/contrib_doc.rst +314 -0
- binary_inspector-0.1.0/docs/source/index.rst +15 -0
- binary_inspector-0.1.0/etc/ci/azure-container-deb.yml +50 -0
- binary_inspector-0.1.0/etc/ci/azure-container-rpm.yml +51 -0
- binary_inspector-0.1.0/etc/ci/azure-posix.yml +39 -0
- binary_inspector-0.1.0/etc/ci/azure-win.yml +39 -0
- binary_inspector-0.1.0/etc/ci/install_sudo.sh +15 -0
- binary_inspector-0.1.0/etc/ci/macports-ci +304 -0
- binary_inspector-0.1.0/etc/ci/macports-ci.ABOUT +16 -0
- binary_inspector-0.1.0/etc/ci/mit.LICENSE +5 -0
- binary_inspector-0.1.0/etc/scripts/README.rst +112 -0
- binary_inspector-0.1.0/etc/scripts/check_thirdparty.py +56 -0
- binary_inspector-0.1.0/etc/scripts/fetch_thirdparty.py +320 -0
- binary_inspector-0.1.0/etc/scripts/gen_pypi_simple.py +315 -0
- binary_inspector-0.1.0/etc/scripts/gen_pypi_simple.py.ABOUT +8 -0
- binary_inspector-0.1.0/etc/scripts/gen_pypi_simple.py.NOTICE +56 -0
- binary_inspector-0.1.0/etc/scripts/gen_requirements.py +57 -0
- binary_inspector-0.1.0/etc/scripts/gen_requirements_dev.py +68 -0
- binary_inspector-0.1.0/etc/scripts/requirements.txt +12 -0
- binary_inspector-0.1.0/etc/scripts/test_utils_pip_compatibility_tags.py +130 -0
- binary_inspector-0.1.0/etc/scripts/test_utils_pip_compatibility_tags.py.ABOUT +14 -0
- binary_inspector-0.1.0/etc/scripts/test_utils_pypi_supported_tags.py +92 -0
- binary_inspector-0.1.0/etc/scripts/test_utils_pypi_supported_tags.py.ABOUT +17 -0
- binary_inspector-0.1.0/etc/scripts/utils_dejacode.py +214 -0
- binary_inspector-0.1.0/etc/scripts/utils_pip_compatibility_tags.py +192 -0
- binary_inspector-0.1.0/etc/scripts/utils_pip_compatibility_tags.py.ABOUT +14 -0
- binary_inspector-0.1.0/etc/scripts/utils_pypi_supported_tags.py +105 -0
- binary_inspector-0.1.0/etc/scripts/utils_pypi_supported_tags.py.ABOUT +17 -0
- binary_inspector-0.1.0/etc/scripts/utils_requirements.py +160 -0
- binary_inspector-0.1.0/etc/scripts/utils_thirdparty.py +2317 -0
- binary_inspector-0.1.0/etc/scripts/utils_thirdparty.py.ABOUT +15 -0
- binary_inspector-0.1.0/pyproject.toml +52 -0
- binary_inspector-0.1.0/requirements-dev.txt +0 -0
- binary_inspector-0.1.0/requirements.txt +4 -0
- binary_inspector-0.1.0/setup.cfg +72 -0
- binary_inspector-0.1.0/setup.py +6 -0
- binary_inspector-0.1.0/src/binary_inspector/__init.py +9 -0
- binary_inspector-0.1.0/src/binary_inspector/binary.py +264 -0
- binary_inspector-0.1.0/src/binary_inspector/blint_binary.py +1343 -0
- binary_inspector-0.1.0/src/binary_inspector/blint_binary.py.ABOUT +11 -0
- binary_inspector-0.1.0/src/binary_inspector/blint_binary.py.LICENSE +21 -0
- binary_inspector-0.1.0/src/binary_inspector/config.py +42 -0
- binary_inspector-0.1.0/src/binary_inspector/plugin.py +80 -0
- binary_inspector-0.1.0/src/binary_inspector.egg-info/PKG-INFO +192 -0
- binary_inspector-0.1.0/src/binary_inspector.egg-info/SOURCES.txt +80 -0
- binary_inspector-0.1.0/src/binary_inspector.egg-info/dependency_links.txt +1 -0
- binary_inspector-0.1.0/src/binary_inspector.egg-info/entry_points.txt +3 -0
- binary_inspector-0.1.0/src/binary_inspector.egg-info/not-zip-safe +1 -0
- binary_inspector-0.1.0/src/binary_inspector.egg-info/requires.txt +25 -0
- binary_inspector-0.1.0/src/binary_inspector.egg-info/top_level.txt +1 -0
- binary_inspector-0.1.0/tests/data/macho/Lumen +0 -0
- binary_inspector-0.1.0/tests/data/macho/Lumen-symbols-plugin.json +91 -0
- binary_inspector-0.1.0/tests/data/macho/Lumen-symbols.json +84 -0
- binary_inspector-0.1.0/tests/data/winpe/TranslucentTB-setup.exe +0 -0
- binary_inspector-0.1.0/tests/data/winpe/TranslucentTB-symbols-plugin.json +149 -0
- binary_inspector-0.1.0/tests/data/winpe/TranslucentTB-symbols.json +142 -0
- binary_inspector-0.1.0/tests/test_binary.py +69 -0
- binary_inspector-0.1.0/tests/test_plugin.py +36 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: CI Documentation
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
runs-on: ubuntu-24.04
|
|
8
|
+
|
|
9
|
+
strategy:
|
|
10
|
+
max-parallel: 4
|
|
11
|
+
matrix:
|
|
12
|
+
python-version: [3.12]
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout code
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
19
|
+
uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: ${{ matrix.python-version }}
|
|
22
|
+
|
|
23
|
+
- name: Install Dependencies
|
|
24
|
+
run: pip install -e .[docs]
|
|
25
|
+
|
|
26
|
+
- name: Check Sphinx Documentation build minimally
|
|
27
|
+
working-directory: ./docs
|
|
28
|
+
run: sphinx-build -E -W source build
|
|
29
|
+
|
|
30
|
+
- name: Check for documentation style errors
|
|
31
|
+
working-directory: ./docs
|
|
32
|
+
run: ./scripts/doc8_style_check.sh
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
name: Create library release archives, create a GH release and publish PyPI wheel and sdist on tag in main branch
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# This is executed automatically on a tag in the main branch
|
|
5
|
+
|
|
6
|
+
# Summary of the steps:
|
|
7
|
+
# - build wheels and sdist
|
|
8
|
+
# - upload wheels and sdist to PyPI
|
|
9
|
+
# - create gh-release and upload wheels and dists there
|
|
10
|
+
# TODO: smoke test wheels and sdist
|
|
11
|
+
# TODO: add changelog to release text body
|
|
12
|
+
|
|
13
|
+
# WARNING: this is designed only for packages building as pure Python wheels
|
|
14
|
+
|
|
15
|
+
on:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
push:
|
|
18
|
+
tags:
|
|
19
|
+
- "v*.*.*"
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
build-pypi-distribs:
|
|
23
|
+
name: Build and publish library to PyPI
|
|
24
|
+
runs-on: ubuntu-24.04
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v4
|
|
28
|
+
- name: Set up Python
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: 3.12
|
|
32
|
+
|
|
33
|
+
- name: Install pypa/build
|
|
34
|
+
run: python -m pip install build --user
|
|
35
|
+
|
|
36
|
+
- name: Build a binary wheel and a source tarball
|
|
37
|
+
run: python -m build --sdist --wheel --outdir dist/
|
|
38
|
+
|
|
39
|
+
- name: Upload built archives
|
|
40
|
+
uses: actions/upload-artifact@v4
|
|
41
|
+
with:
|
|
42
|
+
name: pypi_archives
|
|
43
|
+
path: dist/*
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
create-gh-release:
|
|
47
|
+
name: Create GH release
|
|
48
|
+
needs:
|
|
49
|
+
- build-pypi-distribs
|
|
50
|
+
runs-on: ubuntu-24.04
|
|
51
|
+
|
|
52
|
+
steps:
|
|
53
|
+
- name: Download built archives
|
|
54
|
+
uses: actions/download-artifact@v4
|
|
55
|
+
with:
|
|
56
|
+
name: pypi_archives
|
|
57
|
+
path: dist
|
|
58
|
+
|
|
59
|
+
- name: Create GH release
|
|
60
|
+
uses: softprops/action-gh-release@v2
|
|
61
|
+
with:
|
|
62
|
+
draft: true
|
|
63
|
+
files: dist/*
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
create-pypi-release:
|
|
67
|
+
name: Create PyPI release
|
|
68
|
+
needs:
|
|
69
|
+
- create-gh-release
|
|
70
|
+
runs-on: ubuntu-24.04
|
|
71
|
+
|
|
72
|
+
steps:
|
|
73
|
+
- name: Download built archives
|
|
74
|
+
uses: actions/download-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: pypi_archives
|
|
77
|
+
path: dist
|
|
78
|
+
|
|
79
|
+
- name: Publish to PyPI
|
|
80
|
+
if: startsWith(github.ref, 'refs/tags')
|
|
81
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
82
|
+
with:
|
|
83
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Python compiled files
|
|
2
|
+
*.py[cod]
|
|
3
|
+
|
|
4
|
+
# virtualenv and other misc bits
|
|
5
|
+
/src/*.egg-info
|
|
6
|
+
*.egg-info
|
|
7
|
+
/dist
|
|
8
|
+
/build
|
|
9
|
+
/bin
|
|
10
|
+
/lib
|
|
11
|
+
/scripts
|
|
12
|
+
/Scripts
|
|
13
|
+
/Lib
|
|
14
|
+
/pip-selfcheck.json
|
|
15
|
+
/tmp
|
|
16
|
+
/venv
|
|
17
|
+
.Python
|
|
18
|
+
/include
|
|
19
|
+
/Include
|
|
20
|
+
/local
|
|
21
|
+
*/local/*
|
|
22
|
+
/local/
|
|
23
|
+
/share/
|
|
24
|
+
/tcl/
|
|
25
|
+
/.eggs/
|
|
26
|
+
|
|
27
|
+
# Installer logs
|
|
28
|
+
pip-log.txt
|
|
29
|
+
|
|
30
|
+
# Unit test / coverage reports
|
|
31
|
+
.cache
|
|
32
|
+
.coverage
|
|
33
|
+
.coverage.*
|
|
34
|
+
nosetests.xml
|
|
35
|
+
htmlcov
|
|
36
|
+
|
|
37
|
+
# Translations
|
|
38
|
+
*.mo
|
|
39
|
+
|
|
40
|
+
# IDEs
|
|
41
|
+
.project
|
|
42
|
+
.pydevproject
|
|
43
|
+
.idea
|
|
44
|
+
org.eclipse.core.resources.prefs
|
|
45
|
+
.vscode
|
|
46
|
+
.vs
|
|
47
|
+
|
|
48
|
+
# Sphinx
|
|
49
|
+
docs/_build
|
|
50
|
+
docs/bin
|
|
51
|
+
docs/build
|
|
52
|
+
docs/include
|
|
53
|
+
docs/Lib
|
|
54
|
+
doc/pyvenv.cfg
|
|
55
|
+
pyvenv.cfg
|
|
56
|
+
|
|
57
|
+
# Various junk and temp files
|
|
58
|
+
.DS_Store
|
|
59
|
+
*~
|
|
60
|
+
.*.sw[po]
|
|
61
|
+
.build
|
|
62
|
+
.ve
|
|
63
|
+
*.bak
|
|
64
|
+
/.cache/
|
|
65
|
+
|
|
66
|
+
# pyenv
|
|
67
|
+
/.python-version
|
|
68
|
+
/man/
|
|
69
|
+
/.pytest_cache/
|
|
70
|
+
lib64
|
|
71
|
+
tcl
|
|
72
|
+
|
|
73
|
+
# Ignore Jupyter Notebook related temp files
|
|
74
|
+
.ipynb_checkpoints/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# .readthedocs.yml
|
|
2
|
+
# Read the Docs configuration file
|
|
3
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
4
|
+
|
|
5
|
+
# Required
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
# Build in latest ubuntu/python
|
|
9
|
+
build:
|
|
10
|
+
os: ubuntu-22.04
|
|
11
|
+
tools:
|
|
12
|
+
python: "3.11"
|
|
13
|
+
|
|
14
|
+
# Build PDF & ePub
|
|
15
|
+
formats:
|
|
16
|
+
- epub
|
|
17
|
+
- pdf
|
|
18
|
+
|
|
19
|
+
# Where the Sphinx conf.py file is located
|
|
20
|
+
sphinx:
|
|
21
|
+
configuration: docs/source/conf.py
|
|
22
|
+
|
|
23
|
+
# Setting the python version and doc build requirements
|
|
24
|
+
python:
|
|
25
|
+
install:
|
|
26
|
+
- method: pip
|
|
27
|
+
path: .
|
|
28
|
+
extra_requirements:
|
|
29
|
+
- docs
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Changelog
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
v0.1.0
|
|
6
|
+
------
|
|
7
|
+
|
|
8
|
+
Initial release with support for:
|
|
9
|
+
|
|
10
|
+
* Get parsed list of demangled and cleaned symbols from a winpe binary
|
|
11
|
+
* Get parsed list of demangled and cleaned symbols from a macho binary
|
|
12
|
+
* scancode-toolkit plugins for collecting symbols from macho and winpe binaries
|
|
13
|
+
with the CLI option --winpe-symbol --macho-symbol
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Contributor Covenant Code of Conduct
|
|
2
|
+
====================================
|
|
3
|
+
|
|
4
|
+
Our Pledge
|
|
5
|
+
----------
|
|
6
|
+
|
|
7
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
8
|
+
contributors and maintainers pledge to making participation in our
|
|
9
|
+
project and our community a harassment-free experience for everyone,
|
|
10
|
+
regardless of age, body size, disability, ethnicity, gender identity and
|
|
11
|
+
expression, level of experience, education, socio-economic status,
|
|
12
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
13
|
+
orientation.
|
|
14
|
+
|
|
15
|
+
Our Standards
|
|
16
|
+
-------------
|
|
17
|
+
|
|
18
|
+
Examples of behavior that contributes to creating a positive environment
|
|
19
|
+
include:
|
|
20
|
+
|
|
21
|
+
- Using welcoming and inclusive language
|
|
22
|
+
- Being respectful of differing viewpoints and experiences
|
|
23
|
+
- Gracefully accepting constructive criticism
|
|
24
|
+
- Focusing on what is best for the community
|
|
25
|
+
- Showing empathy towards other community members
|
|
26
|
+
|
|
27
|
+
Examples of unacceptable behavior by participants include:
|
|
28
|
+
|
|
29
|
+
- The use of sexualized language or imagery and unwelcome sexual
|
|
30
|
+
attention or advances
|
|
31
|
+
- Trolling, insulting/derogatory comments, and personal or political
|
|
32
|
+
attacks
|
|
33
|
+
- Public or private harassment
|
|
34
|
+
- Publishing others’ private information, such as a physical or
|
|
35
|
+
electronic address, without explicit permission
|
|
36
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
Our Responsibilities
|
|
40
|
+
--------------------
|
|
41
|
+
|
|
42
|
+
Project maintainers are responsible for clarifying the standards of
|
|
43
|
+
acceptable behavior and are expected to take appropriate and fair
|
|
44
|
+
corrective action in response to any instances of unacceptable behavior.
|
|
45
|
+
|
|
46
|
+
Project maintainers have the right and responsibility to remove, edit,
|
|
47
|
+
or reject comments, commits, code, wiki edits, issues, and other
|
|
48
|
+
contributions that are not aligned to this Code of Conduct, or to ban
|
|
49
|
+
temporarily or permanently any contributor for other behaviors that they
|
|
50
|
+
deem inappropriate, threatening, offensive, or harmful.
|
|
51
|
+
|
|
52
|
+
Scope
|
|
53
|
+
-----
|
|
54
|
+
|
|
55
|
+
This Code of Conduct applies both within project spaces and in public
|
|
56
|
+
spaces when an individual is representing the project or its community.
|
|
57
|
+
Examples of representing a project or community include using an
|
|
58
|
+
official project e-mail address, posting via an official social media
|
|
59
|
+
account, or acting as an appointed representative at an online or
|
|
60
|
+
offline event. Representation of a project may be further defined and
|
|
61
|
+
clarified by project maintainers.
|
|
62
|
+
|
|
63
|
+
Enforcement
|
|
64
|
+
-----------
|
|
65
|
+
|
|
66
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may
|
|
67
|
+
be reported by contacting the project team at pombredanne@gmail.com
|
|
68
|
+
or on the Gitter chat channel at https://gitter.im/aboutcode-org/discuss .
|
|
69
|
+
All complaints will be reviewed and investigated and will result in a
|
|
70
|
+
response that is deemed necessary and appropriate to the circumstances.
|
|
71
|
+
The project team is obligated to maintain confidentiality with regard to
|
|
72
|
+
the reporter of an incident. Further details of specific enforcement
|
|
73
|
+
policies may be posted separately.
|
|
74
|
+
|
|
75
|
+
Project maintainers who do not follow or enforce the Code of Conduct in
|
|
76
|
+
good faith may face temporary or permanent repercussions as determined
|
|
77
|
+
by other members of the project’s leadership.
|
|
78
|
+
|
|
79
|
+
Attribution
|
|
80
|
+
-----------
|
|
81
|
+
|
|
82
|
+
This Code of Conduct is adapted from the `Contributor Covenant`_ ,
|
|
83
|
+
version 1.4, available at
|
|
84
|
+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
85
|
+
|
|
86
|
+
.. _Contributor Covenant: https://www.contributor-covenant.org
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) nexB Inc. and others. All rights reserved.
|
|
4
|
+
# ScanCode is a trademark of nexB Inc.
|
|
5
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
|
|
7
|
+
# See https://github.com/aboutcode-org/skeleton for support or download.
|
|
8
|
+
# See https://aboutcode.org for more information about nexB OSS projects.
|
|
9
|
+
#
|
|
10
|
+
|
|
11
|
+
# Python version can be specified with `$ PYTHON_EXE=python3.x make conf`
|
|
12
|
+
PYTHON_EXE?=python3
|
|
13
|
+
VENV=venv
|
|
14
|
+
ACTIVATE?=. ${VENV}/bin/activate;
|
|
15
|
+
|
|
16
|
+
dev:
|
|
17
|
+
@echo "-> Configure the development envt."
|
|
18
|
+
./configure --dev
|
|
19
|
+
|
|
20
|
+
isort:
|
|
21
|
+
@echo "-> Apply isort changes to ensure proper imports ordering"
|
|
22
|
+
${VENV}/bin/isort --sl -l 100 src tests setup.py
|
|
23
|
+
|
|
24
|
+
black:
|
|
25
|
+
@echo "-> Apply black code formatter"
|
|
26
|
+
${VENV}/bin/black -l 100 src tests setup.py
|
|
27
|
+
|
|
28
|
+
doc8:
|
|
29
|
+
@echo "-> Run doc8 validation"
|
|
30
|
+
@${ACTIVATE} doc8 --max-line-length 100 --ignore-path docs/_build/ --quiet docs/
|
|
31
|
+
|
|
32
|
+
valid: isort black
|
|
33
|
+
|
|
34
|
+
check:
|
|
35
|
+
@echo "-> Run pycodestyle (PEP8) validation"
|
|
36
|
+
@${ACTIVATE} pycodestyle --max-line-length=100 --exclude=.eggs,venv,lib,thirdparty,docs,migrations,settings.py,.cache .
|
|
37
|
+
@echo "-> Run isort imports ordering validation"
|
|
38
|
+
@${ACTIVATE} isort --sl --check-only -l 100 setup.py src tests .
|
|
39
|
+
@echo "-> Run black validation"
|
|
40
|
+
@${ACTIVATE} black --check --check -l 100 src tests setup.py
|
|
41
|
+
|
|
42
|
+
clean:
|
|
43
|
+
@echo "-> Clean the Python env"
|
|
44
|
+
./configure --clean
|
|
45
|
+
|
|
46
|
+
test:
|
|
47
|
+
@echo "-> Run the test suite"
|
|
48
|
+
${VENV}/bin/pytest -vvs
|
|
49
|
+
|
|
50
|
+
docs:
|
|
51
|
+
rm -rf docs/_build/
|
|
52
|
+
@${ACTIVATE} sphinx-build docs/ docs/_build/
|
|
53
|
+
|
|
54
|
+
.PHONY: conf dev check valid black isort clean test docs
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Copyright (c) nexB Inc. and others.
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
#
|
|
5
|
+
# Visit https://aboutcode.org and https://github.com/aboutcode-org/ for support and download.
|
|
6
|
+
# ScanCode is a trademark of nexB Inc.
|
|
7
|
+
#
|
|
8
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
# you may not use this file except in compliance with the License.
|
|
10
|
+
# You may obtain a copy of the License at
|
|
11
|
+
#
|
|
12
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
#
|
|
14
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
# See the License for the specific language governing permissions and
|
|
18
|
+
# limitations under the License.
|
|
19
|
+
#
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: binary-inspector
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: binary-inspector is a library and tools to inspect binaries (elf, winpe, mach0) for symbols and other information, and models to store this.
|
|
5
|
+
Home-page: https://github.com/aboutcode-org/binary-inspector
|
|
6
|
+
Author: nexB. Inc. and others
|
|
7
|
+
Author-email: info@aboutcode.org
|
|
8
|
+
License: Apache-2.0 AND MIT
|
|
9
|
+
Keywords: utilities
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Topic :: Software Development
|
|
15
|
+
Classifier: Topic :: Utilities
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
|
+
Description-Content-Type: text/x-rst
|
|
18
|
+
License-File: apache-2.0.LICENSE
|
|
19
|
+
License-File: NOTICE
|
|
20
|
+
License-File: AUTHORS.rst
|
|
21
|
+
License-File: CHANGELOG.rst
|
|
22
|
+
License-File: CODE_OF_CONDUCT.rst
|
|
23
|
+
Requires-Dist: click<8.2
|
|
24
|
+
Requires-Dist: commoncode
|
|
25
|
+
Requires-Dist: plugincode
|
|
26
|
+
Requires-Dist: typecode
|
|
27
|
+
Requires-Dist: lief==0.15.1
|
|
28
|
+
Requires-Dist: symbolic==10.2.1
|
|
29
|
+
Provides-Extra: testing
|
|
30
|
+
Requires-Dist: scancode-toolkit; extra == "testing"
|
|
31
|
+
Requires-Dist: pytest!=7.0.0,>=6; extra == "testing"
|
|
32
|
+
Requires-Dist: pytest-xdist>=2; extra == "testing"
|
|
33
|
+
Requires-Dist: aboutcode-toolkit>=7.0.2; extra == "testing"
|
|
34
|
+
Requires-Dist: pycodestyle>=2.8.0; extra == "testing"
|
|
35
|
+
Requires-Dist: twine; extra == "testing"
|
|
36
|
+
Requires-Dist: black; extra == "testing"
|
|
37
|
+
Requires-Dist: isort; extra == "testing"
|
|
38
|
+
Provides-Extra: docs
|
|
39
|
+
Requires-Dist: Sphinx>=5.0.2; extra == "docs"
|
|
40
|
+
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "docs"
|
|
41
|
+
Requires-Dist: sphinx-reredirects>=0.1.2; extra == "docs"
|
|
42
|
+
Requires-Dist: doc8>=0.11.2; extra == "docs"
|
|
43
|
+
Requires-Dist: sphinx-autobuild; extra == "docs"
|
|
44
|
+
Requires-Dist: sphinx-rtd-dark-mode>=1.3.0; extra == "docs"
|
|
45
|
+
Requires-Dist: sphinx-copybutton; extra == "docs"
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
|
|
48
|
+
binary-inspector
|
|
49
|
+
================
|
|
50
|
+
|
|
51
|
+
binary-inspector is a utility to extract symbols from various kinds of binaries,
|
|
52
|
+
i.e. ELF, Mach-O, WinPE and other binary formats. It is designed to work as a ScanCode
|
|
53
|
+
Toolkit plugin and integrated in ScanCode.io pipelines.
|
|
54
|
+
|
|
55
|
+
To install and use:
|
|
56
|
+
|
|
57
|
+
- Run ``pip install binary-inspector``
|
|
58
|
+
- Use with ``scancode --json-pp - --macho-symbol --winpe-symbol --verbose <PATH to a tree or file with binaries>``
|
|
59
|
+
|
|
60
|
+
The JSON output will contain binary symbols found in binaries if any.
|
|
61
|
+
|
|
62
|
+
- License: Apache-2.0 AND MIT
|
|
63
|
+
- Copyright (c) nexB Inc., AboutCode, OWASP Foundation and others.
|
|
64
|
+
- Homepage: https://github.com/aboutcode-org/binary-inspector
|
|
65
|
+
|
|
66
|
+
Development
|
|
67
|
+
----------------
|
|
68
|
+
|
|
69
|
+
- Install requirements and dependencies using ``./configure --clean && ./configure --dev``
|
|
70
|
+
- Then ``source venv/bin/activate``
|
|
71
|
+
|
|
72
|
+
Testing:
|
|
73
|
+
|
|
74
|
+
- To run tests: ``pytest -vvs``
|
|
75
|
+
- To regen test fixtures: ``SCANCODE_REGEN_TEST_FIXTURES=yes pytest -vvs``
|
|
76
|
+
|
|
77
|
+
Acknowledgements, Funding, Support and Sponsoring
|
|
78
|
+
--------------------------------------------------------
|
|
79
|
+
|
|
80
|
+
This project is funded, supported and sponsored by:
|
|
81
|
+
|
|
82
|
+
- Generous support and contributions from users like you!
|
|
83
|
+
- the European Commission NGI programme
|
|
84
|
+
- the NLnet Foundation
|
|
85
|
+
- the Swiss State Secretariat for Education, Research and Innovation (SERI)
|
|
86
|
+
- Google, including the Google Summer of Code and the Google Seasons of Doc programmes
|
|
87
|
+
- Mercedes-Benz Group
|
|
88
|
+
- Microsoft and Microsoft Azure
|
|
89
|
+
- AboutCode ASBL
|
|
90
|
+
- nexB Inc.
|
|
91
|
+
|
|
92
|
+
This project also uses some functions from other packages:
|
|
93
|
+
|
|
94
|
+
- blint (https://github.com/owasp-dep-scan/blint)
|
|
95
|
+
- symbolic (https://pypi.org/project/symbolic/)
|
|
96
|
+
- lief (https://pypi.org/project/lief/)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|europa| |dgconnect|
|
|
100
|
+
|
|
101
|
+
|ngi| |nlnet|
|
|
102
|
+
|
|
103
|
+
|aboutcode| |nexb|
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
|
|
108
|
+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
|
|
109
|
+
Communications Networks, Content and Technology under grant agreement No 101069594.
|
|
110
|
+
|
|
111
|
+
|ngizeroentrust| https://nlnet.nl/project/Back2source/
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
This project was funded through the NGI0 Core Fund, a fund established by NLnet with financial
|
|
115
|
+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
|
|
116
|
+
Communications Networks, Content and Technology under grant agreement No 101092990.
|
|
117
|
+
|
|
118
|
+
|ngizerocore| https://nlnet.nl/project/Back2source-next/
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
This project was funded through the NGI0 Entrust Fund, a fund established by NLnet with financial
|
|
122
|
+
support from the European Commission's Next Generation Internet programme, under the aegis of DG
|
|
123
|
+
Communications Networks, Content and Technology under grant agreement No 101069594.
|
|
124
|
+
|
|
125
|
+
|ngizeroentrust| https://nlnet.nl/project/purl2all/
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
.. |nlnet| image:: https://nlnet.nl/logo/banner.png
|
|
130
|
+
:target: https://nlnet.nl
|
|
131
|
+
:height: 50
|
|
132
|
+
:alt: NLnet foundation logo
|
|
133
|
+
|
|
134
|
+
.. |ngi| image:: https://ngi.eu/wp-content/uploads/thegem-logos/logo_8269bc6efcf731d34b6385775d76511d_1x.png
|
|
135
|
+
:target: https://ngi.eu35
|
|
136
|
+
:height: 50
|
|
137
|
+
:alt: NGI logo
|
|
138
|
+
|
|
139
|
+
.. |nexb| image:: https://nexb.com/wp-content/uploads/2022/04/nexB.svg
|
|
140
|
+
:target: https://nexb.com
|
|
141
|
+
:height: 30
|
|
142
|
+
:alt: nexB logo
|
|
143
|
+
|
|
144
|
+
.. |europa| image:: https://ngi.eu/wp-content/uploads/sites/77/2017/10/bandiera_stelle.png
|
|
145
|
+
:target: http://ec.europa.eu/index_en.htm
|
|
146
|
+
:height: 40
|
|
147
|
+
:alt: Europa logo
|
|
148
|
+
|
|
149
|
+
.. |aboutcode| image:: https://aboutcode.org/wp-content/uploads/2023/10/AboutCode.svg
|
|
150
|
+
:target: https://aboutcode.org/
|
|
151
|
+
:height: 30
|
|
152
|
+
:alt: AboutCode logo
|
|
153
|
+
|
|
154
|
+
.. |swiss| image:: https://www.sbfi.admin.ch/sbfi/en/_jcr_content/logo/image.imagespooler.png/1493119032540/logo.png
|
|
155
|
+
:target: https://www.sbfi.admin.ch/sbfi/en/home/seri/seri.html
|
|
156
|
+
:height: 40
|
|
157
|
+
:alt: Swiss logo
|
|
158
|
+
|
|
159
|
+
.. |dgconnect| image:: https://commission.europa.eu/themes/contrib/oe_theme/dist/ec/images/logo/positive/logo-ec--en.svg
|
|
160
|
+
:target: https://commission.europa.eu/about-european-commission/departments-and-executive-agencies/communications-networks-content-and-technology_en
|
|
161
|
+
:height: 40
|
|
162
|
+
:alt: EC DG Connect logo
|
|
163
|
+
|
|
164
|
+
.. |ngizerocore| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
|
|
165
|
+
:target: https://nlnet.nl/core
|
|
166
|
+
:height: 40
|
|
167
|
+
:alt: NGI Zero Core Logo
|
|
168
|
+
|
|
169
|
+
.. |ngizerocommons| image:: https://nlnet.nl/image/logos/NGI0_tag.svg
|
|
170
|
+
:target: https://nlnet.nl/commonsfund/
|
|
171
|
+
:height: 40
|
|
172
|
+
:alt: NGI Zero Commons Logo
|
|
173
|
+
|
|
174
|
+
.. |ngizeropet| image:: https://nlnet.nl/image/logos/NGI0PET_tag.svg
|
|
175
|
+
:target: https://nlnet.nl/PET
|
|
176
|
+
:height: 40
|
|
177
|
+
:alt: NGI Zero PET logo
|
|
178
|
+
|
|
179
|
+
.. |ngizeroentrust| image:: https://nlnet.nl/image/logos/NGI0Entrust_tag.svg
|
|
180
|
+
:target: https://nlnet.nl/entrust
|
|
181
|
+
:height: 38
|
|
182
|
+
:alt: NGI Zero Entrust logo
|
|
183
|
+
|
|
184
|
+
.. |ngiassure| image:: https://nlnet.nl/image/logos/NGIAssure_tag.svg
|
|
185
|
+
:target: https://nlnet.nl/image/logos/NGIAssure_tag.svg
|
|
186
|
+
:height: 32
|
|
187
|
+
:alt: NGI Assure logo
|
|
188
|
+
|
|
189
|
+
.. |ngidiscovery| image:: https://nlnet.nl/image/logos/NGI0Discovery_tag.svg
|
|
190
|
+
:target: https://nlnet.nl/discovery/
|
|
191
|
+
:height: 40
|
|
192
|
+
:alt: NGI Discovery logo
|