分享

横向移动-PsExec轻量级 telnet 替代品

 zZ华 2023-05-31 发布于广东

PsExec 是 Sysinternals 工具套件的一部分,它是一组用于管理和排除 Windows 系统故障的实用程序。

它非常适合在目标机器上远程执行指令。

注意:一些AV将PsExec检测为“远程管理员”病毒。

安装:(PowerShell)

Invoke-WebRequest -Uri 'https://download./files/PSTools.zip' -OutFile 'pstools.zip'Expand-Archive -Path 'pstools.zip' -DestinationPath '$env:TEMP\pstools'Move-Item -Path '$env:TEMP\pstools\psexec.exe' .Remove-Item -Path '$env:TEMP\pstools' -Recurse

使用方法:

# Prevent the license agreement from being displayedpsexec.exe /accepteula
# Run the 'hostname' command on remote machinepsexec.exe \\REMOTECOMPUTER hostname
# Run the 'hostname' command on EVERYTHING (on the domain)psexec.exe \\* hostname
# Run a local executable on a remote machinepsexec.exe \\REMOTECOMPUTER -c C:\Tools\program.exe
# Run the 'hostname' command with different credentialspsexec.exe \\REMOTECOMPUTER hostname -u localadmin -p secret-p@$$word
# Spawn shell on remote machinepsexec.exe -s \\REMOTECOMPUTER cmd

图片

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多