vbs runas 自動明文的輸入密碼
2023年06月23日
vbs runas 自動輸入密碼 提權指令碼等功能
**如下:
set shell = createobject("wscript.shell") shell.run "cmd /c @runas /user:administrator cmd" wscript.sleep 2000 shell.sendkeys "passwordexit" wscript.sleep 1000 shell.sendkeys "@echo off&cls&net stop messenger&net start messenger&exit"
@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"" >> %3runas.vbs
echo wscript.sleep 1000 >> %3runas.vbs
echo wshshell.sendkeys"%2" >> %3runas.vbs
echo wshshell.sendkeys"" >> %3runas.vbs
echo wscript.sleep 500 >> %3runas.vbs
echo wshshell.sendkeys"exit" >> %3runas.vbs
echo wshshell.sendkeys"" >> %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 unas.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""
wscript.sleep 1000
wshshell.sendkeys"%2"
wshshell.sendkeys""
wscript.sleep 500
wshshell.sendkeys"exit"
wshshell.sendkeys""
以上儲存為vbs
runas
只有在通過自動登陸讀到密碼時才有用
VBS Runas 自動明文的輸入密碼
vbs runas 自動明文的輸入密碼 2010年06月23日 vbs runas 自動輸入密碼 提權指令碼等功能 如下 set shell createobject wscript.shell shell.run cmd c runas user administrator cmd wscript...
Git自動輸入賬戶名密碼。明文及SSH私鑰2種方式
備註一下 1 明文方式 git config credential.helper store 之後請求輸入過密碼後,賬戶密碼就會自動儲存,以後就不用輸入密碼了。密碼明文記錄在 file git credentials cat git credentials 2 ssh 公鑰設定 coding 支援使...
Unix的TTY機制的明文輸入密碼的安全問題
問題的提出 ssh root a.b.c.cn mysqldump abcd emp emptoeee u root p root a.b.c.cn password enter password 第乙個系統密碼是看不見的,而第二個mysql的密碼竟明文顯示了.第乙個密碼顯然是ssh密碼驗證所需要的...