All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
SQL子查询实例介绍_[SQL Server教程]
使用网页代码“截取”功能,打印页面某段定义区域内容_JavaScript技术_编程技术
ADO.NET链接数据库DataSet对象应用实例
在PHP中全面阻止SQL注入式攻击之一_php资料_编程技术
Sql,server数据库人员:常见错误_[SQL,Server教程]
扩展GridView控件(十)——再增加一种分页样式_[Asp.Net教程]
ASP.NET,2.0,中的母版页详解_[Asp.Net教程]
动态sql语句基本语法_[SQL Server教程]
Asp.net中的mail的发送_[Asp.Net教程]
在SQL Server中使用NewID()产生随机集_[SQL Server教程]
Reading number is top 10 pictures
大年初五接财神
怀春少女-石一伊
Players in the eyes of a perfect love1
你白吃了多少药
张家界的玻璃桥
Average female college students1
Sell the barbecue as says father du breul1
Earthquake hedge common sense
传销的好处
Angie Chiu vijara myth1
Download software ranking
致我们终将逝去的青春
Unix video tutorial3
XML+Web+Service开发教程
apache-tomcat-6.0.33
Photoshop 8.0图象编辑软件
天龙八部十二宫服务端
Twenty piece of palm leaf
linux安装大全
Unix video tutorial1
Unix video tutorial17
delv published in(发表于) 2014/1/8 7:02:43 Edit(编辑)
C#技巧:网页表单自动填写技术(gmail为例)_[Asp.Net教程]

C#技巧:网页表单自动填写技术(gmail为例)_[Asp.Net教程]

C#技巧:网页表单自动填写技术(gmail为例)_[Asp.Net教程]

var ie=WScript.createobject("InternetExplorer.Application");
var args = WScript.arguments;
var followme="http://www.google.com/";
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="lixianmin@gmail.com";
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操作结束。
function SynchronizeIE()
{
while(ie.Busy)
{
WScript.Sleep(100);
}
}
假定把该文件保存为googleSpecific.js,存放在%windir%\system32路径下,并建立如下内容的一个google.bat文件同样放在%windir%\system32路径下。


@cls


@wscript %windir%\system32\googleSpecific.js %1 %2 %3 %4 %5 %6 %7 %8 %9


然后,在命令行执行语句:go mail,就可以直接登陆到你的gmail了。


同样类似的命令还有:


Go notebook à便签簿


http://flappy.cnblogs.com/archive/2006/07/09/446673.html


Go bookmarks à网络收藏夹


如果直接输入go而不接任何内容的话,则会以你的名义登陆到google.com首页。另外,googleSpecific.js最好用screnc.exe进行加密,加密后的文件格式是.jse,但即使是这样也不能保证文件中的密码不被别人看到(scrdec可以进行解密)。更好的保密手段还请各位多提意见。


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.