UNPKG

gepettobrowser

Version:

Puppeteer-real-browser inspired fork of puppeteer

1 lines 4.92 kB
function a17_0x7564(_0x4efe3a,_0xa65757){const _0x5022d4=a17_0x5022();return a17_0x7564=function(_0x756454,_0xedd6b6){_0x756454=_0x756454-0xe8;let _0x523099=_0x5022d4[_0x756454];return _0x523099;},a17_0x7564(_0x4efe3a,_0xa65757);}function a17_0x5022(){const _0x237a87=['form','autoSolveGeetest_v4','3423198OBQHHl','val','find','closest','pass_token','67590NbtzLR','createElement','captcha_id','body','input[name=captcha_id]','geetest_v4','length','apiServer','geetestApiServerSubdomain','runtime','GeeTest\x20V4','css','input[name=captcha_output]','getHelper','431265ELupzf','.captcha-solver','2636064YVcQdV','src','input[name=gen_time]','2350ekXTNu','75pPhpuy','script','appendTo','enabledForGeetest_v4','captchaId','href','7pOwaJp','99972pchNMs','1047640hKodEY','2571832qbzgDN','.twcpt-geetest_v4-helper','input[name=lot_number]','input[name=pass_token]','click'];a17_0x5022=function(){return _0x237a87;};return a17_0x5022();}const a17_0x43a30b=a17_0x7564;(function(_0x103193,_0x4293cd){const _0x2a8fad=a17_0x7564,_0x411eb2=_0x103193();while(!![]){try{const _0x596c6f=-parseInt(_0x2a8fad(0xe9))/0x1+-parseInt(_0x2a8fad(0xf7))/0x2+-parseInt(_0x2a8fad(0xeb))/0x3+parseInt(_0x2a8fad(0xf6))/0x4*(-parseInt(_0x2a8fad(0xef))/0x5)+parseInt(_0x2a8fad(0xff))/0x6+parseInt(_0x2a8fad(0xf5))/0x7*(parseInt(_0x2a8fad(0xf8))/0x8)+parseInt(_0x2a8fad(0x104))/0x9*(parseInt(_0x2a8fad(0xee))/0xa);if(_0x596c6f===_0x4293cd)break;else _0x411eb2['push'](_0x411eb2['shift']());}catch(_0x1535cf){_0x411eb2['push'](_0x411eb2['shift']());}}}(a17_0x5022,0x6d6c2),CaptchaProcessors['register']({'captchaType':a17_0x43a30b(0x109),'canBeProcessed':function(_0x3e34d1,_0xfe09d3){const _0x552ec3=a17_0x43a30b;if(!_0xfe09d3[_0x552ec3(0xf2)])return![];return!![];},'attachButton':function(_0x245c70,_0x5b0d02,_0x192dc){const _0x379469=a17_0x43a30b;let _0x14cbf2=this[_0x379469(0xe8)](_0x245c70);if(_0x14cbf2['find'](_0x379469(0xea))[_0x379469(0x10a)]!==0x0)return;_0x192dc[_0x379469(0x10f)]({'width':_0x14cbf2['outerWidth']()+'px'}),_0x192dc[0x0]['dataset']['disposable']=!![],_0x14cbf2['append'](_0x192dc);},'clickButton':function(_0x54429f,_0x14ba09,_0xf1237){const _0x31bf87=a17_0x43a30b;if(_0x14ba09[_0x31bf87(0xfe)])_0xf1237[_0x31bf87(0xfc)]();},'getName':function(){const _0x1fd39b=a17_0x43a30b;return _0x1fd39b(0x10e);},'getParams':function(_0x11706b,_0x499020){const _0x3e726e=a17_0x43a30b;return{'method':'geetest_v4','url':location[_0x3e726e(0xf4)],'captchaId':_0x11706b[_0x3e726e(0xf3)]};},'getParamsV2':function(_0x338ec9,_0x1f60cc){const _0x57459b=a17_0x43a30b;let _0x1ce551={'type':'GeeTestTaskProxyless','websiteURL':location[_0x57459b(0xf4)],'initParameters':{'captcha_id':_0x338ec9[_0x57459b(0xf3)]},'version':0x4};return _0x338ec9['apiServer']&&(_0x1ce551[_0x57459b(0x10c)]=_0x338ec9[_0x57459b(0x10b)]),_0x1ce551;},'onSolved':function(_0x15be26,_0x5f49f0){const _0x5ca221=a17_0x43a30b;let _0x5a02be=this['getHelper'](_0x15be26);_0x5a02be[_0x5ca221(0x101)](_0x5ca221(0x108))[_0x5ca221(0x100)](_0x5f49f0[_0x5ca221(0x106)]),_0x5a02be[_0x5ca221(0x101)](_0x5ca221(0xfa))['val'](_0x5f49f0['lot_number']),_0x5a02be[_0x5ca221(0x101)](_0x5ca221(0xfb))[_0x5ca221(0x100)](_0x5f49f0[_0x5ca221(0x103)]),_0x5a02be['find'](_0x5ca221(0xed))[_0x5ca221(0x100)](_0x5f49f0['gen_time']),_0x5a02be['find'](_0x5ca221(0x110))[_0x5ca221(0x100)](_0x5f49f0['captcha_output']);let _0x2baf93=document[_0x5ca221(0x105)](_0x5ca221(0xf0));_0x2baf93[_0x5ca221(0xec)]=chrome[_0x5ca221(0x10d)]['getURL']('content/captcha/geetest_v4/validate.js'),document[_0x5ca221(0x107)]['append'](_0x2baf93);},'getForm':function(_0x434062){const _0x207506=a17_0x43a30b;return this['getHelper'](_0x434062)[_0x207506(0x102)](_0x207506(0xfd));},'getCallback':function(_0x4adc24){return null;},'getHelper':function(_0x26118c){const _0x466765=a17_0x43a30b;let _0x523dd3=$('.geetest_captcha'),_0x5530ce=_0x523dd3[_0x466765(0x101)](_0x466765(0xf9));return!_0x5530ce[_0x466765(0x10a)]&&(_0x5530ce=$('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22twcpt-geetest_v4-helper\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22hidden\x22\x20name=\x22captcha_id\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22hidden\x22\x20name=\x22lot_number\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22hidden\x22\x20name=\x22pass_token\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22hidden\x22\x20name=\x22gen_time\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<input\x20type=\x22hidden\x22\x20name=\x22captcha_output\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20')[_0x466765(0xf1)](_0x523dd3)),_0x5530ce;}}));