内网安全-渗透测试指南(一)

⼀、内⽹渗透测试基础
    Powershell
          查看执⾏策略 Get-ExecutionPolicy
          设置执⾏策略 Set-ExecutionPolicy [options]
          Restricted 脚本不能执⾏【默认设置】
          RemoteSigned 本地脚本可以运⾏,远程脚本不能运⾏
          AllSigned 受信任的签名脚本才能运⾏
          Unrestricted 允许所有脚本运
运⾏脚本 .\test.ps1
          powershell.exe -ExecutionPolicy bypass -File powerup.ps1
          powershell.exe -exec bypass -command "& {Import-Module c:\powerup.ps1;Invoke-AllChecks}"
  ⼀些常⽤参数
          -ExecutionPolicy bypass 绕过执⾏安全策略
          -W hidden 隐藏窗⼝
          -NonI 不提供交互式的提示
          -NoP 不加载当前 ⽤户的配置⽂件
          -noexit 执⾏后不退出 shell
          -nologo 不显示 powershell 版权信息
          -enc xxxxxx 加载 base64 编码后的脚本内容
32 位与 64
          32 位: powershell.exe -Nop -NonI -W hidden -exec bypass
          64
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值