LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

impacket-getarch

Determine the OS architecture of a remote Windows system

TLDR

Detect the architecture of a remote Windows system
$ impacket-getarch -target [192.168.1.100]
copy
Check architecture of multiple targets from a file
$ impacket-getarch -targets [targets.txt]
copy
Detect architecture with custom timeout
$ impacket-getarch -target [192.168.1.100] -timeout [5]
copy
Detect architecture with debug output
$ impacket-getarch -target [192.168.1.100] -debug
copy

SYNOPSIS

impacket-getarch [-h] [-target IP] [-targets FILE] [-timeout SECONDS] [-debug] [-ts]

DESCRIPTION

impacket-getarch is a reconnaissance tool that determines whether a remote Windows system is running a 32-bit or 64-bit operating system. It works by connecting to the target's SMB service and analyzing differences in how 32-bit and 64-bit Windows respond to certain SMB requests. This technique is documented by Microsoft and requires no authentication.This information is valuable during penetration testing when preparing architecture-specific payloads or exploits.

PARAMETERS

-target IP

IP address of the target system to probe
-targets FILE
File containing a list of target IP addresses (one per line)
-timeout SECONDS
Socket timeout when connecting to the target (default: 2)
-debug
Enable debug output
-ts
Add timestamp to every logging output

INSTALL

sudo pacman -S impacket
copy

CAVEATS

Requires network access to the target's SMB port (typically 445). Results depend on SMB being accessible and not blocked by firewalls. Does not work against non-Windows systems or systems running Samba.

HISTORY

Part of the Impacket library, originally by SecureAuth and now maintained by Fortra.

SEE ALSO

Copied to clipboard
Kai