首页 > 代码库 > Facebook注册机_Facebook账号注册_Csharp代码示例_.Net代码_VS2013
Facebook注册机_Facebook账号注册_Csharp代码示例_.Net代码_VS2013
【Facebook注册机_Facebook账号注册_Csharp代码示例_.Net代码】
朋友叫了很久帮忙写,无奈今天花时间研究下。。。。
下面只是一个简单示例,
里面我写有一些类,对于写注册机之类的,或许有帮助哟!!
======================================
注册是成功了,可登录发现跳出手机验证。。。。
部分代码:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Windows.Forms; namespace Register { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { button1.Enabled = false; Notify("*********开始**********", 2); //设置参数 string xing = EnVon.Helper.ChineseHelper.GetXing(); string ming = EnVon.Helper.ChineseHelper.GetMing(2); string email = Helper.ChineseHelper.GetPinYin(xing + ming).ToLower() + Helper.StringHelper.GetEmailDomain(); string password = EnVon.Helper.StringHelper.RndString(4) + EnVon.Helper.StringHelper.RndString(5, 1); string birYear = Helper.StringHelper.RndNumberS(1980, 1996); string birMonth = Helper.StringHelper.RndNumberS(1, 13); string birDay = Helper.StringHelper.RndNumberS(1, 29); string retData = http://www.mamicode.com/string.Empty;>using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Facebook { /// <summary> /// Facebook账号注册 /// </summary> public class Register { private Random RND = new Random(); private EnVon.HttpRequest http = null; #region 注册的参数 public string lastname { get; set; } public string firstname { get; set; } public string reg_email__ { get; set; } public string reg_email_confirmation__ { get; set; } public string reg_passwd__ { get; set; } public string birthday_year { get; set; } public string birthday_month { get; set; } public string birthday_day { get; set; } private string lsd { get; set; } private string sex { get { return string.Empty + RND.Next(1, 3); } set { } } private string referrer { get; set; } private string asked_to_login { get; set; } private string terms { get; set; } private string ab_test_data { get; set; } private string contactpoint_label { get; set; } private string locale { get; set; } private string abtest_registration_group { get; set; } private string reg_instance { get; set; } private string captcha_persist_data { get; set; } private string captcha_session { get; set; } private string extra_challenge_params { get; set; } private string recaptcha_type { get; set; } private string captcha_response { get; set; } private string ignore { get; set; } private string __user { get; set; } private string __a { get; set; } private string __dyn { get; set; } private string __req { get; set; } private string __rev { get; set; } #endregion public Register() { __req = "5"; //__dyn = "7wiXwNAwsUKEkzoynFwh8"; __a = "1"; __user = "0"; ignore = "captcha"; captcha_response = ""; recaptcha_type = "password"; abtest_registration_group = "1"; locale = "zh_CN"; contactpoint_label = "email_only"; terms = "on"; asked_to_login = "0"; referrer = ""; http = new EnVon.HttpRequest(); http.UserAgent = "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.3; WOW64; Trident/7.0)"; } /// <summary> /// 打开注册页并获取部分参数 /// </summary> /// <returns></returns> public int OpenRegPage() { string url = "https://www.facebook.com/"; string data = http://www.mamicode.com/http.GetData(url, "utf-8");>
使用VS2013编写,源码下载:
http://download.csdn.net/detail/envon123/7327619
=========================================================
END
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。