impacket-getarch
Determine the OS architecture of a remote Windows system
TLDR
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
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
impacket-psexec(1), impacket-smbclient(1), nmap(1), smbclient(1)
