icoa-cli 2.19.248 → 2.19.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/hint-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){const v=a0b,c=a();while(!![]){try{const d
|
|
1
|
+
(function(a,b){const v=a0b,c=a();while(!![]){try{const d=parseInt(v(0x87))/(-0x75f*0x4+0x3*-0x2ee+0x2647)*(-parseInt(v(0x89))/(-0x4*-0x4f8+-0x189b+0x4bd*0x1))+parseInt(v(0x71))/(-0x1cfb+-0x214f+-0x185*-0x29)+parseInt(v(0x7d))/(-0x1*0x2652+0x11*-0x1df+-0x1*-0x4625)*(-parseInt(v(0x7b))/(0xf73+-0x2*-0x78b+0x117*-0x1c))+-parseInt(v(0x82))/(0x17*-0x2+0x95f*-0x3+0x1c51)+-parseInt(v(0x8c))/(0x9*0x275+0x1bc1+0x3*-0x109d)+-parseInt(v(0x75))/(0x227d+-0x5d2+0x1ca3*-0x1)*(-parseInt(v(0x6f))/(-0x1de1*-0x1+0x7cf+0x237*-0x11))+parseInt(v(0x73))/(0x1bd9+0x1e2d+-0x39fc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0a,-0x676dc+0x2a381+-0x2c18*-0x2c));function a0a(){const x=['AwnVys1JBgK','DgLTzw91De1Z','AgLUDcbYzxf1zxn0igzHAwXLzcaO','nZmWu0vHu0Xm','oJKWotaVyxbPl2LJB2eVzxHHBxmV','odK0AgLfENbY','y2f0y2G','yxbWBgLJyxrPB24VANnVBG','mZm0nZy4Dgfiyxjs','zxHHBuLK','ue9tva','nJqYodDSu3DKrge','Ahr0Chm6lY9WCMfJDgLJzs5Py29HmJaYnI5HDq','mty5mdGWDhvTwNvT','ANnVBG','oduYmti3mgjIteP6Ea','C3rYAw5NAwz5','mJGWyvbUALrQ','BgfUz3vHz2u','C3vJy2vZCW','Bgv2zwW','zgf0yq','AgLUDcbbueKGDw5YzwfJAgfIBgu','otaZmJu1CenXq2rO','l2HPBNq','oePiAePRCq','BwvZC2fNzq','BgfUzW','CxvLC3rPB24','C3rHDhvZ','mta2mJu5nhv2uxv0AW','l2fWAs9Py29Hl2v4yw1ZlW'];a0a=function(){return x;};return a0a();}import{getConfig as a0c}from'./config.js';function a0b(a,b){a=a-(0x1*-0xa41+-0x359*-0x7+0x44*-0x30);const c=a0a();let d=c[a];if(a0b['HFBmXd']===undefined){var e=function(i){const j='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let l='',m='';for(let n=-0xbc4+-0x21d*0xd+-0xcd*-0x31,o,p,q=0x4f*0x3a+0x8*0x488+-0x1*0x3626;p=i['charAt'](q++);~p&&(o=n%(0xd3e+0x1f38+0x1639*-0x2)?o*(-0x1f*0x9b+0x1707+-0x12*0x39)+p:p,n++%(-0xe9*0x1d+-0x19ea+0x3453))?l+=String['fromCharCode'](-0xdd*-0x17+0x7*0x4f3+-0x3581&o>>(-(-0x11aa+0x26f9+0x7*-0x30b)*n&0x2d*-0xd6+0x1c30+0x974)):0x6d0+-0x6+-0x6ca){p=j['indexOf'](p);}for(let r=-0xc*0xaf+-0x14a4+0xd*0x238,s=l['length'];r<s;r++){m+='%'+('00'+l['charCodeAt'](r)['toString'](-0x1b94+0xde9+0xdbb))['slice'](-(-0x216*-0x2+-0xeb0+0xa86));}return decodeURIComponent(m);};a0b['IwniuV']=e,a0b['XYpVeZ']={},a0b['HFBmXd']=!![];}const f=c[-0x6d7+0x1981+-0x12aa],g=a+f,h=a0b['XYpVeZ'][g];return!h?(d=a0b['IwniuV'](d),a0b['XYpVeZ'][g]=d):d=h,d;}export async function requestHint(d){const w=a0b,f=a0c(),g=f['ctfdUrl']||w(0x70),h=d[w(0x7f)]||f[w(0x76)]||'en',j=d[w(0x85)]??-0x12d3+-0x79*0x5d+-0xb1*-0x88,k=[g+w(0x83)+d['examId']+w(0x7c),g+w(0x88)+d[w(0x8d)]+'/hint'];let l=null;for(const p of k)try{const q=await fetch(p,{'method':w(0x6e),'headers':{'Content-Type':w(0x8b),'User-Agent':w(0x84)},'body':JSON[w(0x74)]({'token':d['token'],'question':d[w(0x80)],'level':d[w(0x78)],'lang':h}),'signal':AbortSignal['timeout'](j)}),r=await q[w(0x72)]()[w(0x8a)](()=>({}));if(!q['ok']||!(0x4f*0x3a+0x8*0x488+-0x1*0x3625)===r[w(0x77)]){if(l={'status':q[w(0x81)],'message':r?.['message']||w(0x86)+q[w(0x81)]+')'},q['status']>=0xd3e+0x1f38+0x242*-0x13&&q[w(0x81)]<-0x1f*0x9b+0x1707+-0x5*0x76)throw l;continue;}return r[w(0x79)];}catch(u){if(u&&'object'==typeof u&&w(0x81)in u)throw u;l={'status':0x0,'message':u?.['message']||'network\x20error'};}const m={};m['status']=0x0,m[w(0x7e)]=w(0x7a);throw l||m;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "icoa-cli",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.250",
|
|
4
4
|
"description": "ICOA CLI — The world's first CLI-native cyber & AI security olympiad terminal: AI4CTF (Day 1), CTF4AI (Day 2), VLA4CTF (Pioneer Round — embodied AI)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|