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
pip install LocalResolver
Examples
Command lines
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
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
Licence
Licensed under the GPL, version 3.
Metadata
Release files for LocalResolver 1.0.1
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 |
|---|---|---|---|---|
| LocalResolver-1.0.1.tar.gz | 21.9 kB | Without provenance | Details for LocalResolver-1.0.1.tar.gz |
Release files / LocalResolver-1.0.1.tar.gz
| Download URL | LocalResolver-1.0.1.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb780e10ec1853c54a13eea25101faa9edf10cf9901b7854685e25524316f5a6
|
|
BLAKE2b-256 checksum How to use checksums |
3f5ca03b2f58f9bac14535f3088a439640ab1d3b8e50a168b5ddf0d5e15fa4ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for LocalResolver 1.0.1
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.