-
Execute Unix Command via Putty_QTP
- plink_path = "C:/plink.exe"
- username = "username"
- password = "password"
- host = "192.168.0.1"
-
- command = "ls"
-
- Set oShell = CreateObject("WSCript.shell")
- commandLine = plink_path & " -ssh " & username & "@" & host & " -pw " & password & " " & command
- Set exeRs = oShell.Exec(commandLine)
-
- errMsg = exeRs.StdErr.ReadAll()
- stdMsg = exeRs.StdOut.ReadAll()
-
- msgbox stdMsg
-
相关阅读:
bugku web基础$_POST
bugku web基础$_GET
bugku 计算器
bugku web2
i春秋Musee de X
i春秋Hello World
i春秋登录
i春秋Blog
i春秋时间
i春秋Hash
-
原文地址:https://www.cnblogs.com/ellie-test/p/3807414.html
Copyright © 2020-2023
润新知