mirror of
https://github.com/curly60e/pyblock.git
synced 2026-08-13 12:33:15 +02:00
1. Shell injection in readHexBlock/readHexTx (PyBlock.py): - Validate user input with hex-only regex before use - Replace shell=True pipe chain with subprocess list + piped stdin - Same fix for OP_RETURN loop TX decoding 2. Shell injection in weather commands (ppi.py): - Replace curl shell commands with requests.get() - User input (city, lang, unit) no longer touches shell - Upgraded from HTTP to HTTPS 3. Runtime crash in SPV/spvblock.py: - os.path.isfile() called with 2 args (TypeError) - Fixed to use 'and' for two separate checks 4. Config files added to .gitignore: - pybitblock/config/*.conf (RPC creds, API keys, tokens) - pybitblock/SPV/config/*.conf - *.log files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
128 lines
1.6 KiB
Text
128 lines
1.6 KiB
Text
# Byte-compiled / optimized / DLL files
|
|
__pycache__/
|
|
*.py[cod]
|
|
*$py.class
|
|
**/__pycache__
|
|
**/*.pyc
|
|
|
|
# pyblock config (contains credentials, API keys, tokens)
|
|
pybitblock/config/*.conf
|
|
pybitblock/SPV/config/*.conf
|
|
pybitblock/config/
|
|
pyblocksettings.conf
|
|
*.pickle.bak
|
|
*.log
|
|
|
|
# C extensions
|
|
*.so
|
|
|
|
# Distribution / packaging
|
|
.Python
|
|
build/
|
|
develop-eggs/
|
|
dist/
|
|
downloads/
|
|
eggs/
|
|
.eggs/
|
|
lib/
|
|
lib64/
|
|
parts/
|
|
sdist/
|
|
var/
|
|
wheels/
|
|
share/python-wheels/
|
|
*.egg-info/
|
|
.installed.cfg
|
|
*.egg
|
|
MANIFEST
|
|
|
|
# PyInstaller
|
|
# Usually these files are written by a python script from a template
|
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
*.manifest
|
|
*.spec
|
|
|
|
# Installer logs
|
|
pip-log.txt
|
|
pip-delete-this-directory.txt
|
|
|
|
# Unit test / coverage reports
|
|
htmlcov/
|
|
.tox/
|
|
.nox/
|
|
.coverage
|
|
.coverage.*
|
|
.cache
|
|
nosetests.xml
|
|
coverage.xml
|
|
*.cover
|
|
*.py,cover
|
|
.hypothesis/
|
|
.pytest_cache/
|
|
cover/
|
|
|
|
# Translations
|
|
*.mo
|
|
*.pot
|
|
|
|
# Sphinx documentation
|
|
docs/_build/
|
|
|
|
# PyBuilder
|
|
.pybuilder/
|
|
target/
|
|
|
|
# Jupyter Notebook
|
|
.ipynb_checkpoints
|
|
|
|
# IPython
|
|
profile_default/
|
|
ipython_config.py
|
|
|
|
# pyenv
|
|
# For a library or package, you might want to ignore these files since the code is
|
|
# intended to run in multiple environments; otherwise, check them in:
|
|
# .python-version
|
|
|
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
__pypackages__/
|
|
|
|
# Environments
|
|
.env
|
|
.venv
|
|
env/
|
|
venv/
|
|
ENV/
|
|
env.bak/
|
|
venv.bak/
|
|
|
|
# mypy
|
|
.mypy_cache/
|
|
.dmypy.json
|
|
dmypy.json
|
|
|
|
# Pyre type checker
|
|
.pyre/
|
|
|
|
# pytype static type analyzer
|
|
.pytype/
|
|
|
|
# Cython debug symbols
|
|
cython_debug/
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Local env overrides
|
|
.env.local
|
|
.env.*.local
|
|
|
|
# Debug logs
|
|
debug_*.log
|