现在,很多老师都喜欢使用公共邮箱,但是,因为不是自己的邮箱,没记住,每次想登录都很麻烦。。。
?
本来是想写个桌面程序的,但最近没什么时间,就先把下面的几个文件贴出来共享吧。。
?
原理的话,很简单的,自己对比下下面几个文件就明白了。。。其实,一些不用验证码的网站也是可以实现自动登录的。。。
?
欢迎下载附件,然后在html文件中,修改下用户名密码就行了。。。没有账号的,自己copy代码,保存为html,再下个jQuery脚本库(谷哥一下jQuery就有了),改下这里src="jquery-1.4.2.min.js"就行了。
?
现在,已经在几种邮箱测试过了,可以自动登录。但有些邮箱还是不能实现,原因是这一句 $("body").append(html);中所取得的html内容加到body上出现错误,因为取到的html是一个完整的文档,某些语法上可能会出错吧?个人理解,请指正。
?
有兴趣的人,如果其他邮箱也实现自动登录的,欢迎留言交流,谢谢!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>126邮箱自动登录</title> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($){ $.ajax({ url: "http://www.126.com", cache: false, success: function(html){ $("body").append(html); $("input[name='user']").val("这里改为用户名,@之前的"); $("input[type='password']").val("这里改为密码"); $("form[name='form']").submit(); } }); }); </script> </head> <body> </body> </html>
?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>yeah邮箱自动登录</title> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($){ $.ajax({ url: "http://www.yeah.net/", cache: false, success: function(html){ $("body").append(html); $("input[name='user']").val("这里改为用户名,@之前的"); $("input[type='password']").val("这里改为密码"); $("form[name='form']").submit(); } }); }); </script> </head> <body> </body> </html>
?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>163邮箱自动登录</title> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($){ $.ajax({ url: "http://mail.163.com", cache: false, success: function(html){ $("body").append(html); $("input[name='userName']").val("这里改为用户名,@之前的"); $("input[name='password']").val("这里改为密码"); $("form[name='login163']").submit(); } }); }); </script> </head> <body> </body> </html>
?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>sina cn邮箱自动登录</title> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($){ $.ajax({ url: "http://mail.sina.com.cn/cnmail", cache: false, success: function(html){ $("body").append(html); $("input[name='u']").val("这里改为用户名,@之前的"); $("input[type='password']").val("这里改为密码"); $("form[name='frm_login']").submit(); } }); }); </script> </head> <body> </body> </html>
?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>google邮箱自动登录</title> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($){ $.ajax({ url: "https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=1eic6yu9oa4y3&scc=1<mpl=default<mplcache=2", cache: false, success: function(html){ $("body").append(html); $("input[name='Email']").val("这里改为用户名,@之前的"); $("input[type='password']").val("这里改为密码"); $("form[id='gaia_loginform']").submit(); } }); }); </script> </head> <body> </body> </html>
?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>139邮箱自动登录</title> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($){ $.ajax({ url: "https://mail.10086.cn/", cache: false, success: function(html){ $("body").append(html); $("input[name='UserName']").val("这里改为用户名,@之前的"); $("input[type='password']").val("这里改为密码"); $("form[id='loginForm']").submit(); } }); }); </script> </head> <body> </body> </html>
?