var ie=WScript.createobject("InternetExplorer.Application");
var args = WScript.arguments;
var followme="if(args.length>0)
{
followme+=args(0);
}
ie.Navigate("https://www.google.com/accounts/Login?continue="+followme);
SynchronizeIE();
var doc=ie.document;
doc.forms[0].Email.value="[email protected]";
doc.forms[0].Passwd.value="密碼寫在這里";
//這是因為PersistentCookie這個checkbox有時候有而有時候沒有,。
if(doc.forms[0].PersistentCookie!=null)
{
doc.forms[0].PersistentCookie.checked=false;
}
doc.forms[0].submit();
SynchronizeIE();
ie.Visible=true;
//等待IE操作結(jié)束,。
function SynchronizeIE()
{
while(ie.Busy)
{
WScript.Sleep(100);
}
}
假定把該文件保存為googleSpecific.js,存放在%windir%\system32路徑下,,并建立如下內(nèi)容的一個google.bat文件同樣放在%windir%\system32路徑下,。
@cls
@wscript %windir%\system32\googleSpecific.js %1 %2 %3 %4 %5 %6 %7 %8 %9
然后,,在命令行執(zhí)行語句:go mail,就可以直接登陸到你的gmail了,。
同樣類似的命令還有:
Go notebook à便簽簿
http://flappy.cnblogs.com/archive/2006/07/09/446673.html
Go bookmarks à網(wǎng)絡(luò)收藏夾
如果直接輸入go而不接任何內(nèi)容的話,,則會以你的名義登陸到google.com首頁。另外,,googleSpecific.js最好用screnc.exe進行加密,,加密后的文件格式是.jse,但即使是這樣也不能保證文件中的密碼不被別人看到(scrdec可以進行解密),。更好的保密手段還請各位多提意見,。