Example #1
0
 public ManualHarvester(TaskObject.PlatformEnum platform)
 {
     Class7.RIuqtBYzWxthF();
     this.Platform = platform;
 }
Example #2
0
        public string Listen(HttpListenerRequest request, string website, string siteKey)
        {
            string[] textArray1;
            try
            {
                using (StreamReader reader = new StreamReader(request.InputStream, request.ContentEncoding))
                {
                    string str = reader.ReadToEnd().Replace("token=", string.Empty);
                    if (!str.Equals(string.Empty))
                    {
                        try
                        {
                            CaptchaToken item = new CaptchaToken {
                                Id          = Guid.NewGuid().ToString(),
                                Created     = DateTime.Now,
                                CaptchaType = CaptchaSolver.CaptchaService.Manual,
                                Website     = this._website
                            };
                            TaskObject.PlatformEnum platform = this.Platform;
                            if (platform == TaskObject.PlatformEnum.shopify)
                            {
                                item.Platform = "Shopify";
                            }
                            else if (platform == TaskObject.PlatformEnum.supreme)
                            {
                                item.Platform = "Supreme";
                            }
                            else if (platform == TaskObject.PlatformEnum.sneakersnstuff)
                            {
                                item.Platform = "Sneakersnstuff";
                            }
                            item.Token     = str;
                            item.Timestamp = DateTime.Now;
                            item.Expires   = item.Timestamp.AddMinutes(2.0);
                            TimeSpan span = (TimeSpan)(item.Timestamp - item.Created);
                            item.SolveTime = (span.Minutes * 60) + span.Seconds;
                            if (!string.IsNullOrEmpty(item.Token))
                            {
                                switch (this.Platform)
                                {
                                case TaskObject.PlatformEnum.shopify:
                                    Global.ShopifyTokens.Add(item);
                                    goto Label_0172;

                                case TaskObject.PlatformEnum.supreme:
                                    Global.SupremeTokens.Add(item);
                                    goto Label_0172;

                                case TaskObject.PlatformEnum.sneakersnstuff:
                                    Global.SnsTokens.Add(item);
                                    break;
                                }
                            }
                        }
                        catch (Exception)
                        {
                        }
                    }
                }
            }
            catch (Exception)
            {
            }
Label_0172:
            textArray1 = new string[] { "<html>\r\n<head>\r\n<style>\r\nform {\r\n  text-align: center;\r\n}\r\nbody {\r\n  text-align: center;\r\n  background-color:#E1E5EB;\r\n  \r\n}\r\n\r\nh1 {\r\n  text-align: center; color: red;\r\n}\r\nh3 {\r\n  text-align: center;\r\n}\r\ndiv-captcha {\r\n      text-align: center;\r\n}\r\n    .g-recaptcha {\r\n        display: inline-block;\r\n    }\r\n</style>\r\n<h2>Harvesting for: ", website, "</h2><br> \r\n\r\n<br>\r\nAfter you retrieved / set a new API-Key in the bot, please RELOAD this page.</h3>\r\n<br><br>\r\n<meta name=\"referrer\" content=\"never\"> <script type='text/javascript' src='https://www.google.com/recaptcha/api.js?onload=recaptchaCallback&render=explicit&hl=en'></script><script>var recaptchaCallback = function() { grecaptcha.render('g-recaptcha', {sitekey: \"", siteKey, "\",size: (window.innerWidth > 320) ? 'normal' : 'compact',callback: 'onCaptchaSuccess',});}; var onCaptchaSuccess = function() {var event;try {event = new Event('captchaSuccess', { bubbles: true, cancelable: true});} catch (e) {event = document.createEvent('Event');event.initEvent('captchaSuccess', true, true);}window.dispatchEvent(event);}</script></head> <body oncontextmenu=\"return false\"><div id=\"div-captcha\"><div id=\"g-recaptcha\"</div></div> <br>\r\n<script>\r\n\r\nwindow.setInterval(function(){\r\n    var token = document.getElementById('g-recaptcha-response').value;\r\n    document.getElementById('g-recaptcha-response').value = '';\r\n    if(token != '')\r\n    {\r\n    var http = new XMLHttpRequest();\r\n    var params = \"token=\" +token;\r\n    http.open(\"POST\", \"/destroyer\", true);\r\n   http.setRequestHeader(\"Last-Modified\", \"", DateTime.Now.AddHours(-2.0).ToString("r"), "\");\r\n http.setRequestHeader(\"Date\", \"", DateTime.Now.AddHours(-2.0).ToString("r"), "\");\r\n   http.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\r\n    http.setRequestHeader(\"Content-length\", params.length)\r\n    http.send(params);\r\n    location.reload();\r\n}\r\n}, 500);\r\n</script>\r\n</body></html>" };
            return(string.Concat(textArray1));
        }
