fortra/impacket

Does not install on Windows 10

DirkHoffmann opened this issue · 1 comments

Configuration

impacket version: 0.11.0
Python version: 3.8
Target OS: Windows 10

Debug Output With Command String

py -m pip install impacket 

ends with

  Building wheel for impacket (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib
      creating build\lib\impacket
      copying impacket\cdp.py -> build\lib\impacket
      copying impacket\crypto.py -> build\lib\impacket
      copying impacket\dhcp.py -> build\lib\impacket
      copying impacket\dns.py -> build\lib\impacket
      copying impacket\dot11.py -> build\lib\impacket
      copying impacket\Dot11Crypto.py -> build\lib\impacket
      copying impacket\Dot11KeyManager.py -> build\lib\impacket
      copying impacket\dpapi.py -> build\lib\impacket
      error: could not open 'impacket\dpapi.py': Invalid argument
      [end of output]

How can I test this outside of pip? I tried naively

git clone ...
git co impacket_0_11_0
setup build

and obtained

running build
running build_py
copying impacket\cdp.py -> build\lib\impacket
copying impacket\crypto.py -> build\lib\impacket
copying impacket\dhcp.py -> build\lib\impacket
copying impacket\dns.py -> build\lib\impacket
copying impacket\dot11.py -> build\lib\impacket
copying impacket\Dot11Crypto.py -> build\lib\impacket
copying impacket\Dot11KeyManager.py -> build\lib\impacket
copying impacket\dpapi.py -> build\lib\impacket
copying impacket\eap.py -> build\lib\impacket
copying impacket\ese.py -> build\lib\impacket
copying impacket\helper.py -> build\lib\impacket
copying impacket\hresult_errors.py -> build\lib\impacket
copying impacket\http.py -> build\lib\impacket
copying impacket\ICMP6.py -> build\lib\impacket
copying impacket\ImpactDecoder.py -> build\lib\impacket
copying impacket\ImpactPacket.py -> build\lib\impacket
copying impacket\IP6.py -> build\lib\impacket
copying impacket\IP6_Address.py -> build\lib\impacket
copying impacket\IP6_Extension_Headers.py -> build\lib\impacket
copying impacket\mapi_constants.py -> build\lib\impacket
copying impacket\mqtt.py -> build\lib\impacket
copying impacket\NDP.py -> build\lib\impacket
copying impacket\nmb.py -> build\lib\impacket
copying impacket\ntlm.py -> build\lib\impacket
copying impacket\nt_errors.py -> build\lib\impacket
copying impacket\pcapfile.py -> build\lib\impacket
copying impacket\pcap_linktypes.py -> build\lib\impacket
copying impacket\smb.py -> build\lib\impacket
copying impacket\smb3.py -> build\lib\impacket
copying impacket\smb3structs.py -> build\lib\impacket
copying impacket\smbconnection.py -> build\lib\impacket
copying impacket\smbserver.py -> build\lib\impacket
copying impacket\spnego.py -> build\lib\impacket
copying impacket\structure.py -> build\lib\impacket
copying impacket\system_errors.py -> build\lib\impacket
copying impacket\tds.py -> build\lib\impacket
copying impacket\uuid.py -> build\lib\impacket
copying impacket\version.py -> build\lib\impacket
copying impacket\winregistry.py -> build\lib\impacket
copying impacket\wps.py -> build\lib\impacket
copying impacket\__init__.py -> build\lib\impacket
copying impacket\dcerpc\__init__.py -> build\lib\impacket\dcerpc
copying impacket\examples\ldap_shell.py -> build\lib\impacket\examples
copying impacket\examples\logger.py -> build\lib\impacket\examples
copying impacket\examples\mssqlshell.py -> build\lib\impacket\examples
copying impacket\examples\os_ident.py -> build\lib\impacket\examples
copying impacket\examples\remcomsvc.py -> build\lib\impacket\examples
copying impacket\examples\rpcdatabase.py -> build\lib\impacket\examples
copying impacket\examples\secretsdump.py -> build\lib\impacket\examples
copying impacket\examples\serviceinstall.py -> build\lib\impacket\examples
copying impacket\examples\smbclient.py -> build\lib\impacket\examples
copying impacket\examples\utils.py -> build\lib\impacket\examples
copying impacket\examples\__init__.py -> build\lib\impacket\examples
copying impacket\dcerpc\v5\atsvc.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\bkrp.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\dcomrt.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\dhcpm.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\drsuapi.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\dssp.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\dtypes.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\enum.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\epm.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\even.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\even6.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\iphlp.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\lsad.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\lsat.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\mgmt.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\mimilib.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\ndr.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\nrpc.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\nspi.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\oxabref.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\par.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\rpch.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\rpcrt.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\rprn.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\rrp.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\samr.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\sasec.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\scmr.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\srvs.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\transport.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\tsch.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\tsts.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\wkst.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\__init__.py -> build\lib\impacket\dcerpc\v5
copying impacket\dcerpc\v5\dcom\comev.py -> build\lib\impacket\dcerpc\v5\dcom
copying impacket\dcerpc\v5\dcom\oaut.py -> build\lib\impacket\dcerpc\v5\dcom
copying impacket\dcerpc\v5\dcom\scmp.py -> build\lib\impacket\dcerpc\v5\dcom
copying impacket\dcerpc\v5\dcom\vds.py -> build\lib\impacket\dcerpc\v5\dcom
copying impacket\dcerpc\v5\dcom\wmi.py -> build\lib\impacket\dcerpc\v5\dcom
copying impacket\dcerpc\v5\dcom\__init__.py -> build\lib\impacket\dcerpc\v5\dcom
copying impacket\krb5\asn1.py -> build\lib\impacket\krb5
copying impacket\krb5\ccache.py -> build\lib\impacket\krb5
copying impacket\krb5\constants.py -> build\lib\impacket\krb5
copying impacket\krb5\crypto.py -> build\lib\impacket\krb5
copying impacket\krb5\gssapi.py -> build\lib\impacket\krb5
copying impacket\krb5\kerberosv5.py -> build\lib\impacket\krb5
copying impacket\krb5\keytab.py -> build\lib\impacket\krb5
copying impacket\krb5\kpasswd.py -> build\lib\impacket\krb5
copying impacket\krb5\pac.py -> build\lib\impacket\krb5
copying impacket\krb5\types.py -> build\lib\impacket\krb5
copying impacket\krb5\__init__.py -> build\lib\impacket\krb5
copying impacket\ldap\ldap.py -> build\lib\impacket\ldap
copying impacket\ldap\ldapasn1.py -> build\lib\impacket\ldap
copying impacket\ldap\ldaptypes.py -> build\lib\impacket\ldap
copying impacket\ldap\__init__.py -> build\lib\impacket\ldap
copying impacket\examples\ntlmrelayx\__init__.py -> build\lib\impacket\examples\ntlmrelayx
copying impacket\examples\ntlmrelayx\clients\dcsyncclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\httprelayclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\imaprelayclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\ldaprelayclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\mssqlrelayclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\rpcrelayclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\smbrelayclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\smtprelayclient.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\clients\__init__.py -> build\lib\impacket\examples\ntlmrelayx\clients
copying impacket\examples\ntlmrelayx\servers\httprelayserver.py -> build\lib\impacket\examples\ntlmrelayx\servers
copying impacket\examples\ntlmrelayx\servers\rawrelayserver.py -> build\lib\impacket\examples\ntlmrelayx\servers
copying impacket\examples\ntlmrelayx\servers\smbrelayserver.py -> build\lib\impacket\examples\ntlmrelayx\servers
copying impacket\examples\ntlmrelayx\servers\socksserver.py -> build\lib\impacket\examples\ntlmrelayx\servers
copying impacket\examples\ntlmrelayx\servers\wcfrelayserver.py -> build\lib\impacket\examples\ntlmrelayx\servers
copying impacket\examples\ntlmrelayx\servers\__init__.py -> build\lib\impacket\examples\ntlmrelayx\servers
copying impacket\examples\ntlmrelayx\servers\socksplugins\http.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\servers\socksplugins\https.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\servers\socksplugins\imap.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\servers\socksplugins\imaps.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\servers\socksplugins\mssql.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\servers\socksplugins\smb.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\servers\socksplugins\smtp.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\servers\socksplugins\__init__.py -> build\lib\impacket\examples\ntlmrelayx\servers\socksplugins
copying impacket\examples\ntlmrelayx\utils\config.py -> build\lib\impacket\examples\ntlmrelayx\utils
copying impacket\examples\ntlmrelayx\utils\enum.py -> build\lib\impacket\examples\ntlmrelayx\utils
copying impacket\examples\ntlmrelayx\utils\ssl.py -> build\lib\impacket\examples\ntlmrelayx\utils
copying impacket\examples\ntlmrelayx\utils\targetsutils.py -> build\lib\impacket\examples\ntlmrelayx\utils
copying impacket\examples\ntlmrelayx\utils\tcpshell.py -> build\lib\impacket\examples\ntlmrelayx\utils
copying impacket\examples\ntlmrelayx\utils\__init__.py -> build\lib\impacket\examples\ntlmrelayx\utils
copying impacket\examples\ntlmrelayx\attacks\dcsyncattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\httpattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\imapattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\ldapattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\mssqlattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\rpcattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\smbattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\__init__.py -> build\lib\impacket\examples\ntlmrelayx\attacks
copying impacket\examples\ntlmrelayx\attacks\httpattacks\adcsattack.py -> build\lib\impacket\examples\ntlmrelayx\attacks\httpattacks
copying impacket\examples\ntlmrelayx\attacks\httpattacks\__init__.py -> build\lib\impacket\examples\ntlmrelayx\attacks\httpattacks
running build_scripts
error: [Errno 22] Invalid argument: 'examples\\atexec.py'

How do you get it to work on Windows usually?

please check #1725