-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKG-INFO
93 lines (73 loc) · 3.04 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Metadata-Version: 2.1
Name: LocalResolver
Version: 1.0.1
Summary: This package implements local hostname resolver tool with scapy.
Home-page: https://github.com/mauricelambert/LocalResolver
Author: Maurice Lambert
Author-email: [email protected]
Maintainer: Maurice Lambert
Maintainer-email: [email protected]
License: GPL-3.0 License
Project-URL: Executable, https://mauricelambert.github.io/info/python/code/LocalResolver.pyz
Project-URL: Documentation, https://mauricelambert.github.io/info/python/code/LocalResolver.html
Keywords: Resolve,Hostname,LLMNR,Netbios
Platform: Windows
Platform: Linux
Platform: MacOS
Classifier: Environment :: Console
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt
![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/).