find-and-check-hosts
Searches files for IPs and hostnames and checks them against a rule list to prevent accidentally leaking sensitive information.
Installation
This repo can now be installed with pip:
pip install find-and-check-hosts
Or you can install it manually by following these steps:
- Clone this repository
- Install the dependencies listed in
./requirements.txtwith pip - (Optional) Do a
pip install .to add thefind-and-check-hostscommand to your PATH
Usage
If you did the pip installation, you should be able to just call the installed script:
find-and-check-hosts <arguments>
If you just cloned it, you need to call it by path:
./src/main.py <arguments>
Notable changes
Version 0.1.5
- Added
errorstatus for files that can not be parsed.
Version 0.1.4
- Added
--extensions,--exclude-extensionsand--ignore-directoriesfiles.
Version 0.1.3
- Added flags that can be used to check if results were returned (
--assert-resultsand--assert-no-results). - Made regexes case insensitive, so that they can find and properly handle domains such as
eXampLe.coM.
Version 0.1.2
- Added a
domainfilter, that will match a domain and any subdomains. For exampledomain: example.comwill matchexample.com,my.subdomain.example.com, but notmy-example.comorexample-com. - Allowed the
regex,globanddomainfields to also accept a list of values. For example:hostname_rules: - status: ok - domain: - example.com - example.org
Tests
find-and-check-hosts -c src/find_and_check_hosts/example-config.yaml tests/
Metadata
Release files for find-and-check-hosts 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| find-and-check-hosts-0.1.5.tar.gz | 17.0 kB | Without provenance | Details for find-and-check-hosts-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| find_and_check_hosts-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for find_and_check_hosts-0.1.5-py3-none-any.whl |
Total release size: 34.6 kB
Release files / find-and-check-hosts-0.1.5.tar.gz
| Download URL | find-and-check-hosts-0.1.5.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4caf08b40257b4834a5fe8ab9d4f451af1af52941a8348fd2998b2335fa74680
|
|
BLAKE2b-256 checksum How to use checksums |
7991a5cc7b100a99f08bf2ed07dcddb0325d64a36d17b652d9ad542f50d7aac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / find_and_check_hosts-0.1.5-py3-none-any.whl
| Download URL | find_and_check_hosts-0.1.5-py3-none-any.whl |
|---|---|
| Size | 17.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
746a6473148c96e5c5c56eda0ccf104d6173d94b7ecaa413adbe22b06583dd45
|
|
BLAKE2b-256 checksum How to use checksums |
0db1a087affac7d15a7331eef1ea2d7f9f51b90ff57555b6df64381b73c5d8ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for find-and-check-hosts 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.