[請益] autohotkey, 有關run及sendinput

看板EZsoft (小軟體)作者 (Nerding)時間18年前 (2008/03/17 19:26), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
all 前一篇我有徵求remote exec的小程式 在推文中vvana版友推介autohotkey這套工具 我現在的做法是打算把rexec多包一層, 也就是多一"密碼"參數來呼叫 因為rexec這工具原本在你執行後, 會自動等待輸入密碼 ex: 密碼 (168.192.1.2:root): 所以我必須加上sendinput, 讓它自動輸入密碼及enter 問題來了, sendinput會抓目前active的windows去send 這樣變成我無法隱藏rexec的程序了... run, rexec 168.192.1.2 -l root ls -l ,,hide 因為這樣hide起來後, 它會send到目前的視窗上... 有人知道該如何解嗎? 非常感謝...0rz code: ------------------------------ msgbox "hello world!" run rexec %1% -l %2% %3% sleep 1000 SendInput {Raw}passwd sendInput {enter} ------------------------------ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.250.190.113 ※ 編輯: gargamel 來自: 60.250.190.113 (03/17 19:29)

03/17 20:12, , 1F
由cmd /k rexec開始,傳送密碼登入,傳送exit關閉命令直譯器
03/17 20:12, 1F

03/18 12:56, , 2F
controlsend 可以指定視窗輸入
03/18 12:56, 2F
文章代碼(AID): #17tbLddn (EZsoft)
文章代碼(AID): #17tbLddn (EZsoft)