UNPKG

gepettobrowser

Version:

Puppeteer-real-browser inspired fork of puppeteer

1 lines 4.83 kB
function a5_0x29fd(){const _0x5b38d6=['14SGisWb','body','outerWidth','Amazon\x20WAF','sitekey','val','click','content/captcha/amazon_waf/validate.js','autoSolveAmazonWaf','input[name=amazon_waf_existing_token]','3953632xnnAVK','input[name=amazon_waf_captcha_voucher]','append','6VlLTAV','.captcha-solver','challenge_script','amazon_waf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22twcpt-amazon_waf-helper\x22>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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=\x22amazon_waf_captcha_voucher\x22>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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=\x22amazon_waf_existing_token\x22>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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','AmazonTaskProxyless','8902014jLYxnm','1594672buAVMy','existing_token','1998gXWUsZ','context','6150825OCADYs','length','createElement','captcha_voucher','css','captcha_script','find','89120smpSPi','12165yfkDXO','href','74isXHzO','src','form','script','getHelper','39770HhkxqO','disposable'];a5_0x29fd=function(){return _0x5b38d6;};return a5_0x29fd();}function a5_0x2504(_0x2367bc,_0x2b6a1e){const _0x29fd72=a5_0x29fd();return a5_0x2504=function(_0x250475,_0x10faa4){_0x250475=_0x250475-0x90;let _0x1b2532=_0x29fd72[_0x250475];return _0x1b2532;},a5_0x2504(_0x2367bc,_0x2b6a1e);}const a5_0x5a768f=a5_0x2504;(function(_0x135616,_0x58fad8){const _0x3c3f85=a5_0x2504,_0x5cb99b=_0x135616();while(!![]){try{const _0x409c21=-parseInt(_0x3c3f85(0xb6))/0x1+-parseInt(_0x3c3f85(0x9b))/0x2*(-parseInt(_0x3c3f85(0x99))/0x3)+-parseInt(_0x3c3f85(0x98))/0x4+parseInt(_0x3c3f85(0x91))/0x5*(parseInt(_0x3c3f85(0xaf))/0x6)+parseInt(_0x3c3f85(0xa2))/0x7*(parseInt(_0x3c3f85(0xac))/0x8)+parseInt(_0x3c3f85(0xb8))/0x9*(parseInt(_0x3c3f85(0xa0))/0xa)+-parseInt(_0x3c3f85(0xb5))/0xb;if(_0x409c21===_0x58fad8)break;else _0x5cb99b['push'](_0x5cb99b['shift']());}catch(_0x253288){_0x5cb99b['push'](_0x5cb99b['shift']());}}}(a5_0x29fd,0xc97bc),CaptchaProcessors['register']({'captchaType':a5_0x5a768f(0xb2),'canBeProcessed':function(_0x118d71,_0x4174af){const _0x57e2ce=a5_0x5a768f;if(!_0x4174af['enabledForAmazonWaf'])return![];if(!_0x118d71[_0x57e2ce(0xa6)])return![];return!![];},'attachButton':function(_0x94a5f4,_0x49741e,_0x378170){const _0x50d0e4=a5_0x5a768f;let _0x194679=this['getHelper'](_0x94a5f4);if(_0x194679[_0x50d0e4(0x97)](_0x50d0e4(0xb0))[_0x50d0e4(0x92)]!==0x0)return;_0x378170[_0x50d0e4(0x95)]({'width':_0x194679[_0x50d0e4(0xa4)]()+'px'}),_0x378170[0x0]['dataset'][_0x50d0e4(0xa1)]=!![],_0x194679[_0x50d0e4(0xae)](_0x378170);},'clickButton':function(_0x18917d,_0x135419,_0x5e65a9){const _0x5ed14a=a5_0x5a768f;if(_0x135419[_0x5ed14a(0xaa)])_0x5e65a9[_0x5ed14a(0xa8)]();},'getName':function(_0x16cb6e,_0x33e76a){const _0x37d5b9=a5_0x5a768f;return _0x37d5b9(0xa5);},'getParams':function(_0x4e3906,_0x2da2bd){const _0x552b5d=a5_0x5a768f;return{'method':_0x552b5d(0xb2),'sitekey':_0x4e3906[_0x552b5d(0xa6)],'pageurl':location[_0x552b5d(0x9a)],'context':_0x4e3906[_0x552b5d(0x90)],'challenge_script':_0x4e3906['challenge_script'],'captcha_script':_0x4e3906[_0x552b5d(0x96)],'iv':_0x4e3906['iv']};},'getParamsV2':function(_0x417d11,_0x4e3840){const _0x51a5b4=a5_0x5a768f;return{'type':_0x51a5b4(0xb4),'websiteURL':location['href'],'websiteKey':_0x417d11[_0x51a5b4(0xa6)],'context':_0x417d11[_0x51a5b4(0x90)],'challenge_script':_0x417d11[_0x51a5b4(0xb1)],'captcha_script':_0x417d11[_0x51a5b4(0x96)],'iv':_0x417d11['iv']};},'onSolved':function(_0x545230,_0x4a6744){const _0x3fc58b=a5_0x5a768f;let _0xcfa48f=this[_0x3fc58b(0x9f)](_0x545230);const _0x4da69e=_0xcfa48f[_0x3fc58b(0x97)]('challenge.input');_0x4da69e[_0x3fc58b(0x92)]&&_0x4da69e['val'](_0x4a6744['captcha_voucher']);!_0xcfa48f[_0x3fc58b(0x97)]('.twcpt-amazon_waf-helper')[_0x3fc58b(0x92)]&&$(_0x3fc58b(0xb3))['appendTo'](_0xcfa48f);_0xcfa48f[_0x3fc58b(0x97)](_0x3fc58b(0xad))['val'](_0x4a6744[_0x3fc58b(0x94)]),_0xcfa48f[_0x3fc58b(0x97)](_0x3fc58b(0xab))[_0x3fc58b(0xa7)](_0x4a6744[_0x3fc58b(0xb7)]);let _0x141622=document[_0x3fc58b(0x93)](_0x3fc58b(0x9e));_0x141622[_0x3fc58b(0x9c)]=chrome['runtime']['getURL'](_0x3fc58b(0xa9)),document[_0x3fc58b(0xa3)][_0x3fc58b(0xae)](_0x141622);},'getForm':function(_0xcdafaa){const _0x14b1fe=a5_0x5a768f;return this[_0x14b1fe(0x9f)](_0xcdafaa)['closest'](_0x14b1fe(0x9d));},'getCallback':function(_0x4a06c6){return null;},'getHelper':function(_0x4d7684){let _0x1c348c=$('#'+_0x4d7684['inputId']);return _0x1c348c['parent']();}}));