![LocalResolver logo](https://mauricelambert.github.io/info/python/code/LocalResolver_small.png "LocalResolver logo")
# LocalResolver
## Description
This package implements local hostname resolver tool with scapy (using netbios and LLMNR query).
This tool is useful to:
- reverse lookup local IP addresses
- resolve manually hostnames/IP from Linux or hardened Windows
- resolve hostname with old machines (Windows 2000-2012)
- identify:
- Machines with old protocols like Netbios or LLMNR,
- Hostname spoofer (or two machines with the same name),
## Requirements
This package require:
- python3
- python3 Standard Library
- Scapy
- PythonToolsKit
## Installation
```bash
pip install LocalResolver
```
## Examples
### Command lines
```bash
LocalResolver -h
LocalResolver --retry 5 --timeout 5 --interval 2 192.168.1.2 # very long
LocalResolver 192.168.1.3 192.168.1.2 WIN10 HOMEPC test.local
LocalResolver --no-netbios --no-dns fe80::3317:f73e:2166:bbd8/64
LocalResolver --no-llmnr --no-mdns fe80::3317:f73e:2166:bbd8/64
```
### Python3
```python
from LocalResolver import LocalResolver, resolve_local_name, resolve_local_ip
[r.hostname for r in resolve_local_ip("192.168.5.2")]
[r.ip for r in resolve_local_ip("192.168.5.2", retry=2, inter=1, timeout=3, netbios=True, llmnr=True, mdns=True, dns=True)]
[(r.ip, r.source) for r in resolve_local_name("WIN10")]
[(r.ip, r.source) for r in resolve_local_name("HOMEPC", retry=2, inter=1, timeout=3, netbios=True, llmnr=True, mdns=True, dns=True)]
```
## Links
- [Github Page](https://github.com/mauricelambert/LocalResolver)
- [Documentation](https://mauricelambert.github.io/info/python/code/LocalResolver.html)
- [Download as python executable](https://mauricelambert.github.io/info/python/code/LocalResolver.pyz)
- [Pypi package](https://pypi.org/project/LocalResolver/)
## Licence
Licensed under the [GPL, version 3](https://www.gnu.org/licenses/).
Raw data
{
"_id": null,
"home_page": "https://github.com/mauricelambert/LocalResolver",
"name": "LocalResolver",
"maintainer": "Maurice Lambert",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "mauricelambert434@gmail.com",
"keywords": "Resolve,Hostname,LLMNR,Netbios",
"author": "Maurice Lambert",
"author_email": "mauricelambert434@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3f/5c/a03b2f58f9bac14535f3088a439640ab1d3b8e50a168b5ddf0d5e15fa4ff/LocalResolver-1.0.1.tar.gz",
"platform": "Windows",
"description": "![LocalResolver logo](https://mauricelambert.github.io/info/python/code/LocalResolver_small.png \"LocalResolver logo\")\n\n# LocalResolver\n\n## Description\n\nThis package implements local hostname resolver tool with scapy (using netbios and LLMNR query).\n\nThis tool is useful to:\n - reverse lookup local IP addresses\n - resolve manually hostnames/IP from Linux or hardened Windows\n - resolve hostname with old machines (Windows 2000-2012)\n - identify:\n - Machines with old protocols like Netbios or LLMNR,\n - Hostname spoofer (or two machines with the same name),\n\n## Requirements\n\nThis package require: \n\n - python3\n - python3 Standard Library\n - Scapy\n - PythonToolsKit\n\n## Installation\n\n```bash\npip install LocalResolver \n```\n\n## Examples\n\n### Command lines\n\n```bash\nLocalResolver -h\nLocalResolver --retry 5 --timeout 5 --interval 2 192.168.1.2 # very long\nLocalResolver 192.168.1.3 192.168.1.2 WIN10 HOMEPC test.local\nLocalResolver --no-netbios --no-dns fe80::3317:f73e:2166:bbd8/64\nLocalResolver --no-llmnr --no-mdns fe80::3317:f73e:2166:bbd8/64\n```\n\n### Python3\n\n```python\nfrom LocalResolver import LocalResolver, resolve_local_name, resolve_local_ip\n\n[r.hostname for r in resolve_local_ip(\"192.168.5.2\")]\n[r.ip for r in resolve_local_ip(\"192.168.5.2\", retry=2, inter=1, timeout=3, netbios=True, llmnr=True, mdns=True, dns=True)]\n[(r.ip, r.source) for r in resolve_local_name(\"WIN10\")]\n[(r.ip, r.source) for r in resolve_local_name(\"HOMEPC\", retry=2, inter=1, timeout=3, netbios=True, llmnr=True, mdns=True, dns=True)]\n```\n\n## Links\n\n - [Github Page](https://github.com/mauricelambert/LocalResolver)\n - [Documentation](https://mauricelambert.github.io/info/python/code/LocalResolver.html)\n - [Download as python executable](https://mauricelambert.github.io/info/python/code/LocalResolver.pyz)\n - [Pypi package](https://pypi.org/project/LocalResolver/)\n\n## Licence\n\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).\n",
"bugtrack_url": null,
"license": "GPL-3.0 License",
"summary": "This package implements local hostname resolver tool with scapy.",
"version": "1.0.1",
"split_keywords": [
"resolve",
"hostname",
"llmnr",
"netbios"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3f5ca03b2f58f9bac14535f3088a439640ab1d3b8e50a168b5ddf0d5e15fa4ff",
"md5": "49c66693fbde0e5d4921de3ad2d34472",
"sha256": "fb780e10ec1853c54a13eea25101faa9edf10cf9901b7854685e25524316f5a6"
},
"downloads": -1,
"filename": "LocalResolver-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "49c66693fbde0e5d4921de3ad2d34472",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 21879,
"upload_time": "2023-04-12T11:44:19",
"upload_time_iso_8601": "2023-04-12T11:44:19.269510Z",
"url": "https://files.pythonhosted.org/packages/3f/5c/a03b2f58f9bac14535f3088a439640ab1d3b8e50a168b5ddf0d5e15fa4ff/LocalResolver-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-12 11:44:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "mauricelambert",
"github_project": "LocalResolver",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "localresolver"
}