예제 #1
0
 public ResolveState Resolve(CaptchaStatics statics, CaptchaService service)
 {
     if (service == CaptchaService.CAP_MONSTER)
     {
         Capmonter capmonter = new Capmonter(statics);
         return(capmonter.ResoloveCaptcha());
     }
     else if (service == CaptchaService.ANTI_CAPTCHA)
     {
         AntiCaptcha antiCaptcha = new AntiCaptcha(statics);
         return(antiCaptcha.ResovleCaptcha());
     }
     else if (service == CaptchaService.BYPASS)
     {
         AntiCaptcha antiCaptcha = new AntiCaptcha(statics);
         return(antiCaptcha.ResovleCaptcha());
     }
     else
     {
         _2Captcha _2Captcha = new _2Captcha(statics.Apikey);
         return(_2Captcha.SolveRecaptchaV2(YolikerStatics.GooglePublicKey, YolikerStatics.LikeCustomUri, out statics.SolvedCaptchaResponse));
     }
 }
예제 #2
0
 public AntiCaptcha(CaptchaStatics statics)
 {
     captchaStatics = statics;
 }
예제 #3
0
 public Capmonter(CaptchaStatics statics)
 {
     captchaStatics = statics;
 }