Metadata-Version: 2.1
Name: pydomdisco
Version: 0.4.2
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Rust
Summary: A fast async domain discovery tool written in Rust
Keywords: domain,discovery,dns,authoritative,resolver,rust,async,pyo3
Home-Page: https://github.com/intsights/pydomdisco
Author: Gal Ben David
Author-email: gal@intsights.com
License: MIT License

	

	Copyright (c) 2021 Intsights

	

	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.

	
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Source Code, https://github.com/intsights/pydomdisco

<p align="center">
    <a href="https://github.com/intsights/pydomdisco">
        <img src="https://raw.githubusercontent.com/intsights/pydomdisco/master/images/logo.png" alt="Logo">
    </a>
    <h3 align="center">
        A fast async domain discovery tool written in Rust
    </h3>
</p>


![license](https://img.shields.io/badge/MIT-License-blue)
![Python](https://img.shields.io/badge/Python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10%20%7C%203.11-blue)
![OS](https://img.shields.io/badge/OS-Mac%20%7C%20Linux%20%7C%20Windows-blue)
![Build](https://github.com/intsights/pydomdisco/workflows/Build/badge.svg)
[![PyPi](https://img.shields.io/pypi/v/pydomdisco.svg)](https://pypi.org/project/pydomdisco/)

## Table of Contents

- [Table of Contents](#table-of-contents)
- [About The Project](#about-the-project)
  - [Built With](#built-with)
  - [Installation](#installation)
- [Usage](#usage)
- [License](#license)
- [Contact](#contact)


## About The Project

This library is intended to be used to discover registered domains according to the given TLD list by performing a fast and accurate resolving process. It was written in Rust in order to meet the performance requirements.


### Built With

* [pyo3](https://github.com/PyO3/pyo3)
* [tokio](https://github.com/tokio-rs/tokio)
* [trust-dns](https://github.com/bluejekyll/trust-dns)


### Installation

```sh
pip3 install pydomdisco
```


## Usage

```python
import pydomdisco


# Get a list of tlds to their corresponding nameservers IP addressed

# Only root tlds
root = pydomdisco.Discoverer.get_root_tld_to_nameservers_ips()

# Full list of the PSL tlds
psl = pydomdisco.Discoverer.get_psl_tld_to_nameservers_ips()

# Initialize the discovery engine loaded with the given tlds
discoverer = pydomdisco.Discoverer(root | psl)

# Perform the discovery process and return the list of discovered registered domains
registered_domains = discoverer.discover(
    [
        'google',
        'microsoft',
        'tesla',
    ],
)
```


## License

Distributed under the MIT License. See `LICENSE` for more information.


## Contact

Gal Ben David - gal@intsights.com

Project Link: [https://github.com/intsights/pydomdisco](https://github.com/intsights/pydomdisco)