Example #3
0
 private void txtLink_TextChanged(object sender, TextChangedEventArgs e)
 {
     if (this.txtLink.Text.Contains("supreme"))
     {
         this.lblLinkType.Text   = "Supreme (Quick task unsupported)";
         this.btnStart.IsEnabled = false;
         this.btnStart.Opacity   = 0.6;
     }
     else if ((!string.IsNullOrEmpty(this.txtLink.Text.Trim()) && this.txtLink.Text.ToLowerInvariant().Contains("http")) && (this.txtLink.Text.Length > 8))
     {
         string str = this.txtLink.Text.ToLowerInvariant().Trim();
         if (!str.Contains("hibbett"))
         {
             if (str.Contains("boxlunch"))
             {
                 this._platform        = TaskObject.PlatformEnum.boxlunch;
                 this.lblLinkType.Text = "boxlunch";
             }
             else if (!str.Contains("hottopic"))
             {
                 if (str.Contains("woodwood"))
                 {
                     this._platform        = TaskObject.PlatformEnum.woodwood;
                     this.lblLinkType.Text = "woodwood";
                 }
                 else if (!str.Contains("mcmwor"))
                 {
                     if (!str.Contains("solebox"))
                     {
                         if (str.Contains("nordstrom"))
                         {
                             this._platform        = TaskObject.PlatformEnum.nordstrom;
                             this.lblLinkType.Text = "nordstrom";
                         }
                         else if (!str.Contains("mrporter"))
                         {
                             if (str.Contains("back-door"))
                             {
                                 this._platform        = TaskObject.PlatformEnum.backdoor;
                                 this.lblLinkType.Text = "backdoor";
                             }
                             else if (str.Contains("titolo"))
                             {
                                 this._platform        = TaskObject.PlatformEnum.titolo;
                                 this.lblLinkType.Text = "titolo";
                             }
                             else if (!str.Contains("sneakersnstuff"))
                             {
                                 if (!str.Contains("off---white"))
                                 {
                                     if (str.Contains("shop.funko"))
                                     {
                                         this._platform        = TaskObject.PlatformEnum.funko;
                                         this.lblLinkType.Text = "funko";
                                     }
                                     else if (!str.Contains("puma."))
                                     {
                                         if (str.Contains("converse."))
                                         {
                                             this._platform        = TaskObject.PlatformEnum.converse;
                                             this.lblLinkType.Text = "converse";
                                         }
                                         else if (!str.Contains("footlocker.com.au"))
                                         {
                                             if (!str.Contains("footlocker.eu") && !str.Contains("footlocker.co.uk"))
                                             {
                                                 if (str.Contains("finishline.com"))
                                                 {
                                                     this._platform        = TaskObject.PlatformEnum.finishline;
                                                     this.lblLinkType.Text = "finishline";
                                                 }
                                                 else if ((!str.Contains("footlocker.ca") && !str.Contains("champsspo")) && !str.Contains("eastbay"))
                                                 {
                                                     if ((!str.Contains("size.c") && !str.Contains("hipstore")) && (!str.Contains("jdspo") && !str.Contains("footpatrol")))
                                                     {
                                                         if (str.Contains("footaction"))
                                                         {
                                                             this._platform        = TaskObject.PlatformEnum.footaction;
                                                             this.lblLinkType.Text = "footaction";
                                                         }
                                                         else if (str.Contains("footlocker.com/"))
                                                         {
                                                             this._platform        = TaskObject.PlatformEnum.footaction;
                                                             this.lblLinkType.Text = "footlocker";
                                                         }
                                                         else if (!str.Contains("holypop"))
                                                         {
                                                             this._platform        = TaskObject.PlatformEnum.shopify;
                                                             this.lblLinkType.Text = "shopify";
                                                         }
                                                         else
                                                         {
                                                             this._platform        = TaskObject.PlatformEnum.holypopstore;
                                                             this.lblLinkType.Text = "holypopstore";
                                                         }
                                                     }
                                                     else
                                                     {
                                                         this._platform        = TaskObject.PlatformEnum.mesh;
                                                         this.lblLinkType.Text = "mesh";
                                                     }
                                                 }
                                                 else
                                                 {
                                                     this._platform        = TaskObject.PlatformEnum.footsites;
                                                     this.lblLinkType.Text = "footsites";
                                                 }
                                             }
                                             else
                                             {
                                                 this._platform        = TaskObject.PlatformEnum.footlockereu;
                                                 this.lblLinkType.Text = "fleu";
                                             }
                                         }
                                         else
                                         {
                                             this._platform        = TaskObject.PlatformEnum.footlockerau;
                                             this.lblLinkType.Text = "flau";
                                         }
                                     }
                                     else
                                     {
                                         this._platform        = TaskObject.PlatformEnum.puma;
                                         this.lblLinkType.Text = "puma";
                                     }
                                 }
                                 else
                                 {
                                     this._platform        = TaskObject.PlatformEnum.offwhite;
                                     this.lblLinkType.Text = "offwhite";
                                 }
                             }
                             else
                             {
                                 this._platform        = TaskObject.PlatformEnum.sneakersnstuff;
                                 this.lblLinkType.Text = "sneakersnstuff";
                             }
                         }
                         else
                         {
                             this._platform        = TaskObject.PlatformEnum.mrporter;
                             this.lblLinkType.Text = "mrporter";
                         }
                     }
                     else
                     {
                         this._platform        = TaskObject.PlatformEnum.solebox;
                         this.lblLinkType.Text = "solebox";
                     }
                 }
                 else
                 {
                     this._platform        = TaskObject.PlatformEnum.mcm;
                     this.lblLinkType.Text = "mcm";
                 }
             }
             else
             {
                 this._platform        = TaskObject.PlatformEnum.hottopic;
                 this.lblLinkType.Text = "hottopic";
             }
         }
         else
         {
             this._platform        = TaskObject.PlatformEnum.hibbett;
             this.lblLinkType.Text = "hibbet";
         }
         this.btnStart.IsEnabled = true;
         this.btnStart.Opacity   = 1.0;
     }
     else
     {
         this.lblLinkType.Text   = "unknown link";
         this.btnStart.IsEnabled = false;
         this.btnStart.Opacity   = 0.6;
     }
 }