• 企业400电话
  • 微网小程序
  • AI电话机器人
  • 电商代运营
  • 全 部 栏 目

    企业400电话 网络优化推广 AI电话机器人 呼叫中心 网站建设 商标✡知产 微网小程序 电商运营 彩铃•短信 增值拓展业务
    VBS Runas 自动输入密码, 明文
    复制代码 代码如下:

    Set Shell = CreateObject("WScript.Shell") Shell.Run "cmd /c @runas /user:administrator CMD" WScript.Sleep 2000 Shell.SendKeys "password{ENTER}exit{ENTER}" WScript.Sleep 1000 Shell.SendKeys "@echo offclsnet stop messengernet start messengerexit{ENTER}"


    @echo off
    echo dim WshShell,cmd >> %3runas.vbs
    echo cmd="%SystemRoot%\system32\cmd.exe" >> %3runas.vbs
    echo Set WshShell=WScript.CreateObject("WScript.Shell") >> %3runas.vbs
    echo WshShell.Run cmd >> %3runas.vbs
    echo WScript.Sleep 500 >> %3runas.vbs
    echo WshShell.SendKeys"runas /user:Administrators\%1 %3Bcmd.bat" >> %3runas.vbs
    echo WshShell.SendKeys"{ENTER}" >> %3runas.vbs
    echo WScript.Sleep 1000 >> %3runas.vbs
    echo WshShell.SendKeys"%2" >> %3runas.vbs
    echo WshShell.SendKeys"{ENTER}" >> %3runas.vbs
    echo WScript.Sleep 500 >> %3runas.vbs
    echo WshShell.SendKeys"exit" >> %3runas.vbs
    echo WshShell.SendKeys"{ENTER}" >> %3runas.vbs
    echo @echo off >> %3Bcmd.bat
    echo %4 %5 %6 %7 %8 %9 >> %3Bcmd.bat
    echo del %3runas.vbs >> %3Bcmd.bat
    echo del %3Bcmd.bat >> %3Bcmd.bat
    %3\runas.vbs
    以上保存为BAT
    复制代码 代码如下:

    dim WshShell,cmd
    cmd="%SystemRoot%\system32\cmd.exe"
    Set WshShell=WScript.CreateObject("WScript.Shell")
    WshShell.Run cmd
    WScript.Sleep 500
    WshShell.SendKeys"runas /user:Administrators\用户名 密码 命令"
    WshShell.SendKeys"{ENTER}"
    WScript.Sleep 1000
    WshShell.SendKeys"%2"
    WshShell.SendKeys"{ENTER}"
    WScript.Sleep 500
    WshShell.SendKeys"exit"
    WshShell.SendKeys"{ENTER}"
    以上保存为VBS

    Runas
    只有在通过自动登陆读到密码时才有用
    上一篇:vbs imail 密码解密
    下一篇:vbscript 三个数比较大小的实现代码
  • 相关文章
  • 

    © 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    VBS Runas 自动输入密码, 明文 VBS,Runas,自动,输入,密码,