View Single Post
  #477 (permalink)  
Old 06-08-2009, 03:34 AM
dude1's Avatar
dude1
N00b
Offline
 
Join Date: Jul 2008
Posts: 32
Reputation: 15
dude1 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: C-ApiSRO - Sirius/XM Satellite Radio for PocketPC (PPC)

asked in another forum about bypassing captchas for sirius and was told this hope iy can get implemented in c_apisro


Quote:
Here are the Captcha constants:

Code:
    //US Captcha response array
    string[] CaptchaRespUS = new string [] {"wrq2", "ltfk", "2bxh", "mf6d", "fexy", "wc46", "fyp7", "x6aw", "nqqd", "rt3k", "kqhf", "f2wg", "atlx", "qnaf", "ca2t", "cy36", "xddq", "yayf", "4p67", "7ekw", "yzln", "rhld", "4eac", "bhka", "t4kw", "azqe", "rwhn", "7rpd", "fywp", "7hcb", "ar3l", "tdkt", "kf4y", "yffz", "eydh", "ywnk", "nfwm", "2n4d", "634t", "ynah", "mhpq", "n26m", "ra4c", "dr4e", "p6cz", "cnaw", "w6wm", "wm3y", "mrdg", "3khr", "p6fy", "ageh", "ctdc", "hdzy", "wnkm", "k72h", "k627", "pmw2", "mwew", "y3ya", "r67t", "ndpe", "q7mq", "klw2", "pydr", "aqkh", "wdfw", "ewqh", "ttep", "tn6r", "p6yx", "nrkw", "exeb", "ywnz", "mhzt", "f7mc", "rymy", "mtpc", "rc3k", "xebn", "ffgh", "6y2d", "mbkx", "6nch", "thyg", "rtae", "hwe2", "3f6d", "dqpc", "hacn", "ampy", "mler", "mdt2", "qgbl", "pdqp", "eeyc", "mfml", "pq3f", "hppc", "ptxc"};

    //CN Captcha response array
    string[] CaptchaRespCN = new string [] {"vRLCHr", "Rk9f3b", "tN2R1A", "R3iwj5", "jBjsvj", "v3jvKg", "IImNmx", "cahMYf", "Vw3rxG", "R7KPgK", "RUyTUS", "cef11w", "NAQbyX", "q6EYAH", "tReWYs", "fimQlm", "U6qsi6", "m5Wkwh", "FpVR2T", "CuAF1k", "sgnUw7", "4N1RPP", "ech2am", "CtbsNQ", "kXrPES", "1AgXSR", "5DHYSR", "e3ru7T", "c1yjHE", "FR1ltI", "Xtn36U", "DHEWnx", "8KePqv", "1TKVVk", "BIY138", "RA6c83", "SaluKT", "T89gGV", "gUPVqL", "J4F3gi", "BbQnjy", "qLrRgi", "c3eSfa", "yAhdN5", "3YW4WC", "mPvBah", "UZnHN4", "x24GCx", "GLdYdn", "DsUIMk", "7GCaEc", "1WXPNr", "SRpRsG", "vSlae4", "r95Vhm", "1tGuk7", "wnZyD4", "c8lj6k", "sdQ3X4", "5FNMsi", "Up7Rni", "csjyJa", "9Uq5rm", "p9kbvj", "Cy1iip", "mc7y2c", "SE3rqi", "YmJ3Tv", "Qr32YN", "13rcdJ", "xn33VA", "tjxuf4", "3hLBuU", "3fntSq", "rMYmpH", "yvKfyR", "bkxHDW", "EtUSs3", "3gA7wG", "Yn3uUL", "hcw9cg", "aLI1R7", "wmkRRP", "Rm3C3i", "CgS98N", "xaF7cd", "ATxch8", "8I1rDk", "C8896y", "SiNusq", "AQZ3kR", "ARFUSP", "hDgs72", "Lxbg1X", "4716A3", "gCkAqa", "wRDWeN", "h64fGf", "Cr2VPm", "66SiiF"};
The position in the array matches the captha id embedded in their login page.

So this calls a routine to get the response code from the array:

Code:
captcharesp[this.GetCaptchaIndex(curpage)]
The routine to parse the code would look something like this:

Code:
/// <summary>
    /// Get the image number so we
    /// can return the proper response from 
    /// the response array.
    /// </summary>
    /// <param name="page"></param>
    /// <returns></returns>
    private int GetCaptchaIndex(string curPage)
    {
        #region "Captch image path sample"
        //http://www.sirius.com/mp/captcha/image/img_001.jpg
        //USA

        //http://mp.siriuscanada.ca/mp/captcha/image/img_001.jpg
        //CA
        #endregion

        //Get captcha image source
        string [] result = iterum2.GetHtmlSourceVal("src=\"/mp/captcha/image", curPage).Split(Char.Parse("/"));

        //get captca image number and parse array index out of it
        return (int.Parse(result[result.GetUpperBound(0)].Substring(4,3))-1);

    }
Reply With Quote