Skip to main content

This package implements a Hostname Spoofer (Netbios, LLMNR and Local DNS).

Project description

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

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.

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

NetbiosSpoof-1.1.1.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file NetbiosSpoof-1.1.1.tar.gz.

File metadata

  • Download URL: NetbiosSpoof-1.1.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for NetbiosSpoof-1.1.1.tar.gz
Algorithm Hash digest
SHA256 cd07edb8e9736d586e4fc3d0ef5d0aff3678887a19c41c76a264a1f3cc5cb0f8
MD5 12bc416aa825261424bd1ba3906979cd
BLAKE2b-256 5a45ec77884bc3dedcf3d2e05e7151eef6e6151b509555facee3a80ef9c3eab5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page