Find hosts in text files and check them against a set of rules
Project description
find-and-check-hosts
Searches files for IPs and hostnames and checks them against a rule list to prevent accidentially 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.txt
with pip - (Optional) Do a
pip install .
to add thefind-and-check-hosts
command 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.2
- Added a
domain
filter, that will match a domain and any subdomains. For exampledomain: example.com
will matchexample.com
,my.subdomain.example.com
, but notmy-example.com
orexample-com
. - Allowed the
regex
,glob
anddomain
fields to also accept a list of values. For example:hostname_rules: - status: ok - domain: - example.com - example.org
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
find-and-check-hosts-0.1.2.tar.gz
(14.8 kB
view hashes)
Built Distribution
Close
Hashes for find-and-check-hosts-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b601d34b5f817350fc60dcb54e079c38db73f4c4423c8c1e1d4809534989f1c |
|
MD5 | caec0661e55851bd15883078c4b2abda |
|
BLAKE2b-256 | 0ffc388ae331fc4d3bea178bcde184549e44aacd5037d08278b32cd884dff25f |
Close
Hashes for find_and_check_hosts-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e90006305f03c50b22175999e891c7d5555b5c038960bd1a049f10908a0830d |
|
MD5 | b86f48928676a9948933101651cba689 |
|
BLAKE2b-256 | b3de80717ab5057c8fc9f0dbb1a143c898c80eca616e132301780cc6f6f97580 |