예제 #1
0
    private void CreateAccount()
    {
        this.httpPost = new SocksHTTPRequest.Post("chatango.com", this.account.proxy, OnAccountCreate);
        Dictionary <string, string> postData = new Dictionary <string, string>();
        Dictionary <string, string> headers  = httpPost.GetHeaders();

        string email = this.account.GenerateEmail();

        postData["email"]            = email;
        postData["login"]            = this.account.username;
        postData["password"]         = this.account.password;
        postData["password_confirm"] = this.account.password;
        postData["storecookie"]      = "on";
        postData["signupsubmit"]     = "Sign up";
        postData["checkerrors"]      = "yes";

        this.httpPost.StartRequest("signupdir", headers, postData);
    }
예제 #2
0
    private void GetAuthID()
    {
        this.httpPost = new SocksHTTPRequest.Post("chatango.com", this.account.proxy, new SocksHTTPRequest.Post.onCompletion(OnRecieveAuth));

        Dictionary <string, string> postData = new Dictionary <string, string>();
        Dictionary <string, string> headers  = httpPost.GetHeaders();

        postData["user_id"]     = this.account.username;
        postData["password"]    = this.account.password;
        postData["storecookie"] = "on";
        postData["checkerrors"] = "yes";

        headers["Cache-Control"] = "max-age=0";
        headers["Origin"]        = "http://chatango.com";
        headers["Referer"]       = "http://chatango.com/login";

        this.httpPost.StartRequest("login", headers, postData);
    }
예제 #3
0
    public void FlagUser(string username)
    {
        this.httpPost = new SocksHTTPRequest.Post("chatango.com", this.account.proxy, new SocksHTTPRequest.Post.onCompletion(OnFlag));
        Dictionary <string, string> postData = new Dictionary <string, string>();
        Dictionary <string, string> headers  = httpPost.GetHeaders();
        Dictionary <string, string> cookies  = new Dictionary <string, string>();

        postData["t"]   = this.authid;
        postData["sid"] = username;

        cookies["auth.chatango.com"]            = this.authid;
        cookies["cookies_enabled.chatango.com"] = "yes";
        cookies["id.chatango.com"]  = this.account.username;
        cookies["fph.chatango.com"] = "http";

        headers["Referer"] = "http://st.chatango.com/flash/SellersApp.swf";
        headers["Origin"]  = "http://st.chatango.com";

        this.httpPost.StartRequest("iflag", headers, postData, cookies);
    }
    public void FlagUser(string username)
    {
        this.httpPost = new SocksHTTPRequest.Post("chatango.com", this.account.proxy, new SocksHTTPRequest.Post.onCompletion(OnFlag));
        Dictionary<string, string> postData = new Dictionary<string, string>();
        Dictionary<string, string> headers = httpPost.GetHeaders();
        Dictionary<string, string> cookies = new Dictionary<string,string>();

        postData["t"] = this.authid;
        postData["sid"] = username;

        cookies["auth.chatango.com"] = this.authid;
        cookies["cookies_enabled.chatango.com"] = "yes";
        cookies["id.chatango.com"] = this.account.username;
        cookies["fph.chatango.com"] = "http";

        headers["Referer"] = "http://st.chatango.com/flash/SellersApp.swf";
        headers["Origin"] = "http://st.chatango.com";

        this.httpPost.StartRequest("iflag", headers, postData, cookies);
    }
    private void GetAuthID()
    {
        this.httpPost = new SocksHTTPRequest.Post("chatango.com", this.account.proxy, new SocksHTTPRequest.Post.onCompletion(OnRecieveAuth));

        Dictionary<string, string> postData = new Dictionary<string, string>();
        Dictionary<string, string> headers = httpPost.GetHeaders();

        postData["user_id"] = this.account.username;
        postData["password"] = this.account.password;
        postData["storecookie"] = "on";
        postData["checkerrors"] = "yes";

        headers["Cache-Control"] = "max-age=0";
        headers["Origin"] = "http://chatango.com";
        headers["Referer"] = "http://chatango.com/login";

        this.httpPost.StartRequest("login", headers, postData);
    }
    private void CreateAccount()
    {
        this.httpPost = new SocksHTTPRequest.Post("chatango.com", this.account.proxy, OnAccountCreate);
        Dictionary<string, string> postData = new Dictionary<string,string>();
        Dictionary<string, string> headers = httpPost.GetHeaders();

        string email = this.account.GenerateEmail();

        postData["email"] = email;
        postData["login"] = this.account.username;
        postData["password"] = this.account.password;
        postData["password_confirm"] = this.account.password;
        postData["storecookie"] = "on";
        postData["signupsubmit"] = "Sign up";
        postData["checkerrors"] = "yes";

        this.httpPost.StartRequest("signupdir", headers, postData);
    }