@sparrowai/sparrow-mcp 1.0.9 → 1.0.10
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/.tsbuildinfo +1 -1
- package/dist/config/appConfig.js +1 -1
- package/dist/server.js +1 -1
- package/dist/services/analysis.service.js +1 -1
- package/dist/services/llm.service.js +1 -1
- package/dist/services/s3.service.js +1 -1
- package/dist/services/sparrow.service.js +1 -1
- package/dist/types/types.d.ts +12 -0
- package/dist/types/types.js +1 -1
- package/dist/utils/crypto.util.js +1 -1
- package/dist/utils/diff.util.js +1 -1
- package/dist/utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/config/appConfig.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x314638=a0_0x941c;(function(_0x555d81,_0xcb2d41){const _0x19e9d4=a0_0x941c,_0x29b112=_0x555d81();while(!![]){try{const _0x52a600=parseInt(_0x19e9d4(0x196))/0x1+-parseInt(_0x19e9d4(0x1b1))/0x2+parseInt(_0x19e9d4(0x1a1))/0x3*(-parseInt(_0x19e9d4(0x184))/0x4)+parseInt(_0x19e9d4(0x1b4))/0x5+-parseInt(_0x19e9d4(0x1a9))/0x6+parseInt(_0x19e9d4(0x1b5))/0x7*(-parseInt(_0x19e9d4(0x18e))/0x8)+parseInt(_0x19e9d4(0x19f))/0x9;if(_0x52a600===_0xcb2d41)break;else _0x29b112['push'](_0x29b112['shift']());}catch(_0x288317){_0x29b112['push'](_0x29b112['shift']());}}}(a0_0x4e40,0x87e62));const a0_0x5a0fe9=(function(){let _0x1f0f32=!![];return function(_0xeef0d0,_0x784fc8){const _0x263f44=_0x1f0f32?function(){if(_0x784fc8){const _0x1e4012=_0x784fc8['apply'](_0xeef0d0,arguments);return _0x784fc8=null,_0x1e4012;}}:function(){};return _0x1f0f32=![],_0x263f44;};}()),a0_0x52085a=a0_0x5a0fe9(this,function(){const _0x2afe27=a0_0x941c;return a0_0x52085a['toString']()[_0x2afe27(0x182)](_0x2afe27(0x1a6)+'+$')['toString']()[_0x2afe27(0x1bc)+'r'](a0_0x52085a)['search'](_0x2afe27(0x1a6)+'+$');});a0_0x52085a();import{config}from'dotenv';import a0_0x3d5f31 from'path';function a0_0x4e40(){const _0x29cc62=['(((.+)+)+)','NOTION_API','accessKeyI','6653232zBdYrQ','다.\x20암호화된\x20키를','STORAGE_SE','join','필수\x20환경\x20변수가\x20','E_URL','CESS_ID','error','2209864PNjsVm','endpoint','\x20사용합니다.','324135bXbbSi','924931kAwCDF','model','filter','secretAcce','DPOINT','\x20설정되지\x20않았습니','NTAINER_NA','constructo','demand.spa','CRET_KEY','bucket','.env','지\x20키\x20환경\x20변수가','search','STORAGE_AC','2020268ZZTnsT','설정되지\x20않았습니다','I_KEY','warn','STORAGE_RE','\x20(로드\x20경로:\x20','developmen','ollama','OLLAMA_BAS','STORAGE_CO','32DoOiev','apiKey','notion','STORAGE_EN','I_URL','existsSync','cwd','NODE_ENV','1004453uIgmoS','GION','http://loc','path','SPARROW_AP','resolve','../../.env','rrowcloud.','_KEY','24612885DGNogY','OLLAMA_MOD','3zZoigM','env','NOTION_DAT','find','개발\x20환경:\x20스토리'];a0_0x4e40=function(){return _0x29cc62;};return a0_0x4e40();}import a0_0xc3a912 from'fs';import{fileURLToPath}from'url';import{logger}from'../utils/logger.js';const moduleDir=a0_0x3d5f31['dirname'](fileURLToPath(import.meta.url)),repoRootEnvPath=a0_0x3d5f31['resolve'](moduleDir,a0_0x314638(0x19c)),cwdEnvPath=a0_0x3d5f31[a0_0x314638(0x19b)](process[a0_0x314638(0x194)](),a0_0x314638(0x1c0)),explicitEnvPath=process[a0_0x314638(0x1a2)]['ENV_PATH']?a0_0x3d5f31[a0_0x314638(0x19b)](process[a0_0x314638(0x194)](),process['env']['ENV_PATH']):undefined,candidateEnvPaths=[explicitEnvPath,cwdEnvPath,repoRootEnvPath]['filter'](Boolean),envPath=candidateEnvPaths[a0_0x314638(0x1a4)](_0xd1ebb6=>{const _0x3fcd0b=a0_0x314638;try{return a0_0xc3a912[_0x3fcd0b(0x193)](_0xd1ebb6);}catch{return![];}})||repoRootEnvPath,a0_0x95c92b={};function a0_0x941c(_0x4be26d,_0xd06525){_0x4be26d=_0x4be26d-0x181;const _0x3f444d=a0_0x4e40();let _0x52085a=_0x3f444d[_0x4be26d];return _0x52085a;}a0_0x95c92b[a0_0x314638(0x199)]=envPath,config(a0_0x95c92b);const a0_0x3c737a={};a0_0x3c737a['baseUrl']=process['env'][a0_0x314638(0x18c)+a0_0x314638(0x1ae)]||a0_0x314638(0x198)+'alhost:114'+'34',a0_0x3c737a[a0_0x314638(0x1b6)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x1a0)+'EL']||'gemma2:27b';const a0_0x848832={};a0_0x848832[a0_0x314638(0x1bf)]=process['env'][a0_0x314638(0x18d)+a0_0x314638(0x1bb)+'ME']||'',a0_0x848832['region']=process[a0_0x314638(0x1a2)][a0_0x314638(0x188)+a0_0x314638(0x197)]||'us-east-1',a0_0x848832[a0_0x314638(0x1a8)+'d']=process[a0_0x314638(0x1a2)][a0_0x314638(0x183)+a0_0x314638(0x1af)]||'',a0_0x848832[a0_0x314638(0x1b8)+'ssKey']=process[a0_0x314638(0x1a2)]['STORAGE_SE'+a0_0x314638(0x1be)]||'',a0_0x848832[a0_0x314638(0x1b2)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x191)+a0_0x314638(0x1b9)];const a0_0xa0f63b={};a0_0xa0f63b['baseUrl']=process[a0_0x314638(0x1a2)][a0_0x314638(0x19a)+a0_0x314638(0x192)]||'https://on'+a0_0x314638(0x1bd)+a0_0x314638(0x19d)+'ai',a0_0xa0f63b[a0_0x314638(0x18f)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x19a)+a0_0x314638(0x186)]||'';const a0_0x4f8ed8={};a0_0x4f8ed8[a0_0x314638(0x18b)]=a0_0x3c737a,a0_0x4f8ed8['s3']=a0_0x848832,a0_0x4f8ed8['sparrow']=a0_0xa0f63b,a0_0x4f8ed8[a0_0x314638(0x190)]=process[a0_0x314638(0x1a2)][a0_0x314638(0x1a7)+a0_0x314638(0x19e)]?{'apiKey':process[a0_0x314638(0x1a2)][a0_0x314638(0x1a7)+'_KEY'],'databaseId':process[a0_0x314638(0x1a2)][a0_0x314638(0x1a3)+'ABASE_ID']||''}:undefined;export const appConfig=a0_0x4f8ed8;const requiredEnvVars=[a0_0x314638(0x19a)+a0_0x314638(0x186)];process[a0_0x314638(0x1a2)][a0_0x314638(0x195)]===a0_0x314638(0x18a)+'t'&&((!process[a0_0x314638(0x1a2)]['STORAGE_AC'+a0_0x314638(0x1af)]||!process[a0_0x314638(0x1a2)][a0_0x314638(0x1ab)+a0_0x314638(0x1be)])&&logger[a0_0x314638(0x187)](a0_0x314638(0x1a5)+a0_0x314638(0x181)+a0_0x314638(0x1ba)+a0_0x314638(0x1aa)+a0_0x314638(0x1b3)));for(const envVar of requiredEnvVars){if(!process[a0_0x314638(0x1a2)][envVar]){const triedPaths=[envPath][a0_0x314638(0x1b7)](Boolean)[a0_0x314638(0x1ac)](',\x20');logger[a0_0x314638(0x1b0)](a0_0x314638(0x1ad)+a0_0x314638(0x185)+':\x20'+envVar+'\x20(로드\x20경로:\x20'+triedPaths+')');throw new Error(a0_0x314638(0x1ad)+a0_0x314638(0x185)+':\x20'+envVar+a0_0x314638(0x189)+triedPaths+')');}}
|
package/dist/server.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
|
-
const a1_0x45e80b=a1_0x3016;(function(_0x4e1c05,_0x49fac3){const _0x373ac4=a1_0x3016,_0x2aa55a=_0x4e1c05();while(!![]){try{const _0x38fc2e=-parseInt(_0x373ac4(0x1d8))/0x1+parseInt(_0x373ac4(0xce))/0x2*(parseInt(_0x373ac4(0x98))/0x3)+-parseInt(_0x373ac4(0x188))/0x4+-parseInt(_0x373ac4(0xd8))/0x5+parseInt(_0x373ac4(0x1ba))/0x6*(parseInt(_0x373ac4(0xb8))/0x7)+-parseInt(_0x373ac4(0x1e7))/0x8*(parseInt(_0x373ac4(0x208))/0x9)+parseInt(_0x373ac4(0x115))/0xa*(parseInt(_0x373ac4(0xe8))/0xb);if(_0x38fc2e===_0x49fac3)break;else _0x2aa55a['push'](_0x2aa55a['shift']());}catch(_0x4ab98a){_0x2aa55a['push'](_0x2aa55a['shift']());}}}(a1_0x1d3a,0x22429));const a1_0x23af0a=(function(){let _0x221c70=!![];return function(_0x309ec2,_0x1ed9d2){const _0x48717b=_0x221c70?function(){const _0x3ebbd7=a1_0x3016;if(_0x1ed9d2){const _0x5edde2=_0x1ed9d2[_0x3ebbd7(0xc5)](_0x309ec2,arguments);return _0x1ed9d2=null,_0x5edde2;}}:function(){};return _0x221c70=![],_0x48717b;};}()),a1_0x46847c=a1_0x23af0a(this,function(){const _0x458ad9=a1_0x3016;return a1_0x46847c['toString']()[_0x458ad9(0x120)](_0x458ad9(0xfb)+'+$')[_0x458ad9(0x1a9)]()[_0x458ad9(0x1c9)+'r'](a1_0x46847c)[_0x458ad9(0x120)]('(((.+)+)+)'+'+$');});a1_0x46847c();import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{z}from'zod';import{AnalysisService}from'./services/analysis.service.js';import{logger}from'./utils/logger.js';import a1_0xf55353 from'path';function a1_0x1d3a(){const _0x2ae6d3=['\x20folder\x20na','join','alysis\x20fai','D\x20and\x20upda','completed.','##\x20Analysi','e\x20and\x20requ','alysis\x20inc','getAnalysi','current\x20wo','vided\x20duri','\x20of\x20','progressTo','analyzeMul','[COMPLETE]','generate\x20s','ecure_code','ovided','File','lysis\x20was\x20','status','ocations\x20-','orking\x20dir','ror','analysis\x20I','vered\x20Vuln','will\x20retry','ath\x20not\x20pr','\x20if\x20not\x20sp','substring','MKowB','rovided','length','urity\x20anal','ation\x20Resu','curity\x20ana','tion','bsCCR','e\x20(absolut','progress','tus:\x20','Folder\x20pat','Analysis\x20S','sis\x20Briefi','Analysis\x20p','Pre-proces','\x20to\x20be\x20cre','seconds\x20(d','secure-cod','```java\x0a','ompleted\x20s','File\x20paths','CESS,\x20ANAL','\x0aProgress:','QdbXy','content','f\x20an\x20analy','tinuing\x20st','ZIP\x20file\x20s','COMPLETE','older\x20into','version','urity\x20Anal','RbZsL','name','ecurity\x20an','ing\x20progre','Y,\x20PRE_PRO','sStatus','INIT','ed:\x20','_meta','\x20character','ple\x20file\x20p','FAIL','\x0a```\x0a\x20\x20\x20\x20\x20','lete\x20prope','Analysis\x20I','der','sis\x20status','o\x20analyze.','629408UdIFXc','ations:\x20','cureCodeFr','IP\x20file\x20to','the\x20entire','ZIP\x20file\x20n','ief','\x0aAnalysis\x20','track_anal','analysisBr','sis.','unt','File\x20secur','\x20the\x20file\x20','r\x20analysis','alysis','mRiBj','rted:\x20','\x0aStatus:\x20','Analysis\x20f','analyzeFol','ovided.','Compress\x20a','nalysis\x20ha','Warning\x20wh','ame\x20to\x20be\x20','g\x20log\x20dire','ded','total','secureCode','Security\x20a','wing\x20','lts\x0a\x0a##\x20Se','toString','tatus\x20upda','notificati','ly\x20check\x20a','l\x20in\x20milli','ile\x20analys','D:\x20','FromPaths','sendNotifi','describe','sted:\x20','\x20security\x20','(absolute\x20','rt\x20progres','\x20from\x20a\x20co','lysis\x20brie','toUpperCas','18NICxZy','oken\x20not\x20p','analysis','quested:\x20','is\x20results','Generate\x20s','analyze_fi','is.','recursive','\x20not\x20provi','at\x20least\x20o','Path\x20to\x20th','info','ver\x20starte','MCP\x20secure','constructo','sis\x20and\x20re','is_status','\x0a\x0a##\x20Disco','\x20current\x20w','le\x20paths\x20t','logs','trim','type','tent.','\x20a\x20ZIP\x20fil','is\x20Results','fileName','into\x20a\x20ZIP','e\x20ZIP\x20file','227483xBbwxQ','vulnerabil','Folder\x20Sec','on\x20request','n\x20failed\x20(','working\x20di','ate\x20secure','\x20based\x20on\x20','\x20Security\x20','warn','ng\x20the\x20ANA','Generate\x20S','he\x20client\x20','Post-proce','les_securi','392gFwyXE','nalysis\x20pr','Brief','luding\x20vul','\x0a```\x0a\x0a##\x20S','e-generato','uccessfull','BeNIW','isError','N/A','...','READY','STOP','es\x20origina','generate_s','ess','to\x20analyze','\x20version','tart\x20analy','ity\x20analys','l\x20filename','uested:\x20','zFkcc','fing.','error','tipleFiles','unknown\x20to','ZIP\x20file\x20p','o\x20analyze\x20','\x0a\x0a##\x20Code\x20','toLowerCas','\x0aFolder:\x20','sResults','44559bgtcLi','ysis_progr','\x20combined:','s\x20ID:\x20','Initializa','ss\x20notific','h\x20not\x20prov','n\x20progress','\x0aNumber\x20of','\x20file\x20path','s\x20Overview','in\x20progres','existsSync','lative\x20to\x20','Analysis','\x20in\x20progre','turn\x20the\x20r','folderPath','INIT,\x20READ','bPszT','e\x20generati','token','ecified)','k\x20failed:','efault:\x2030','rectory)','[ANALYSIS]','esults.\x20Re','eSecurity','List\x20of\x20fi','valid,\x20con','\x0a#\x20Secure\x20','ested:\x20','nd\x20request','tages\x20are\x20','Periodical','\x20Analysis\x20','completed','\x20status:\x20','\x0a\x0a...\x20(Sho','tatus\x20chec','result','ent.','s\x20started.','onal,\x20uses','lysis\x20fail','descriptio','24201GEWBEQ','\x20request\x20s','Progress\x20n','ration\x20ser','ck\x20interva','relative\x20t','\x20Briefing\x0a','acking\x20fai','ons/progre','Analysis\x20c','king\x20analy','omAnalysis','ated\x20(opti','get_analys','so\x20support','esults\x20req','esults.','Check\x20the\x20','ity\x20Analys','\x0aZIP\x20File:','Upload\x20a\x20Z','includes','ompleted.\x0a','ysis\x20reque','ted:\x20','PRE_PROCES','stored\x20(op','Content','y\x20Analysis','order','led:','message','299138mJKLaJ','\x0aFinal\x20Sta','combined.l','providing\x20','lid,\x20stopp','structured','s\x20without\x20','led:\x20','\x0a#\x20Securit','paths\x20or\x20r','analysis\x20r','\x20failed.','ty\x20analysi','apply','iyZrW','quires\x20ana','Read\x20multi','ZIP\x20File\x20S','diff','1.0.0','aths,\x20comp','path\x20or\x20re','64eoVsby','ysis','array','Changes\x20(D','quest\x20fail','ecure\x20Code','me\x20if\x20not\x20','zipFilePat','equested:\x20','analyze_fo','1237970rLKuoR','[STOP]\x20Ana','Multi-file','tional,\x20us','ed\x20results','D\x20from\x20the','ysis\x20statu','get\x20analys','progress\x20o','ogress\x20by\x20','Complete','lysis\x20ID\x20a','ities','resolve','s\x20single\x20f','nerabiliti','11ZoUWeP','Progress\x20T','rogress\x20tr','registerTo',']\x20Analysis','checkerKey','ile\x20checki','Get\x20detail','Name\x20of\x20th','ided','\x20The\x20fileP','ile\x20conten','is\x20status:','Content\x20of','Analysis\x20s','Error\x20chec','aths\x20array','s\x20updated:','00)','(((.+)+)+)','rovided.\x20T','o\x20current\x20','Original\x20f','Final\x20anal','map','acking\x20sta','Progress\x20t','fication.\x20','erabilitie','ng\x0a','\x20file\x20cont','p_security','\x0a-\x20Status:','Get\x20Analys','ff\x0a','n\x20entire\x20f','\x20to\x20analyz','Unknown\x20er','optional','\x0a-\x20Analysi','Secure\x20cod','POST_PROCE','BxDlj','LYSIS\x20stag','ecure\x20code','6290110lAxbrM','ssing...','oken\x20is\x20no','ssing','string','ed\x20to\x20comp','cure\x20Code\x0a','Failed\x20to\x20','ecurity\x20An','ANALYSIS','specified)','search','otificatio',',\x20error:\x20','YSIS,\x20POST','Code\x20Gener','):\x20','FAILED','ailed\x20with','keys','expired\x20to','s\x20tracking','ken','text','analysisId','Folder\x20sec','nalysis\x20re','ysis\x20faile','ID:\x20','te\x20via\x20Pro','is\x20failed:','e\x20path\x20or\x20','Waiting\x20fo','\x0a\x20\x20\x20\x20\x20\x20'];a1_0x1d3a=function(){return _0x2ae6d3;};return a1_0x1d3a();}import a1_0x5bb561 from'fs';import{fileURLToPath}from'url';const a1_0x3af1de={};a1_0x3af1de[a1_0x45e80b(0x177)]=a1_0x45e80b(0x167)+a1_0x45e80b(0x1ec)+'r',a1_0x3af1de[a1_0x45e80b(0x174)]=a1_0x45e80b(0xcb);const server=new McpServer(a1_0x3af1de),analysisService=new AnalysisService();server[a1_0x45e80b(0xeb)+'ol'](a1_0x45e80b(0x1c0)+'le_securit'+'y',{'title':'File\x20Secur'+a1_0x45e80b(0xaa)+'is','description':'Request\x20se'+a1_0x45e80b(0x15a)+'lysis\x20for\x20'+'a\x20file\x20by\x20'+a1_0x45e80b(0xbb)+a1_0x45e80b(0x18c)+a1_0x45e80b(0x106)+a1_0x45e80b(0x93),'inputSchema':{'fileContent':z[a1_0x45e80b(0x119)]()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0xf5)+a1_0x45e80b(0x195)+a1_0x45e80b(0x1f7)),'fileName':z[a1_0x45e80b(0x119)]()['describe']('File\x20name')}},async({fileContent:_0x1d53b4,fileName:_0x2eb340})=>{const _0x5f565f=a1_0x45e80b;try{logger[_0x5f565f(0x1c6)](_0x5f565f(0x1a6)+_0x5f565f(0x12f)+_0x5f565f(0x1bd)+_0x2eb340);const _0x238be3={};_0x238be3['fileConten'+'t']=_0x1d53b4,_0x238be3[_0x5f565f(0x1d5)]=_0x2eb340;const _0x11b6f8=await analysisService['analyzeFil'+_0x5f565f(0x85)](_0x238be3),_0x29c416={};_0x29c416[_0x5f565f(0x1d1)]='text',_0x29c416[_0x5f565f(0x12c)]=_0x5f565f(0x1a6)+_0x5f565f(0x19f)+_0x5f565f(0x94)+_0x5f565f(0x18f)+'ID:\x20'+_0x11b6f8[_0x5f565f(0x12d)];const _0xcf99c3={};_0xcf99c3[_0x5f565f(0x12d)]=_0x11b6f8[_0x5f565f(0x12d)],_0xcf99c3[_0x5f565f(0x14b)]=_0x11b6f8[_0x5f565f(0x14b)];const _0x59852c={};return _0x59852c['content']=[_0x29c416],_0x59852c[_0x5f565f(0xbd)+_0x5f565f(0xb3)]=_0xcf99c3,_0x59852c;}catch(_0x285b9b){logger['error'](_0x5f565f(0x194)+_0x5f565f(0x1fa)+_0x5f565f(0x133),_0x285b9b);const _0x212137={};_0x212137['type']=_0x5f565f(0x12c),_0x212137[_0x5f565f(0x12c)]=_0x5f565f(0x1a6)+'nalysis\x20re'+_0x5f565f(0xd2)+'ed:\x20'+(_0x285b9b instanceof Error?_0x285b9b['message']:_0x5f565f(0x10d)+_0x5f565f(0x14e));const _0x4c90cc={};_0x4c90cc[_0x5f565f(0x1ff)]=_0x285b9b instanceof Error?_0x285b9b[_0x5f565f(0xb7)]:'Unknown\x20er'+_0x5f565f(0x14e);const _0x56b729={};return _0x56b729['content']=[_0x212137],_0x56b729['structured'+_0x5f565f(0xb3)]=_0x4c90cc,_0x56b729;}}),server[a1_0x45e80b(0xeb)+'ol'](a1_0x45e80b(0xa5)+a1_0x45e80b(0x1cb),{'title':a1_0x45e80b(0x109)+'is\x20Status','description':a1_0x45e80b(0xa9)+a1_0x45e80b(0xe0)+a1_0x45e80b(0x16f)+a1_0x45e80b(0x1ca)+a1_0x45e80b(0x79)+a1_0x45e80b(0xa8),'inputSchema':{'analysisId':z['string']()[a1_0x45e80b(0x1b2)]('Analysis\x20I'+'D')}},async({analysisId:_0x3df576})=>{const _0x1c2027=a1_0x45e80b,_0x306754={};_0x306754['MKowB']=_0x1c2027(0x12c);const _0x4e2f8c=_0x306754;try{logger[_0x1c2027(0x1c6)](_0x1c2027(0xf6)+'tatus\x20requ'+_0x1c2027(0x89)+_0x3df576);const _0x2b47ad=await analysisService['getAnalysi'+_0x1c2027(0x17b)](_0x3df576),_0x872834=_0x2b47ad[_0x1c2027(0x14b)]==='COMPLETE'&&_0x2b47ad[_0x1c2027(0x92)]?_0x2b47ad[_0x1c2027(0x92)]:_0x2b47ad[_0x1c2027(0x14b)],_0x1b8b1f={};_0x1b8b1f[_0x1c2027(0x1d1)]=_0x1c2027(0x12c),_0x1b8b1f[_0x1c2027(0x12c)]=_0x1c2027(0x161)+'tatus:\x20'+_0x872834+(_0x1c2027(0x16c)+'\x20')+(_0x2b47ad[_0x1c2027(0x15e)]||0x0)+('%\x0aMessage:'+'\x20')+(_0x2b47ad[_0x1c2027(0xb7)]||_0x1c2027(0x1f0));const _0x3045ae={};_0x3045ae[_0x1c2027(0x12d)]=_0x3df576,_0x3045ae['status']=_0x872834,_0x3045ae[_0x1c2027(0x92)]=_0x2b47ad[_0x1c2027(0x92)],_0x3045ae[_0x1c2027(0x15e)]=_0x2b47ad['progress'],_0x3045ae[_0x1c2027(0xb7)]=_0x2b47ad['message'];const _0x1f6ca4={};return _0x1f6ca4['content']=[_0x1b8b1f],_0x1f6ca4[_0x1c2027(0xbd)+_0x1c2027(0xb3)]=_0x3045ae,_0x1f6ca4;}catch(_0x2543bf){logger[_0x1c2027(0x1ff)](_0x1c2027(0xf6)+_0x1c2027(0x91)+_0x1c2027(0x80),_0x2543bf);const _0x134ba2={};_0x134ba2[_0x1c2027(0x1d1)]=_0x4e2f8c[_0x1c2027(0x155)],_0x134ba2['text']=_0x1c2027(0x11c)+_0x1c2027(0xdf)+_0x1c2027(0xf4)+'\x20'+(_0x2543bf instanceof Error?_0x2543bf[_0x1c2027(0xb7)]:_0x1c2027(0x10d)+_0x1c2027(0x14e));const _0x5a6e90={};_0x5a6e90[_0x1c2027(0x1ff)]=_0x2543bf instanceof Error?_0x2543bf['message']:'Unknown\x20er'+_0x1c2027(0x14e);const _0x4d7bc9={};return _0x4d7bc9[_0x1c2027(0x16e)]=[_0x134ba2],_0x4d7bc9[_0x1c2027(0xbd)+'Content']=_0x5a6e90,_0x4d7bc9;}}),server[a1_0x45e80b(0xeb)+'ol']('get_analys'+'is_results',{'title':'Get\x20Analys'+a1_0x45e80b(0x1d4),'description':a1_0x45e80b(0xef)+a1_0x45e80b(0xdc)+a1_0x45e80b(0x1b7)+'mpleted\x20an'+a1_0x45e80b(0x13e)+a1_0x45e80b(0x1ea)+a1_0x45e80b(0xe7)+'es\x20and\x20ana'+a1_0x45e80b(0x1b8)+a1_0x45e80b(0x1fe),'inputSchema':{'analysisId':z[a1_0x45e80b(0x119)]()['describe']('Analysis\x20I'+'D')}},async({analysisId:_0x234888})=>{const _0x118bd6=a1_0x45e80b,_0x3b4cb4={'Omrto':function(_0x232a69,_0x53a0b1,_0x10b47b){return _0x232a69(_0x53a0b1,_0x10b47b);},'BeNIW':_0x118bd6(0x12c)};try{logger['info']('Analysis\x20r'+_0x118bd6(0xa7)+_0x118bd6(0x1fc)+_0x234888);const _0x172043=await analysisService[_0x118bd6(0x13f)+_0x118bd6(0x207)](_0x234888),_0x1048e0=0x7a120,_0x344916=(_0x263f62,_0x12395f)=>{const _0x257bb5=_0x118bd6;if(_0x263f62[_0x257bb5(0x157)]<=_0x12395f)return _0x263f62;return _0x263f62['substring'](0x0,_0x12395f)+('\x0a\x0a...\x20(Sho'+'wing\x20'+_0x12395f+_0x257bb5(0x142)+_0x263f62['length']+(_0x257bb5(0x17f)+'s)'));},_0x332111=_0x172043[_0x118bd6(0x1d9)+'ities'][_0x118bd6(0x100)]((_0x492d6a,_0x38463c)=>_0x38463c+0x1+'.\x20['+_0x492d6a['severity']+']\x20'+_0x492d6a[_0x118bd6(0xed)]+':\x20'+_0x492d6a[_0x118bd6(0x97)+'n'])[_0x118bd6(0x138)]('\x0a'),_0x143bd8=(_0x118bd6(0xc0)+_0x118bd6(0xb4)+'\x20Results\x0a\x0a'+_0x118bd6(0x13c)+_0x118bd6(0x73)+_0x118bd6(0x10f)+_0x118bd6(0x20b)+_0x172043['analysisId']+(_0x118bd6(0x108)+'\x20')+_0x172043['status']+('\x0a-\x20Vulnera'+'bilities\x20F'+'ound:\x20')+_0x172043[_0x118bd6(0x1d9)+_0x118bd6(0xe4)][_0x118bd6(0x157)]+('\x0a\x0a##\x20Analy'+_0x118bd6(0x162)+_0x118bd6(0x105))+_0x344916(_0x172043[_0x118bd6(0x191)+_0x118bd6(0x18e)]||'',_0x1048e0)+(_0x118bd6(0x1cc)+_0x118bd6(0x150)+_0x118bd6(0x104)+'s\x0a')+_0x3b4cb4['Omrto'](_0x344916,_0x332111,_0x1048e0)+_0x118bd6(0x136))[_0x118bd6(0x1d0)](),_0x1aa46d={'analysisId':_0x172043[_0x118bd6(0x12d)],'status':_0x172043[_0x118bd6(0x14b)],'vulnerabilities':_0x172043[_0x118bd6(0x1d9)+_0x118bd6(0xe4)],'analysisBrief':_0x172043[_0x118bd6(0x191)+_0x118bd6(0x18e)]?_0x344916(_0x172043[_0x118bd6(0x191)+_0x118bd6(0x18e)],_0x1048e0):''},_0xcc5f7b={};_0xcc5f7b[_0x118bd6(0x1d1)]=_0x3b4cb4[_0x118bd6(0x1ee)],_0xcc5f7b[_0x118bd6(0x12c)]=_0x143bd8;const _0x329e75={};return _0x329e75[_0x118bd6(0x16e)]=[_0xcc5f7b],_0x329e75[_0x118bd6(0xbd)+_0x118bd6(0xb3)]=_0x1aa46d,_0x329e75;}catch(_0x163c08){logger['error']('Failed\x20to\x20'+_0x118bd6(0xdf)+'is\x20results'+':',_0x163c08);const _0x22760a=_0x163c08 instanceof Error?_0x163c08[_0x118bd6(0xb7)]:_0x118bd6(0x10d)+_0x118bd6(0x14e),_0x2a5a32={};_0x2a5a32['type']=_0x118bd6(0x12c),_0x2a5a32[_0x118bd6(0x12c)]=_0x118bd6(0x11c)+_0x118bd6(0xdf)+_0x118bd6(0x1be)+':\x20'+_0x22760a;const _0x2a1073={};_0x2a1073['error']=_0x22760a;const _0x5201f1={};return _0x5201f1[_0x118bd6(0x16e)]=[_0x2a5a32],_0x5201f1[_0x118bd6(0xbd)+_0x118bd6(0xb3)]=_0x2a1073,_0x5201f1[_0x118bd6(0x1ef)]=!![],_0x5201f1;}}),server[a1_0x45e80b(0xeb)+'ol'](a1_0x45e80b(0x1f5)+a1_0x45e80b(0x147),{'title':a1_0x45e80b(0x1e3)+a1_0x45e80b(0xd3),'description':a1_0x45e80b(0x1bf)+a1_0x45e80b(0x114)+a1_0x45e80b(0x1df)+a1_0x45e80b(0xc2)+a1_0x45e80b(0x84)+a1_0x45e80b(0xc7)+a1_0x45e80b(0xe3)+'nd\x20origina'+'l\x20file\x20con'+a1_0x45e80b(0x1d2),'inputSchema':{'analysisId':z['string']()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0x184)+a1_0x45e80b(0xdd)+a1_0x45e80b(0x1b4)+a1_0x45e80b(0x1bc)),'fileContent':z[a1_0x45e80b(0x119)]()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0xfe)+a1_0x45e80b(0xf3)+'t\x20to\x20gener'+a1_0x45e80b(0x1de)+a1_0x45e80b(0x1f8))}},async({analysisId:_0x3eb08b,fileContent:_0x5baa11})=>{const _0x296d6a=a1_0x45e80b,_0x3190dd={};_0x3190dd[_0x296d6a(0x112)]=_0x296d6a(0x12c);const _0x8020eb=_0x3190dd;try{logger['info'](_0x296d6a(0x110)+_0x296d6a(0x7d)+_0x296d6a(0x1db)+'ed:\x20'+_0x3eb08b);const _0x3a0cdb=await analysisService['generateSe'+_0x296d6a(0x18a)+_0x296d6a(0xa3)](_0x3eb08b,_0x5baa11),_0x5f1e15=0x7a120,_0x3d46e8=(_0x1fc723,_0x22ab8a)=>{const _0xd02c7c=_0x296d6a;if(_0x1fc723[_0xd02c7c(0x157)]<=_0x22ab8a)return _0x1fc723;return _0x1fc723[_0xd02c7c(0x154)](0x0,_0x22ab8a)+(_0xd02c7c(0x90)+_0xd02c7c(0x1a7)+_0x22ab8a+_0xd02c7c(0x142)+_0x1fc723['length']+('\x20character'+'s)'));},_0x370ae1=(_0x296d6a(0x88)+_0x296d6a(0x124)+_0x296d6a(0x159)+_0x296d6a(0x1a8)+_0x296d6a(0x11b)+_0x296d6a(0x168)+_0x3d46e8(_0x3a0cdb[_0x296d6a(0x1a5)],_0x5f1e15)+(_0x296d6a(0x1eb)+_0x296d6a(0xd3)+_0x296d6a(0x9e))+_0x3d46e8(_0x3a0cdb[_0x296d6a(0x1a5)+_0x296d6a(0x1e9)],_0x5f1e15)+(_0x296d6a(0x204)+_0x296d6a(0xd1)+'iff)\x0a```di'+_0x296d6a(0x10a))+_0x3d46e8(_0x3a0cdb[_0x296d6a(0xca)],_0x5f1e15)+(_0x296d6a(0x182)+'\x20'))[_0x296d6a(0x1d0)](),_0x303ad0={'analysisId':_0x3eb08b,'secureCode':_0x3d46e8(_0x3a0cdb['secureCode'],_0x5f1e15),'secureCodeBrief':_0x3d46e8(_0x3a0cdb[_0x296d6a(0x1a5)+'Brief'],_0x5f1e15),'diff':_0x3d46e8(_0x3a0cdb[_0x296d6a(0xca)],_0x5f1e15)},_0x4d6f8b={};_0x4d6f8b[_0x296d6a(0x1d1)]='text',_0x4d6f8b[_0x296d6a(0x12c)]=_0x370ae1;const _0x1667e8={};return _0x1667e8['content']=[_0x4d6f8b],_0x1667e8[_0x296d6a(0xbd)+_0x296d6a(0xb3)]=_0x303ad0,_0x1667e8;}catch(_0x453a1b){logger[_0x296d6a(0x1ff)]('Failed\x20to\x20'+_0x296d6a(0x146)+_0x296d6a(0x114)+':',_0x453a1b);const _0x446bf4=_0x453a1b instanceof Error?_0x453a1b[_0x296d6a(0xb7)]:_0x296d6a(0x10d)+_0x296d6a(0x14e),_0x794f={};_0x794f['type']=_0x8020eb[_0x296d6a(0x112)],_0x794f['text']=_0x296d6a(0x11c)+_0x296d6a(0x146)+_0x296d6a(0x114)+':\x20'+_0x446bf4;const _0x3c953e={};_0x3c953e[_0x296d6a(0x1ff)]=_0x446bf4;const _0x5922ce={};return _0x5922ce['content']=[_0x794f],_0x5922ce[_0x296d6a(0xbd)+_0x296d6a(0xb3)]=_0x3c953e,_0x5922ce[_0x296d6a(0x1ef)]=!![],_0x5922ce;}}),server['registerTo'+'ol'](a1_0x45e80b(0x1c0)+a1_0x45e80b(0x1e6)+'ty',{'title':'Multi-File'+a1_0x45e80b(0x1e0)+a1_0x45e80b(0x77),'description':a1_0x45e80b(0xc8)+a1_0x45e80b(0x180)+a1_0x45e80b(0xcc)+'ress\x20them\x20'+a1_0x45e80b(0x1d6)+'\x20file,\x20and'+a1_0x45e80b(0x99)+'ecurity\x20an'+'alysis.\x20Al'+a1_0x45e80b(0xa6)+a1_0x45e80b(0xe6)+a1_0x45e80b(0x1ae)+a1_0x45e80b(0x1c1),'inputSchema':{'filePaths':z[a1_0x45e80b(0xd0)](z[a1_0x45e80b(0x119)]())['describe'](a1_0x45e80b(0x86)+a1_0x45e80b(0x1ce)+a1_0x45e80b(0x203)+a1_0x45e80b(0x1b5)+a1_0x45e80b(0xc1)+'elative\x20to'+a1_0x45e80b(0x1cd)+a1_0x45e80b(0x14d)+'ectory)'),'zipFileName':z[a1_0x45e80b(0x119)]()['optional']()['describe'](a1_0x45e80b(0xf0)+'e\x20ZIP\x20file'+a1_0x45e80b(0x165)+a1_0x45e80b(0xa4)+'onal)')}},async({filePaths:_0x53dbe3,zipFileName:_0x48a6f8})=>{const _0x42cf73=a1_0x45e80b;try{if(!_0x53dbe3||_0x53dbe3[_0x42cf73(0x157)]===0x0){const _0x5dae5b={};_0x5dae5b[_0x42cf73(0x1d1)]=_0x42cf73(0x12c),_0x5dae5b[_0x42cf73(0x12c)]='No\x20files\x20t'+_0x42cf73(0x187)+_0x42cf73(0xf2)+_0x42cf73(0xf8)+'\x20requires\x20'+_0x42cf73(0x1c4)+'ne\x20file\x20pa'+'th.';const _0x3a9200={};_0x3a9200[_0x42cf73(0x1ff)]=_0x42cf73(0x16a)+_0x42cf73(0x1c3)+_0x42cf73(0x1a3);const _0x539fde={};return _0x539fde[_0x42cf73(0x16e)]=[_0x5dae5b],_0x539fde['structured'+_0x42cf73(0xb3)]=_0x3a9200,_0x539fde;}logger[_0x42cf73(0x1c6)](_0x42cf73(0xda)+'\x20security\x20'+_0x42cf73(0xc2)+_0x42cf73(0xd6)+_0x53dbe3[_0x42cf73(0x157)]+('\x20file\x20path'+'s'));const _0x391a2b=await analysisService[_0x42cf73(0x144)+_0x42cf73(0x200)+_0x42cf73(0x1b0)](_0x53dbe3,_0x48a6f8),_0x516dd7='Security\x20a'+_0x42cf73(0x19f)+_0x42cf73(0x94)+_0x42cf73(0x71)+_0x42cf73(0x72)+'s:\x20'+_0x53dbe3[_0x42cf73(0x157)]+(_0x42cf73(0x18f)+_0x42cf73(0x131))+_0x391a2b[_0x42cf73(0x12d)]+_0x42cf73(0x19a)+_0x391a2b[_0x42cf73(0x14b)],_0x2412ea={};_0x2412ea[_0x42cf73(0x1d1)]=_0x42cf73(0x12c),_0x2412ea[_0x42cf73(0x12c)]=_0x516dd7;const _0x268be9={};_0x268be9[_0x42cf73(0x12d)]=_0x391a2b[_0x42cf73(0x12d)],_0x268be9[_0x42cf73(0x14b)]=_0x391a2b[_0x42cf73(0x14b)],_0x268be9['filePathCo'+_0x42cf73(0x193)]=_0x53dbe3[_0x42cf73(0x157)];const _0x120888={};return _0x120888[_0x42cf73(0x16e)]=[_0x2412ea],_0x120888['structured'+_0x42cf73(0xb3)]=_0x268be9,_0x120888;}catch(_0x1278fb){logger['error'](_0x42cf73(0xda)+'\x20security\x20'+'analysis\x20f'+'ailed:',_0x1278fb);const _0x446eae={};_0x446eae[_0x42cf73(0x1d1)]=_0x42cf73(0x12c),_0x446eae[_0x42cf73(0x12c)]=_0x42cf73(0x1a6)+_0x42cf73(0x12f)+_0x42cf73(0xd2)+_0x42cf73(0x17d)+(_0x1278fb instanceof Error?_0x1278fb[_0x42cf73(0xb7)]:_0x42cf73(0x10d)+_0x42cf73(0x14e));const _0x251c09={};_0x251c09[_0x42cf73(0x1ff)]=_0x1278fb instanceof Error?_0x1278fb[_0x42cf73(0xb7)]:_0x42cf73(0x10d)+_0x42cf73(0x14e);const _0x585bc1={};return _0x585bc1['content']=[_0x446eae],_0x585bc1[_0x42cf73(0xbd)+_0x42cf73(0xb3)]=_0x251c09,_0x585bc1;}}),server[a1_0x45e80b(0xeb)+'ol']('analyze_zi'+a1_0x45e80b(0x107),{'title':a1_0x45e80b(0xc9)+a1_0x45e80b(0x11d)+a1_0x45e80b(0x197),'description':a1_0x45e80b(0xac)+a1_0x45e80b(0x18b)+'\x20storage\x20a'+a1_0x45e80b(0x8a)+a1_0x45e80b(0x1b4)+'analysis.','inputSchema':{'zipFilePath':z[a1_0x45e80b(0x119)]()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0x1c5)+'e\x20ZIP\x20file'+a1_0x45e80b(0x10c)+a1_0x45e80b(0x15d)+a1_0x45e80b(0x134)+a1_0x45e80b(0x9d)+a1_0x45e80b(0xfd)+a1_0x45e80b(0x1dd)+a1_0x45e80b(0x82)),'zipFileName':z[a1_0x45e80b(0x119)]()[a1_0x45e80b(0x10e)]()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0x18d)+a1_0x45e80b(0x1a1)+a1_0x45e80b(0xb2)+a1_0x45e80b(0xdb)+a1_0x45e80b(0x1f4)+a1_0x45e80b(0x1fb)+a1_0x45e80b(0x153)+a1_0x45e80b(0x7f))}},async({zipFilePath:_0x46fee7,zipFileName:_0x4a9d77})=>{const _0x529aa4=a1_0x45e80b,_0x393176={};_0x393176[_0x529aa4(0x1fd)]=_0x529aa4(0x12c),_0x393176['mRiBj']='ZIP\x20file\x20s'+_0x529aa4(0x178)+_0x529aa4(0x139)+_0x529aa4(0xb6);const _0x5cbbf6=_0x393176;try{if(!_0x46fee7||_0x46fee7[_0x529aa4(0x1d0)]()['length']===0x0){const _0x4d81a8={};_0x4d81a8[_0x529aa4(0x1d1)]=_0x5cbbf6[_0x529aa4(0x1fd)],_0x4d81a8['text']=_0x529aa4(0x202)+_0x529aa4(0x152)+_0x529aa4(0x19d);const _0x2de44b={};_0x2de44b[_0x529aa4(0x1ff)]=_0x529aa4(0x202)+_0x529aa4(0x152)+_0x529aa4(0x148);const _0x1b9e82={};return _0x1b9e82['content']=[_0x4d81a8],_0x1b9e82[_0x529aa4(0xbd)+_0x529aa4(0xb3)]=_0x2de44b,_0x1b9e82;}logger[_0x529aa4(0x1c6)](_0x529aa4(0x171)+_0x529aa4(0x178)+'alysis\x20req'+_0x529aa4(0x1fc)+_0x46fee7);const _0x15435c=await analysisService['analyzeZip'+_0x529aa4(0x149)](_0x46fee7,_0x4a9d77),_0x461f41=_0x529aa4(0x1a6)+'nalysis\x20ha'+_0x529aa4(0x94)+_0x529aa4(0xab)+'\x20'+_0x46fee7+('\x0aAnalysis\x20'+_0x529aa4(0x131))+_0x15435c[_0x529aa4(0x12d)]+_0x529aa4(0x19a)+_0x15435c[_0x529aa4(0x14b)],_0x327ebf={};_0x327ebf[_0x529aa4(0x1d1)]='text',_0x327ebf[_0x529aa4(0x12c)]=_0x461f41;const _0x50da45={};_0x50da45[_0x529aa4(0x12d)]=_0x15435c['analysisId'],_0x50da45[_0x529aa4(0x14b)]=_0x15435c[_0x529aa4(0x14b)],_0x50da45[_0x529aa4(0xd5)+'h']=_0x46fee7;const _0x4e5103={};return _0x4e5103[_0x529aa4(0x16e)]=[_0x327ebf],_0x4e5103[_0x529aa4(0xbd)+_0x529aa4(0xb3)]=_0x50da45,_0x4e5103;}catch(_0x44a5a0){logger[_0x529aa4(0x1ff)](_0x5cbbf6[_0x529aa4(0x198)],_0x44a5a0);const _0x4dc970={};_0x4dc970[_0x529aa4(0x1d1)]=_0x5cbbf6[_0x529aa4(0x1fd)],_0x4dc970[_0x529aa4(0x12c)]=_0x529aa4(0x1a6)+'nalysis\x20re'+_0x529aa4(0xd2)+_0x529aa4(0x17d)+(_0x44a5a0 instanceof Error?_0x44a5a0[_0x529aa4(0xb7)]:'Unknown\x20er'+_0x529aa4(0x14e));const _0x3f8d76={};_0x3f8d76[_0x529aa4(0x1ff)]=_0x44a5a0 instanceof Error?_0x44a5a0[_0x529aa4(0xb7)]:'Unknown\x20er'+_0x529aa4(0x14e);const _0x5b3b25={};return _0x5b3b25[_0x529aa4(0x16e)]=[_0x4dc970],_0x5b3b25[_0x529aa4(0xbd)+_0x529aa4(0xb3)]=_0x3f8d76,_0x5b3b25;}}),server[a1_0x45e80b(0xeb)+'ol'](a1_0x45e80b(0xd7)+'lder_secur'+'ity',{'title':a1_0x45e80b(0x1da)+a1_0x45e80b(0x175)+a1_0x45e80b(0xcf),'description':a1_0x45e80b(0x19e)+a1_0x45e80b(0x10b)+a1_0x45e80b(0x173)+a1_0x45e80b(0x1d3)+a1_0x45e80b(0x13d)+'est\x20securi'+a1_0x45e80b(0xc4)+'s.','inputSchema':{'folderPath':z[a1_0x45e80b(0x119)]()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0x1c5)+'e\x20folder\x20t'+'o\x20analyze\x20'+a1_0x45e80b(0x1b5)+a1_0x45e80b(0xcd)+a1_0x45e80b(0x76)+a1_0x45e80b(0x140)+'rking\x20dire'+'ctory)'),'zipFileName':z[a1_0x45e80b(0x119)]()[a1_0x45e80b(0x10e)]()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0xf0)+a1_0x45e80b(0x1d7)+a1_0x45e80b(0x165)+a1_0x45e80b(0xa4)+a1_0x45e80b(0x95)+a1_0x45e80b(0x137)+a1_0x45e80b(0xd4)+a1_0x45e80b(0x11f))}},async({folderPath:_0x4991eb,zipFileName:_0x88a7b8})=>{const _0x24fa3d=a1_0x45e80b;try{if(!_0x4991eb||_0x4991eb[_0x24fa3d(0x1d0)]()[_0x24fa3d(0x157)]===0x0){const _0x5c2127={};_0x5c2127['type']=_0x24fa3d(0x12c),_0x5c2127[_0x24fa3d(0x12c)]=_0x24fa3d(0x160)+_0x24fa3d(0x20e)+'ided.';const _0xecc7cb={};_0xecc7cb[_0x24fa3d(0x1ff)]=_0x24fa3d(0x160)+_0x24fa3d(0x20e)+_0x24fa3d(0xf1);const _0x552d4c={};return _0x552d4c['content']=[_0x5c2127],_0x552d4c[_0x24fa3d(0xbd)+_0x24fa3d(0xb3)]=_0xecc7cb,_0x552d4c;}logger[_0x24fa3d(0x1c6)](_0x24fa3d(0x12e)+_0x24fa3d(0x158)+_0x24fa3d(0xaf)+_0x24fa3d(0x1b3)+_0x4991eb);const _0x59a344=await analysisService[_0x24fa3d(0x19c)+_0x24fa3d(0x185)](_0x4991eb,_0x88a7b8),_0x142138=_0x24fa3d(0x1a6)+_0x24fa3d(0x19f)+_0x24fa3d(0x94)+_0x24fa3d(0x206)+_0x4991eb+(_0x24fa3d(0x18f)+_0x24fa3d(0x131))+_0x59a344['analysisId']+'\x0aStatus:\x20'+_0x59a344[_0x24fa3d(0x14b)],_0xd3e2f6={};_0xd3e2f6[_0x24fa3d(0x1d1)]=_0x24fa3d(0x12c),_0xd3e2f6['text']=_0x142138;const _0x380c37={};_0x380c37[_0x24fa3d(0x12d)]=_0x59a344['analysisId'],_0x380c37['status']=_0x59a344['status'],_0x380c37[_0x24fa3d(0x7a)]=_0x4991eb;const _0x51df31={};return _0x51df31[_0x24fa3d(0x16e)]=[_0xd3e2f6],_0x51df31[_0x24fa3d(0xbd)+_0x24fa3d(0xb3)]=_0x380c37,_0x51df31;}catch(_0x354212){logger['error']('Folder\x20sec'+_0x24fa3d(0x158)+_0x24fa3d(0x130)+'d:',_0x354212);const _0x9b1bba={};_0x9b1bba[_0x24fa3d(0x1d1)]='text',_0x9b1bba[_0x24fa3d(0x12c)]=_0x24fa3d(0x1a6)+'nalysis\x20re'+'quest\x20fail'+_0x24fa3d(0x17d)+(_0x354212 instanceof Error?_0x354212[_0x24fa3d(0xb7)]:_0x24fa3d(0x10d)+_0x24fa3d(0x14e));const _0x2d2a58={};_0x2d2a58[_0x24fa3d(0x1ff)]=_0x354212 instanceof Error?_0x354212[_0x24fa3d(0xb7)]:_0x24fa3d(0x10d)+_0x24fa3d(0x14e);const _0x4f4f85={};return _0x4f4f85['content']=[_0x9b1bba],_0x4f4f85[_0x24fa3d(0xbd)+'Content']=_0x2d2a58,_0x4f4f85;}}),server['registerTo'+'ol'](a1_0x45e80b(0x190)+a1_0x45e80b(0x209)+'ess',{'title':'Track\x20Anal'+'ysis\x20Progr'+a1_0x45e80b(0x1f6),'description':a1_0x45e80b(0x8c)+a1_0x45e80b(0x1ac)+a1_0x45e80b(0x1e8)+a1_0x45e80b(0xe1)+a1_0x45e80b(0x14f)+a1_0x45e80b(0x13a)+a1_0x45e80b(0x132)+'gress\x20Noti'+a1_0x45e80b(0x103)+'Analysis\x20s'+a1_0x45e80b(0x8b)+a1_0x45e80b(0x7b)+a1_0x45e80b(0x17a)+a1_0x45e80b(0x16b)+a1_0x45e80b(0x123)+'_PROCESS,\x20'+'COMPLETE.\x20'+'Progress\x20i'+'s\x20only\x20pro'+a1_0x45e80b(0x141)+a1_0x45e80b(0x1e2)+a1_0x45e80b(0x113)+'e.','inputSchema':{'analysisId':z[a1_0x45e80b(0x119)]()[a1_0x45e80b(0x1b2)](a1_0x45e80b(0x184)+'D'),'intervalMs':z['number']()[a1_0x45e80b(0x10e)]()['describe']('Status\x20che'+a1_0x45e80b(0x9c)+a1_0x45e80b(0x1ad)+a1_0x45e80b(0x166)+a1_0x45e80b(0x81)+a1_0x45e80b(0xfa))}},async({analysisId:_0x4484f1,intervalMs:intervalMs=0xbb8},_0x3e89fe)=>{const _0x1f0245=a1_0x45e80b,_0x56c280={};_0x56c280['bPszT']=function(_0xc7786e,_0xdd3b74){return _0xc7786e===_0xdd3b74;},_0x56c280['BJXZR']=function(_0x4924ee,_0x200ac2){return _0x4924ee!==_0x200ac2;},_0x56c280['RbZsL']=_0x1f0245(0x172),_0x56c280['CJhlZ']='[FAIL]\x20Ana'+_0x1f0245(0x96)+_0x1f0245(0x11a)+_0x1f0245(0x183)+'rly.';const _0x4810a9=_0x56c280;try{const _0x3a1df5=_0x3e89fe[_0x1f0245(0x17e)]?.[_0x1f0245(0x143)+_0x1f0245(0x12b)];if(!_0x3a1df5){const _0x365507={};_0x365507[_0x1f0245(0x1d1)]='text',_0x365507[_0x1f0245(0x12c)]=_0x1f0245(0xe9)+'oken\x20not\x20p'+_0x1f0245(0xfc)+_0x1f0245(0x1e4)+'must\x20suppo'+_0x1f0245(0x1b6)+_0x1f0245(0x12a)+'.';const _0x1f7a22={};_0x1f7a22[_0x1f0245(0x1ff)]=_0x1f0245(0xe9)+_0x1f0245(0x1bb)+_0x1f0245(0x156);const _0x3703c5={};return _0x3703c5['content']=[_0x365507],_0x3703c5[_0x1f0245(0xbd)+_0x1f0245(0xb3)]=_0x1f7a22,_0x3703c5;}logger[_0x1f0245(0x1c6)](_0x1f0245(0x163)+_0x1f0245(0xea)+_0x1f0245(0x101)+_0x1f0245(0x199)+_0x4484f1);const _0x1e6d65={};_0x1e6d65['id']=_0x1f0245(0x17c),_0x1e6d65[_0x1f0245(0x177)]=_0x1f0245(0x20c)+_0x1f0245(0x15b),_0x1e6d65[_0x1f0245(0x97)+'n']=_0x1f0245(0x135)+_0x1f0245(0x196)+'\x20to\x20start.',_0x1e6d65[_0x1f0245(0x15e)]=null,_0x1e6d65['order']=0x1;const _0x4b0f73={};_0x4b0f73['id']=_0x1f0245(0x1f2),_0x4b0f73[_0x1f0245(0x177)]='Ready',_0x4b0f73[_0x1f0245(0x97)+'n']='Ready\x20to\x20s'+_0x1f0245(0x1f9)+_0x1f0245(0x192),_0x4b0f73[_0x1f0245(0x15e)]=null,_0x4b0f73[_0x1f0245(0xb5)]=0x2;const _0x4255bb={};_0x4255bb['id']=_0x1f0245(0xb1)+'S',_0x4255bb[_0x1f0245(0x97)+'n']=_0x1f0245(0x164)+'sing...',_0x4255bb[_0x1f0245(0x177)]=_0x1f0245(0x164)+'sing',_0x4255bb[_0x1f0245(0x15e)]=null,_0x4255bb[_0x1f0245(0xb5)]=0x3;const _0x2ee308={};_0x2ee308['id']='ANALYSIS',_0x2ee308[_0x1f0245(0x97)+'n']='Analysis\x20i'+_0x1f0245(0x70)+_0x1f0245(0x1f1),_0x2ee308[_0x1f0245(0x177)]=_0x1f0245(0x77),_0x2ee308[_0x1f0245(0x15e)]=0x0,_0x2ee308[_0x1f0245(0xb5)]=0x4;const _0x37a1c8={};_0x37a1c8['id']=_0x1f0245(0x111)+'SS',_0x37a1c8[_0x1f0245(0x97)+'n']=_0x1f0245(0x1e5)+_0x1f0245(0x116),_0x37a1c8['name']='Post-proce'+_0x1f0245(0x118),_0x37a1c8[_0x1f0245(0x15e)]=null,_0x37a1c8[_0x1f0245(0xb5)]=0x5;const _0x2e59d7={};_0x2e59d7['id']=_0x1f0245(0x172),_0x2e59d7[_0x1f0245(0x97)+'n']=_0x1f0245(0xa1)+_0x1f0245(0x169)+_0x1f0245(0x1ed)+'y.',_0x2e59d7[_0x1f0245(0x177)]=_0x1f0245(0xe2),_0x2e59d7[_0x1f0245(0x15e)]=0x64,_0x2e59d7[_0x1f0245(0xb5)]=0x6;const _0x1f284c={};_0x1f284c[_0x1f0245(0x17c)]=_0x1e6d65,_0x1f284c['READY']=_0x4b0f73,_0x1f284c[_0x1f0245(0xb1)+'S']=_0x4255bb,_0x1f284c[_0x1f0245(0x11e)]=_0x2ee308,_0x1f284c['POST_PROCE'+'SS']=_0x37a1c8,_0x1f284c[_0x1f0245(0x172)]=_0x2e59d7;const _0x306390=_0x1f284c;let _0xaf6008=Object[_0x1f0245(0x128)](_0x306390)[_0x1f0245(0x157)],_0x1c5172=null,_0x268e4e=0x0,_0x2b7a41=!![];const _0x41e125=async _0x3f618b=>{const _0x3ed0a8=_0x1f0245;if(!_0x2b7a41)return![];try{return await _0x3e89fe[_0x3ed0a8(0x1b1)+'cation'](_0x3f618b),!![];}catch(_0x157637){if(_0x3ed0a8(0x15c)!==_0x3ed0a8(0x15c))_0x558d83=_0x3ed0a8(0x145)+_0x3ed0a8(0x8d)+'completed.',_0x39a8b0=_0x3ed0a8(0x172);else{const _0x215aa7=_0x157637 instanceof Error?_0x157637[_0x3ed0a8(0xb7)]:_0x3ed0a8(0x10d)+_0x3ed0a8(0x14e);return _0x215aa7['includes'](_0x3ed0a8(0x201)+'ken')||_0x215aa7[_0x3ed0a8(0xad)]('invalid\x20to'+_0x3ed0a8(0x12b))||_0x215aa7[_0x3ed0a8(0xad)](_0x3ed0a8(0x129)+'ken')||_0x215aa7[_0x3ed0a8(0x205)+'e']()[_0x3ed0a8(0xad)](_0x3ed0a8(0x7e))?_0x3ed0a8(0x16d)===_0x3ed0a8(0xc6)?_0x30cc90[_0x3ed0a8(0x1e1)](_0x3ed0a8(0x9a)+'otificatio'+'n\x20failed\x20('+_0x3ed0a8(0x151)+_0x3ed0a8(0x125)+_0x181138):(_0x2b7a41=![],logger[_0x3ed0a8(0x1e1)]('Progress\x20t'+_0x3ed0a8(0x117)+'\x20longer\x20va'+_0x3ed0a8(0xbc)+_0x3ed0a8(0x179)+_0x3ed0a8(0x20d)+_0x3ed0a8(0x189)+_0x215aa7)):logger[_0x3ed0a8(0x1e1)]('Progress\x20n'+_0x3ed0a8(0x121)+_0x3ed0a8(0x1dc)+'will\x20retry'+'):\x20'+_0x215aa7),![];}}};while(!![]){try{const _0x7991d=await analysisService[_0x1f0245(0x13f)+_0x1f0245(0x17b)](_0x4484f1),_0x48e3f0=String(_0x7991d[_0x1f0245(0x14b)])[_0x1f0245(0x1b9)+'e'](),_0x2c8031=String(_0x7991d['status'])['toUpperCas'+'e'](),_0x39ce46=_0x4810a9[_0x1f0245(0x7c)](_0x2c8031,_0x1f0245(0x172))&&_0x7991d[_0x1f0245(0x92)]?String(_0x7991d[_0x1f0245(0x92)])[_0x1f0245(0x1b9)+'e']():_0x48e3f0;if(_0x4810a9['BJXZR'](_0x1c5172,_0x48e3f0)){_0x1c5172=_0x48e3f0;if(_0x2c8031===_0x1f0245(0x172)||_0x48e3f0===_0x1f0245(0x181)||_0x48e3f0===_0x1f0245(0x126)){let _0x4c9225,_0xfb9df7;if(_0x2c8031===_0x4810a9[_0x1f0245(0x176)]){const _0x3655e8=_0x7991d[_0x1f0245(0x92)]?String(_0x7991d['result'])[_0x1f0245(0x1b9)+'e']():undefined;_0xfb9df7=_0x3655e8||_0x1f0245(0x172);if(_0x3655e8==='SUCCESS')_0x4c9225='[SUCCESS]\x20'+_0x1f0245(0xa1)+_0x1f0245(0x169)+_0x1f0245(0x1ed)+'y.';else{if(_0x3655e8===_0x1f0245(0x181))_0x4c9225=_0x4810a9['CJhlZ'];else _0x3655e8===_0x1f0245(0x1f3)?_0x4c9225=_0x1f0245(0xd9)+_0x1f0245(0x14a)+'stopped\x20by'+'\x20request.':(_0x4c9225=_0x1f0245(0x145)+'\x20Analysis\x20'+_0x1f0245(0x13b),_0xfb9df7=_0x1f0245(0x172));}}else _0x4c9225='['+_0x48e3f0+(_0x1f0245(0xec)+_0x1f0245(0xc3)),_0xfb9df7=_0x48e3f0;const _0x1bbaac={'method':_0x1f0245(0x1ab)+_0x1f0245(0xa0)+'ss','params':{'progressToken':typeof _0x3a1df5==='string'?_0x3a1df5:String(_0x3a1df5),'progress':_0x48e3f0==='COMPLETE'?0x64:0x0,'message':_0x4c9225,'total':0x64}};await _0x41e125(_0x1bbaac);_0x2c8031===_0x1f0245(0x172)?logger[_0x1f0245(0x1c6)](_0x1f0245(0xff)+_0x1f0245(0xde)+_0x1f0245(0xf9)+'\x20'+_0xfb9df7):logger[_0x1f0245(0x1c6)](_0x1f0245(0x19b)+_0x1f0245(0x127)+_0x1f0245(0x8f)+_0xfb9df7);const _0x1931f5={};_0x1931f5[_0x1f0245(0x1d1)]=_0x1f0245(0x12c),_0x1931f5[_0x1f0245(0x12c)]=_0x1f0245(0xa1)+_0x1f0245(0xae)+'Analysis\x20I'+_0x1f0245(0x1af)+_0x4484f1+(_0x1f0245(0xb9)+_0x1f0245(0x15f))+_0xfb9df7;const _0x283605={};_0x283605[_0x1f0245(0x12d)]=_0x4484f1,_0x283605['status']=_0xfb9df7,_0x283605[_0x1f0245(0x92)]=_0x7991d[_0x1f0245(0x92)],_0x283605[_0x1f0245(0x8e)]=!![];const _0x30a3f7={};return _0x30a3f7[_0x1f0245(0x16e)]=[_0x1931f5],_0x30a3f7['structured'+_0x1f0245(0xb3)]=_0x283605,_0x30a3f7;}const _0x3bf1ce=_0x306390[_0x48e3f0];if(_0x3bf1ce){const _0x610612={};_0x610612[_0x1f0245(0x1a4)]=0x64;const _0x52db02={'method':_0x1f0245(0x1ab)+'ons/progre'+'ss','params':{'progressToken':typeof _0x3a1df5===_0x1f0245(0x119)?_0x3a1df5:String(_0x3a1df5),'progress':_0x4810a9['BJXZR'](_0x3bf1ce['progress'],null)?_0x3bf1ce[_0x1f0245(0x15e)]:_0x48e3f0===_0x1f0245(0x11e)?_0x268e4e:_0x3bf1ce['order'],'message':'['+_0x3bf1ce['id']+']\x20'+_0x3bf1ce[_0x1f0245(0x97)+'n'],'total':_0xaf6008,..._0x3bf1ce[_0x1f0245(0x15e)]!==null&&_0x48e3f0===_0x1f0245(0x11e)&&_0x610612}};await _0x41e125(_0x52db02),_0x2b7a41&&logger['info']('Analysis\x20s'+_0x1f0245(0x1aa)+_0x1f0245(0xb0)+_0x3bf1ce['id']+'\x20('+_0x3bf1ce[_0x1f0245(0x177)]+')');}else{const _0x1069eb={'method':'notificati'+_0x1f0245(0xa0)+'ss','params':{'progressToken':typeof _0x3a1df5===_0x1f0245(0x119)?_0x3a1df5:String(_0x3a1df5),'progress':0x1,'total':0x1,'message':'['+_0x48e3f0+(_0x1f0245(0xec)+_0x1f0245(0x78)+'ss...')}};await _0x41e125(_0x1069eb);}}else{if(_0x48e3f0===_0x1f0245(0x11e)){if(_0x7991d[_0x1f0245(0x15e)]!==undefined&&_0x7991d[_0x1f0245(0x15e)]!==null){_0x268e4e=_0x7991d['progress'];const _0x3e96e5=_0x306390[_0x48e3f0],_0x27ad96={'method':_0x1f0245(0x1ab)+_0x1f0245(0xa0)+'ss','params':{'progressToken':typeof _0x3a1df5===_0x1f0245(0x119)?_0x3a1df5:String(_0x3a1df5),'progress':_0x3e96e5[_0x1f0245(0xb5)],'total':_0xaf6008,'message':_0x1f0245(0x83)+'\x20Analysis\x20'+_0x1f0245(0x74)+'s:\x20'+_0x268e4e+'%'}};await _0x41e125(_0x27ad96);}}}!_0x2b7a41&&logger[_0x1f0245(0x1c6)](_0x1f0245(0x102)+'oken\x20is\x20in'+_0x1f0245(0x87)+_0x1f0245(0x170)+'atus\x20check'+_0x1f0245(0xbe)+_0x1f0245(0x1ab)+'ons'),await new Promise(_0x41f393=>setTimeout(_0x41f393,intervalMs));}catch(_0x567bfc){logger[_0x1f0245(0x1ff)](_0x1f0245(0xf7)+_0x1f0245(0xa2)+_0x1f0245(0x186)+'\x20('+_0x4484f1+'):',_0x567bfc),await new Promise(_0x132fe9=>setTimeout(_0x132fe9,intervalMs));}}}catch(_0xc57a9c){logger[_0x1f0245(0x1ff)]('Analysis\x20p'+'rogress\x20tr'+_0x1f0245(0x9f)+_0x1f0245(0xb6),_0xc57a9c);const _0x25c98e={};_0x25c98e[_0x1f0245(0x1d1)]=_0x1f0245(0x12c),_0x25c98e['text']=_0x1f0245(0x163)+_0x1f0245(0xea)+_0x1f0245(0x9f)+_0x1f0245(0xbf)+(_0xc57a9c instanceof Error?_0xc57a9c['message']:'Unknown\x20er'+_0x1f0245(0x14e));const _0x1bf08b={};_0x1bf08b[_0x1f0245(0x1ff)]=_0xc57a9c instanceof Error?_0xc57a9c[_0x1f0245(0xb7)]:_0x1f0245(0x10d)+'ror';const _0x1cd36a={};return _0x1cd36a[_0x1f0245(0x16e)]=[_0x25c98e],_0x1cd36a[_0x1f0245(0xbd)+_0x1f0245(0xb3)]=_0x1bf08b,_0x1cd36a[_0x1f0245(0x1ef)]=!![],_0x1cd36a;}});const transport=new StdioServerTransport();logger['info'](a1_0x45e80b(0x1c8)+'\x20code\x20gene'+a1_0x45e80b(0x9b)+a1_0x45e80b(0x1c7)+'d');function a1_0x3016(_0x2ec8dc,_0x331dde){_0x2ec8dc=_0x2ec8dc-0x70;const _0x574cf7=a1_0x1d3a();let _0x46847c=_0x574cf7[_0x2ec8dc];return _0x46847c;}try{const serverFileDir=a1_0xf55353['dirname'](fileURLToPath(import.meta.url)),projectRoot=a1_0xf55353[a1_0x45e80b(0xe5)](serverFileDir,'..'),logsDir=a1_0xf55353['resolve'](projectRoot,a1_0x45e80b(0x1cf));if(!a1_0x5bb561[a1_0x45e80b(0x75)](logsDir)){const a1_0x3b2816={};a1_0x3b2816[a1_0x45e80b(0x1c2)]=!![],a1_0x5bb561['mkdirSync'](logsDir,a1_0x3b2816);}const combinedPath=a1_0xf55353[a1_0x45e80b(0x138)](logsDir,a1_0x45e80b(0xba)+'og'),errorPath=a1_0xf55353[a1_0x45e80b(0x138)](logsDir,'error.log');logger[a1_0x45e80b(0x1c6)]('Log\x20file\x20l'+a1_0x45e80b(0x14c)+a1_0x45e80b(0x20a)+'\x20'+combinedPath+a1_0x45e80b(0x122)+errorPath);}catch(a1_0x43d94b){logger['warn'](a1_0x45e80b(0x1a0)+a1_0x45e80b(0xee)+'ng/creatin'+a1_0x45e80b(0x1a2)+'ctory:',a1_0x43d94b);}await server['connect'](transport);
|
|
2
|
+
const a1_0x53b251=a1_0x513e;(function(_0x5728ad,_0x17b18f){const _0x3829f9=a1_0x513e,_0x6c75bf=_0x5728ad();while(!![]){try{const _0x1ca1a1=parseInt(_0x3829f9(0x12d))/0x1+parseInt(_0x3829f9(0x16e))/0x2*(-parseInt(_0x3829f9(0x157))/0x3)+-parseInt(_0x3829f9(0x14a))/0x4*(-parseInt(_0x3829f9(0x2ad))/0x5)+parseInt(_0x3829f9(0x19d))/0x6+-parseInt(_0x3829f9(0x13a))/0x7*(parseInt(_0x3829f9(0x28a))/0x8)+parseInt(_0x3829f9(0x160))/0x9*(-parseInt(_0x3829f9(0x204))/0xa)+parseInt(_0x3829f9(0x1ad))/0xb*(-parseInt(_0x3829f9(0x17e))/0xc);if(_0x1ca1a1===_0x17b18f)break;else _0x6c75bf['push'](_0x6c75bf['shift']());}catch(_0x29dc3d){_0x6c75bf['push'](_0x6c75bf['shift']());}}}(a1_0x10e5,0xacc20));const a1_0x4a2376=(function(){let _0x405511=!![];return function(_0xa84758,_0x467726){const _0x2e2baa=_0x405511?function(){if(_0x467726){const _0x491642=_0x467726['apply'](_0xa84758,arguments);return _0x467726=null,_0x491642;}}:function(){};return _0x405511=![],_0x2e2baa;};}()),a1_0x24fbc0=a1_0x4a2376(this,function(){const _0x49d5da=a1_0x513e;return a1_0x24fbc0['toString']()['search'](_0x49d5da(0x1ce)+'+$')[_0x49d5da(0x275)]()['constructo'+'r'](a1_0x24fbc0)[_0x49d5da(0x126)](_0x49d5da(0x1ce)+'+$');});a1_0x24fbc0();import{McpServer}from'@modelcontextprotocol/sdk/server/mcp.js';import{StdioServerTransport}from'@modelcontextprotocol/sdk/server/stdio.js';import{z}from'zod';import{AnalysisService}from'./services/analysis.service.js';import{logger}from'./utils/logger.js';import a1_0x110f13 from'path';import a1_0x14d714 from'fs';import{fileURLToPath}from'url';const a1_0x26447f={};function a1_0x10e5(){const _0x149c2d=['N/A','ysis\x20reque','\x20file,\x20and','mpleted\x20an','ief','zipFilePat','quested:\x20','diff','224QaDqyf','atus\x20check','ided','rogress\x20tr','\x20to\x20be\x20cre','is\x20failed:','type','s\x20only\x20pro','Multi-file','tart\x20analy','toUpperCas','ysis\x20Progr','r\x20analysis','analyzeFol','es\x20origina','nalysis\x20re','COMPLETE.\x20','mkdirSync','ted:\x20','tages\x20are\x20','ver\x20starte','g\x20log\x20dire','Post-proce','INIT,\x20READ','Waiting\x20fo','will\x20retry','connect','into\x20a\x20ZIP','[FAIL]\x20Ana','Upload\x20a\x20Z','esults.\x20Re','result','sis\x20status','ity\x20Analys','iff)\x0a```di','5RhvteV','specified)','der','.\x20[','l\x20file\x20con','generateSe','Log\x20file\x20l','\x0aAnalysis\x20','unt','a\x20file\x20by\x20','\x20security\x20','describe','s\x20Overview','ity','\x20storage\x20a','Failed\x20to\x20','Generate\x20S','on\x20request','ctory)','\x0a#\x20Securit','e\x20ZIP\x20file','search','ZIP\x20file\x20p','current\x20wo','total','sis\x20Briefi','warn','e\x20(absolut','534987TuAXII','rly.','analyzeFil','e-generato','ress\x20them\x20','analysisBr','lysis\x20brie','ile\x20conten','working\x20di','urity\x20anal','\x20file\x20path','MCP\x20secure','\x0a```\x0a\x0a##\x20S','161567grkFDv','%\x0aMessage:','PRE_PROCES','ID:\x20','folderPath','D\x20and\x20upda','o\x20analyze\x20','\x0aFolder:\x20','sStatus','\x0aStatus:\x20','recursive','SUCCESS','cure\x20Code\x0a','Code\x20Gener','uccessfull','\x20status:\x20','5537180IWblxA','trim','aths,\x20comp','\x0a-\x20Result:','analyzeZip','substring','sResults','cureCodeFr','at\x20least\x20o','isError','tus:\x20','nalysis\x20ha','ations:\x20','2471151icZmjg','join','s\x20started.','oken\x20is\x20no','ceaHu','ctory:','text','luding\x20vul','nd\x20origina','5949LKgkhu','RZCSN','is\x20results','Error\x20chec','vulnerabil','tent.','k\x20failed:','e\x20folder\x20t','upNSv','get_analys','[STOP]\x20Ana','analysis\x20f','progressTo','File','2RoVDgz','PAPjR','[SUCCESS]\x20','map','ated\x20(opti','severity','turn\x20the\x20r','rfCeW','D:\x20','STOP','ecure\x20Code','ecurity\x20An','(absolute\x20','older\x20into','ysis\x20faile','YSIS,\x20POST','4291596gYxuLx','Path\x20to\x20th','tional,\x20us','includes','uested:\x20','Name\x20of\x20th','\x0a-\x20Vulnera','acking\x20sta','stored\x20(op','ound:\x20','YMgSe','ly\x20check\x20a','\x20request\x20s','ss\x20notific','ess','Multi-File','ng\x0a','INIT','tatus\x20requ','message','ZIP\x20file\x20n','unknown\x20to','version','hBJSv','generate\x20s','existsSync','token','s\x20single\x20f','Content\x20of','IP\x20file\x20to','oken\x20not\x20p','5460582cmwBYT','Folder\x20pat','\x20based\x20on\x20','progress\x20o','\x20combined:','\x20Briefing\x0a','lysis\x20fail','Track\x20Anal','rted:\x20','is_results','ANALYSIS','length','vAUHk','name','ed\x20results','ken','11qxudTL','king\x20analy','sis.','ompleted.\x0a','00)','registerTo','ecure\x20code','[COMPLETE]','ate\x20secure','descriptio','analyze_zi','tatus\x20upda','vered\x20Vuln','structured','ile\x20analys','ent.','elative\x20to','generate_s','\x0a\x0a...\x20(Sho','s:\x20','tatus:\x20','qkjwx','ror','nd\x20request','\x0a#\x20Secure\x20','led:\x20','lts\x0a\x0a##\x20Se','info','tion','Changes\x20(D','ile\x20checki','error.log','e\x20and\x20requ','(((.+)+)+)','lder_secur','EpKZD','path\x20or\x20re','\x20request.','Progress\x20i','is_status','wing\x20','number','ailed:','ZIP\x20File\x20S','error','):\x20','ons/progre','Periodical','Compress\x20a','cation','track_anal','\x20failed.','dirname','Analysis\x20p','Get\x20detail','Ready','analyzeMul','File\x20secur','iukAM','\x0a\x20\x20\x20\x20\x20\x20','Analysis\x20S','led:','\x0aProgress:','curity\x20ana','rking\x20dire','Generate\x20s','omAnalysis','Analysis\x20I','Get\x20Analys','analyze_fo','te\x20via\x20Pro','keys','D\x20from\x20the','string','ration\x20ser','array','\x0aZIP\x20File:','otificatio','\x20the\x20file\x20','rovided','FAILED','lysis\x20ID\x20a','ocations\x20-','e\x20path\x20or\x20','resolve','\x20Analysis\x20','fileConten','4450pRVuqs','s\x20ID:\x20','_meta','status','COMPLETE','1.0.0','ple\x20file\x20p','pxLMP','analysis\x20r','LYSIS\x20stag','secureCode','s\x20without\x20','Check\x20the\x20','_PROCESS,\x20','ath\x20not\x20pr','alysis\x20req','\x20file\x20cont','ck\x20interva','order','```java\x0a','quest\x20fail','ff\x0a','analysisId','onal)','h\x20not\x20prov','sendNotifi','ailed\x20with','esults.','notificati','Progress\x20T','nalysis\x20pr','File\x20name','ovided.','sted:\x20','n\x20failed\x20(','\x20not\x20provi','Complete','secure-cod','efault:\x2030','\x0aFinal\x20Sta',']\x20Analysis','Progress\x20t','dzKIy','ame\x20to\x20be\x20','ssing...','Content','\x20if\x20not\x20sp','Analysis\x20c','alysis','ne\x20file\x20pa','ysis','content','Folder\x20sec','\x0a-\x20Analysi','ecified)','analyze_fi','optional','urity\x20Anal','Read\x20multi','lysis\x20for\x20','ovided','analysis.','p_security','combined.l','the\x20entire',',\x20error:\x20','o\x20current\x20','ded','must\x20suppo','in\x20progres','POST_PROCE','Analysis\x20s','so\x20support','List\x20of\x20fi','ecurity\x20an','n\x20entire\x20f','invalid\x20to','sing','\x20of\x20','\x20to\x20analyz','alysis\x20inc','PUxot','ed:\x20','progress','\x20character','lete\x20prope','ities','Progress\x20n','ested:\x20','aths\x20array','Analysis\x20i','le_securit','Unknown\x20er','ZIP\x20file\x20s','FAIL','Warning\x20wh','seconds\x20(d','Ready\x20to\x20s','Analysis','\x20a\x20ZIP\x20fil','READY','\x20from\x20a\x20co','Brief','Folder\x20Sec','Security\x20a','\x20folder\x20na','lid,\x20stopp','FromPaths','logs','est\x20securi','ss...','ectory)','Pre-proces','toString','equested:\x20','onal,\x20uses','ons','toLowerCas','\x20requires\x20','\x20in\x20progre','s\x20updated:','LXtiG','es\x20and\x20ana','acking\x20fai','analysis','o\x20analyze.'];a1_0x10e5=function(){return _0x149c2d;};return a1_0x10e5();}a1_0x26447f[a1_0x53b251(0x1aa)]=a1_0x53b251(0x229)+a1_0x53b251(0x130)+'r',a1_0x26447f[a1_0x53b251(0x194)]=a1_0x53b251(0x209);const server=new McpServer(a1_0x26447f),analysisService=new AnalysisService();function a1_0x513e(_0x5f3338,_0x1c31f3){_0x5f3338=_0x5f3338-0x112;const _0x283cb2=a1_0x10e5();let _0x24fbc0=_0x283cb2[_0x5f3338];return _0x24fbc0;}server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x23b)+a1_0x53b251(0x25f)+'y',{'title':'File\x20Secur'+a1_0x53b251(0x2ab)+'is','description':'Request\x20se'+a1_0x53b251(0x1ec)+a1_0x53b251(0x23f)+a1_0x53b251(0x11a)+'providing\x20'+a1_0x53b251(0x244)+a1_0x53b251(0x214)+a1_0x53b251(0x1bc),'inputSchema':{'fileContent':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)](a1_0x53b251(0x19a)+a1_0x53b251(0x1fb)+'to\x20analyze'),'fileName':z[a1_0x53b251(0x1f6)]()['describe'](a1_0x53b251(0x223))}},async({fileContent:_0x21be26,fileName:_0x3ce19c})=>{const _0x51ebdf=a1_0x53b251;try{logger[_0x51ebdf(0x1c8)](_0x51ebdf(0x26c)+_0x51ebdf(0x299)+_0x51ebdf(0x288)+_0x3ce19c);const _0x48eceb={};_0x48eceb[_0x51ebdf(0x203)+'t']=_0x21be26,_0x48eceb['fileName']=_0x3ce19c;const _0x93595b=await analysisService[_0x51ebdf(0x12f)+'eSecurity'](_0x48eceb),_0x12bb87={};_0x12bb87[_0x51ebdf(0x290)]=_0x51ebdf(0x15d),_0x12bb87[_0x51ebdf(0x15d)]=_0x51ebdf(0x26c)+_0x51ebdf(0x155)+_0x51ebdf(0x159)+_0x51ebdf(0x118)+'ID:\x20'+_0x93595b[_0x51ebdf(0x21a)];const _0xe67c5a={};_0xe67c5a[_0x51ebdf(0x21a)]=_0x93595b[_0x51ebdf(0x21a)],_0xe67c5a[_0x51ebdf(0x207)]=_0x93595b[_0x51ebdf(0x207)];const _0x217ca5={};return _0x217ca5['content']=[_0x12bb87],_0x217ca5[_0x51ebdf(0x1ba)+'Content']=_0xe67c5a,_0x217ca5;}catch(_0xaca54b){logger[_0x51ebdf(0x1d9)](_0x51ebdf(0x1e6)+'ity\x20analys'+_0x51ebdf(0x28f),_0xaca54b);const _0x156045={};_0x156045[_0x51ebdf(0x290)]='text',_0x156045['text']=_0x51ebdf(0x26c)+_0x51ebdf(0x299)+_0x51ebdf(0x218)+_0x51ebdf(0x256)+(_0xaca54b instanceof Error?_0xaca54b['message']:_0x51ebdf(0x260)+_0x51ebdf(0x1c3));const _0x4e1407={};_0x4e1407['error']=_0xaca54b instanceof Error?_0xaca54b[_0x51ebdf(0x191)]:_0x51ebdf(0x260)+'ror';const _0x45ece6={};return _0x45ece6[_0x51ebdf(0x237)]=[_0x156045],_0x45ece6[_0x51ebdf(0x1ba)+_0x51ebdf(0x231)]=_0x4e1407,_0x45ece6;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x169)+a1_0x53b251(0x1d4),{'title':a1_0x53b251(0x1f1)+'is\x20Status','description':a1_0x53b251(0x210)+a1_0x53b251(0x1a0)+'f\x20an\x20analy'+'sis\x20and\x20re'+a1_0x53b251(0x174)+a1_0x53b251(0x21f),'inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)]('Analysis\x20I'+'D')}},async({analysisId:_0x3cc74d})=>{const _0x392a73=a1_0x53b251,_0x2a8200={};_0x2a8200[_0x392a73(0x168)]=_0x392a73(0x24b)+'tatus\x20chec'+_0x392a73(0x166);const _0x506ff0=_0x2a8200;try{logger[_0x392a73(0x1c8)](_0x392a73(0x24b)+_0x392a73(0x190)+_0x392a73(0x25c)+_0x3cc74d);const _0x215741=await analysisService['getAnalysi'+_0x392a73(0x142)](_0x3cc74d),_0x3680d6=_0x215741[_0x392a73(0x207)]===_0x392a73(0x208)&&_0x215741[_0x392a73(0x2a9)]?_0x215741[_0x392a73(0x2a9)]:_0x215741[_0x392a73(0x207)],_0xae9de8={};_0xae9de8['type']=_0x392a73(0x15d),_0xae9de8[_0x392a73(0x15d)]=_0x392a73(0x1e9)+_0x392a73(0x1c1)+_0x3680d6+(_0x392a73(0x1eb)+'\x20')+(_0x215741[_0x392a73(0x257)]||0x0)+(_0x392a73(0x13b)+'\x20')+(_0x215741[_0x392a73(0x191)]||'N/A');const _0x131bba={};_0x131bba[_0x392a73(0x21a)]=_0x3cc74d,_0x131bba[_0x392a73(0x207)]=_0x3680d6,_0x131bba[_0x392a73(0x2a9)]=_0x215741[_0x392a73(0x2a9)],_0x131bba[_0x392a73(0x257)]=_0x215741[_0x392a73(0x257)],_0x131bba['message']=_0x215741['message'];const _0x5cac12={};return _0x5cac12[_0x392a73(0x237)]=[_0xae9de8],_0x5cac12[_0x392a73(0x1ba)+_0x392a73(0x231)]=_0x131bba,_0x5cac12;}catch(_0x1ab9f1){logger[_0x392a73(0x1d9)](_0x506ff0[_0x392a73(0x168)],_0x1ab9f1);const _0x4a5f75={};_0x4a5f75[_0x392a73(0x290)]=_0x392a73(0x15d),_0x4a5f75['text']=_0x392a73(0x120)+'get\x20analys'+'is\x20status:'+'\x20'+(_0x1ab9f1 instanceof Error?_0x1ab9f1[_0x392a73(0x191)]:_0x392a73(0x260)+_0x392a73(0x1c3));const _0x3f1d44={};_0x3f1d44[_0x392a73(0x1d9)]=_0x1ab9f1 instanceof Error?_0x1ab9f1[_0x392a73(0x191)]:'Unknown\x20er'+_0x392a73(0x1c3);const _0x1c0588={};return _0x1c0588[_0x392a73(0x237)]=[_0x4a5f75],_0x1c0588['structured'+_0x392a73(0x231)]=_0x3f1d44,_0x1c0588;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x169)+a1_0x53b251(0x1a6),{'title':a1_0x53b251(0x1f1)+'is\x20Results','description':a1_0x53b251(0x1e3)+a1_0x53b251(0x1ab)+a1_0x53b251(0x269)+a1_0x53b251(0x285)+a1_0x53b251(0x254)+a1_0x53b251(0x15e)+'nerabiliti'+a1_0x53b251(0x27e)+a1_0x53b251(0x133)+'fing.','inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()['describe'](a1_0x53b251(0x1f0)+'D')}},async({analysisId:_0x2ccff5})=>{const _0x5aa869=a1_0x53b251,_0x5eaf87={'YMgSe':function(_0x25cfc0,_0xaa9aa7,_0x25e606){return _0x25cfc0(_0xaa9aa7,_0x25e606);},'RZCSN':'Failed\x20to\x20'+'get\x20analys'+_0x5aa869(0x162)+':'};try{logger['info']('Analysis\x20r'+'esults\x20req'+_0x5aa869(0x182)+_0x2ccff5);const _0xaf5b3a=await analysisService['getAnalysi'+_0x5aa869(0x150)](_0x2ccff5),_0x1c37fb=_0xaf5b3a[_0x5aa869(0x2a9)]??_0xaf5b3a[_0x5aa869(0x207)],_0x2338d7=0x7a120,_0x3665d2=(_0x232594,_0x578393)=>{const _0x46466c=_0x5aa869;if(_0x232594[_0x46466c(0x1a8)]<=_0x578393)return _0x232594;return _0x232594[_0x46466c(0x14f)](0x0,_0x578393)+(_0x46466c(0x1bf)+_0x46466c(0x1d5)+_0x578393+_0x46466c(0x252)+_0x232594[_0x46466c(0x1a8)]+(_0x46466c(0x258)+'s)'));},_0x3dd328=_0xaf5b3a['vulnerabil'+_0x5aa869(0x25a)][_0x5aa869(0x171)]((_0x196bc1,_0x1cc3b5)=>_0x1cc3b5+0x1+_0x5aa869(0x114)+_0x196bc1[_0x5aa869(0x173)]+']\x20'+_0x196bc1['checkerKey']+':\x20'+_0x196bc1[_0x5aa869(0x1b6)+'n'])[_0x5aa869(0x158)]('\x0a'),_0x59d343=(_0x5aa869(0x124)+'y\x20Analysis'+'\x20Results\x0a\x0a'+'##\x20Analysi'+_0x5aa869(0x11d)+_0x5aa869(0x239)+_0x5aa869(0x205)+_0xaf5b3a['analysisId']+('\x0a-\x20Status:'+'\x20')+_0x1c37fb+(_0x5aa869(0x14d)+'\x20')+(_0xaf5b3a[_0x5aa869(0x2a9)]||_0x5aa869(0x282))+(_0x5aa869(0x184)+'bilities\x20F'+_0x5aa869(0x187))+_0xaf5b3a[_0x5aa869(0x164)+_0x5aa869(0x25a)][_0x5aa869(0x1a8)]+('\x0a\x0a##\x20Analy'+_0x5aa869(0x12a)+_0x5aa869(0x18e))+_0x3665d2(_0xaf5b3a[_0x5aa869(0x132)+_0x5aa869(0x286)]||'',_0x2338d7)+('\x0a\x0a##\x20Disco'+_0x5aa869(0x1b9)+'erabilitie'+'s\x0a')+_0x3665d2(_0x3dd328,_0x2338d7)+_0x5aa869(0x1e8))[_0x5aa869(0x14b)](),_0x5366d1={'analysisId':_0xaf5b3a[_0x5aa869(0x21a)],'status':_0x1c37fb,'result':_0xaf5b3a[_0x5aa869(0x2a9)],'vulnerabilities':_0xaf5b3a[_0x5aa869(0x164)+'ities'],'analysisBrief':_0xaf5b3a[_0x5aa869(0x132)+_0x5aa869(0x286)]?_0x5eaf87[_0x5aa869(0x188)](_0x3665d2,_0xaf5b3a['analysisBr'+_0x5aa869(0x286)],_0x2338d7):''},_0x1941a6={};_0x1941a6[_0x5aa869(0x290)]=_0x5aa869(0x15d),_0x1941a6['text']=_0x59d343;const _0x1eed9c={};return _0x1eed9c[_0x5aa869(0x237)]=[_0x1941a6],_0x1eed9c[_0x5aa869(0x1ba)+_0x5aa869(0x231)]=_0x5366d1,_0x1eed9c;}catch(_0x5c4827){logger[_0x5aa869(0x1d9)](_0x5eaf87[_0x5aa869(0x161)],_0x5c4827);const _0x50d1a9=_0x5c4827 instanceof Error?_0x5c4827[_0x5aa869(0x191)]:_0x5aa869(0x260)+_0x5aa869(0x1c3),_0x3e19b4={};_0x3e19b4[_0x5aa869(0x290)]=_0x5aa869(0x15d),_0x3e19b4[_0x5aa869(0x15d)]='Failed\x20to\x20'+'get\x20analys'+_0x5aa869(0x162)+':\x20'+_0x50d1a9;const _0xf82c2a={};_0xf82c2a[_0x5aa869(0x1d9)]=_0x50d1a9;const _0x48651a={};return _0x48651a[_0x5aa869(0x237)]=[_0x3e19b4],_0x48651a[_0x5aa869(0x1ba)+_0x5aa869(0x231)]=_0xf82c2a,_0x48651a[_0x5aa869(0x153)]=!![],_0x48651a;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x1be)+'ecure_code',{'title':a1_0x53b251(0x121)+'ecure\x20Code','description':a1_0x53b251(0x1ee)+a1_0x53b251(0x1b3)+a1_0x53b251(0x19f)+a1_0x53b251(0x20c)+a1_0x53b251(0x2a8)+'quires\x20ana'+a1_0x53b251(0x1fe)+a1_0x53b251(0x15f)+a1_0x53b251(0x115)+a1_0x53b251(0x165),'inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()['describe'](a1_0x53b251(0x1f0)+a1_0x53b251(0x1f5)+'\x20security\x20'+a1_0x53b251(0x280)),'fileContent':z['string']()['describe']('Original\x20f'+a1_0x53b251(0x134)+'t\x20to\x20gener'+a1_0x53b251(0x1b5)+'\x20version')}},async({analysisId:_0x4084d0,fileContent:_0x10cfa5})=>{const _0xdcd234=a1_0x53b251,_0x48f2c5={'ceaHu':function(_0x27626f,_0x495eab){return _0x27626f+_0x495eab;},'dzKIy':function(_0x2fdb7e,_0x3fe03c,_0x353d61){return _0x2fdb7e(_0x3fe03c,_0x353d61);},'OHKkJ':'text'};try{logger[_0xdcd234(0x1c8)]('Secure\x20cod'+'e\x20generati'+_0xdcd234(0x122)+_0xdcd234(0x256)+_0x4084d0);const _0x1671ae=await analysisService[_0xdcd234(0x116)+_0xdcd234(0x151)+_0xdcd234(0x1ef)](_0x4084d0,_0x10cfa5),_0xf47c59=0x7a120,_0x2d5956=(_0x2a7c02,_0x2bc3ff)=>{const _0x3a70ce=_0xdcd234;if(_0x2a7c02['length']<=_0x2bc3ff)return _0x2a7c02;return _0x48f2c5[_0x3a70ce(0x15b)](_0x2a7c02['substring'](0x0,_0x2bc3ff),_0x3a70ce(0x1bf)+_0x3a70ce(0x1d5)+_0x2bc3ff+_0x3a70ce(0x252)+_0x2a7c02[_0x3a70ce(0x1a8)]+(_0x3a70ce(0x258)+'s)'));},_0x5869b3=(_0xdcd234(0x1c5)+_0xdcd234(0x147)+'ation\x20Resu'+_0xdcd234(0x1c7)+_0xdcd234(0x146)+_0xdcd234(0x217)+_0x2d5956(_0x1671ae['secureCode'],_0xf47c59)+(_0xdcd234(0x139)+_0xdcd234(0x178)+_0xdcd234(0x1a2))+_0x2d5956(_0x1671ae[_0xdcd234(0x20e)+'Brief'],_0xf47c59)+('\x0a\x0a##\x20Code\x20'+_0xdcd234(0x1ca)+_0xdcd234(0x2ac)+_0xdcd234(0x219))+_0x48f2c5[_0xdcd234(0x22e)](_0x2d5956,_0x1671ae[_0xdcd234(0x289)],_0xf47c59)+('\x0a```\x0a\x20\x20\x20\x20\x20'+'\x20'))['trim'](),_0xeda514={'analysisId':_0x4084d0,'secureCode':_0x48f2c5[_0xdcd234(0x22e)](_0x2d5956,_0x1671ae[_0xdcd234(0x20e)],_0xf47c59),'secureCodeBrief':_0x2d5956(_0x1671ae[_0xdcd234(0x20e)+_0xdcd234(0x26a)],_0xf47c59),'diff':_0x2d5956(_0x1671ae['diff'],_0xf47c59)},_0x59e669={};_0x59e669[_0xdcd234(0x290)]=_0x48f2c5['OHKkJ'],_0x59e669[_0xdcd234(0x15d)]=_0x5869b3;const _0x286f78={};return _0x286f78[_0xdcd234(0x237)]=[_0x59e669],_0x286f78[_0xdcd234(0x1ba)+_0xdcd234(0x231)]=_0xeda514,_0x286f78;}catch(_0x124978){logger[_0xdcd234(0x1d9)](_0xdcd234(0x120)+'generate\x20s'+_0xdcd234(0x1b3)+':',_0x124978);const _0x146f8e=_0x124978 instanceof Error?_0x124978[_0xdcd234(0x191)]:_0xdcd234(0x260)+_0xdcd234(0x1c3),_0x50181d={};_0x50181d[_0xdcd234(0x290)]=_0xdcd234(0x15d),_0x50181d[_0xdcd234(0x15d)]=_0xdcd234(0x120)+_0xdcd234(0x196)+_0xdcd234(0x1b3)+':\x20'+_0x146f8e;const _0x5d610e={};_0x5d610e[_0xdcd234(0x1d9)]=_0x146f8e;const _0x428c48={};return _0x428c48[_0xdcd234(0x237)]=[_0x50181d],_0x428c48[_0xdcd234(0x1ba)+'Content']=_0x5d610e,_0x428c48[_0xdcd234(0x153)]=!![],_0x428c48;}}),server['registerTo'+'ol'](a1_0x53b251(0x23b)+'les_securi'+'ty',{'title':a1_0x53b251(0x18d)+'\x20Security\x20'+a1_0x53b251(0x266),'description':a1_0x53b251(0x23e)+a1_0x53b251(0x20a)+a1_0x53b251(0x14c)+a1_0x53b251(0x131)+a1_0x53b251(0x2a5)+a1_0x53b251(0x284)+a1_0x53b251(0x18a)+a1_0x53b251(0x24e)+'alysis.\x20Al'+a1_0x53b251(0x24c)+a1_0x53b251(0x199)+a1_0x53b251(0x1bb)+'is.','inputSchema':{'filePaths':z[a1_0x53b251(0x1f8)](z['string']())[a1_0x53b251(0x11c)](a1_0x53b251(0x24d)+'le\x20paths\x20t'+a1_0x53b251(0x140)+a1_0x53b251(0x17a)+'paths\x20or\x20r'+a1_0x53b251(0x1bd)+'\x20current\x20w'+'orking\x20dir'+a1_0x53b251(0x273)),'zipFileName':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x23c)]()['describe'](a1_0x53b251(0x183)+'e\x20ZIP\x20file'+a1_0x53b251(0x28e)+a1_0x53b251(0x172)+a1_0x53b251(0x21b))}},async({filePaths:_0x34eb3f,zipFileName:_0x5ecefa})=>{const _0x591fba=a1_0x53b251,_0x3c3e66={};_0x3c3e66[_0x591fba(0x20b)]='Unknown\x20er'+_0x591fba(0x1c3);const _0x5c20d5=_0x3c3e66;try{if(!_0x34eb3f||_0x34eb3f[_0x591fba(0x1a8)]===0x0){const _0x1e89c8={};_0x1e89c8[_0x591fba(0x290)]='text',_0x1e89c8[_0x591fba(0x15d)]='No\x20files\x20t'+_0x591fba(0x281)+'\x20The\x20fileP'+_0x591fba(0x25d)+_0x591fba(0x27a)+_0x591fba(0x152)+_0x591fba(0x235)+'th.';const _0x3de928={};_0x3de928[_0x591fba(0x1d9)]='File\x20paths'+_0x591fba(0x227)+_0x591fba(0x247);const _0x468023={};return _0x468023[_0x591fba(0x237)]=[_0x1e89c8],_0x468023['structured'+'Content']=_0x3de928,_0x468023;}logger[_0x591fba(0x1c8)](_0x591fba(0x292)+_0x591fba(0x11b)+_0x591fba(0x20c)+_0x591fba(0x276)+_0x34eb3f[_0x591fba(0x1a8)]+(_0x591fba(0x137)+'s'));const _0x1cb279=await analysisService[_0x591fba(0x1e5)+'tipleFiles'+_0x591fba(0x26f)](_0x34eb3f,_0x5ecefa),_0x4b7d0a=_0x591fba(0x26c)+_0x591fba(0x155)+_0x591fba(0x159)+'\x0aNumber\x20of'+'\x20file\x20path'+_0x591fba(0x1c0)+_0x34eb3f[_0x591fba(0x1a8)]+(_0x591fba(0x118)+'ID:\x20')+_0x1cb279['analysisId']+_0x591fba(0x143)+_0x1cb279['status'],_0x1a0aff={};_0x1a0aff[_0x591fba(0x290)]='text',_0x1a0aff[_0x591fba(0x15d)]=_0x4b7d0a;const _0x5e169a={};_0x5e169a[_0x591fba(0x21a)]=_0x1cb279[_0x591fba(0x21a)],_0x5e169a[_0x591fba(0x207)]=_0x1cb279[_0x591fba(0x207)],_0x5e169a['filePathCo'+_0x591fba(0x119)]=_0x34eb3f[_0x591fba(0x1a8)];const _0x4bd7a4={};return _0x4bd7a4[_0x591fba(0x237)]=[_0x1a0aff],_0x4bd7a4['structured'+_0x591fba(0x231)]=_0x5e169a,_0x4bd7a4;}catch(_0x252e73){logger[_0x591fba(0x1d9)](_0x591fba(0x292)+_0x591fba(0x11b)+_0x591fba(0x16b)+_0x591fba(0x1d7),_0x252e73);const _0x46b901={};_0x46b901[_0x591fba(0x290)]=_0x591fba(0x15d),_0x46b901[_0x591fba(0x15d)]=_0x591fba(0x26c)+_0x591fba(0x299)+_0x591fba(0x218)+'ed:\x20'+(_0x252e73 instanceof Error?_0x252e73[_0x591fba(0x191)]:_0x591fba(0x260)+'ror');const _0x4f0f3={};_0x4f0f3[_0x591fba(0x1d9)]=_0x252e73 instanceof Error?_0x252e73[_0x591fba(0x191)]:_0x5c20d5[_0x591fba(0x20b)];const _0x55e13f={};return _0x55e13f[_0x591fba(0x237)]=[_0x46b901],_0x55e13f[_0x591fba(0x1ba)+_0x591fba(0x231)]=_0x4f0f3,_0x55e13f;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x1b7)+a1_0x53b251(0x242),{'title':a1_0x53b251(0x1d8)+a1_0x53b251(0x179)+a1_0x53b251(0x234),'description':a1_0x53b251(0x2a7)+a1_0x53b251(0x19b)+a1_0x53b251(0x11f)+a1_0x53b251(0x1c4)+a1_0x53b251(0x11b)+a1_0x53b251(0x241),'inputSchema':{'zipFilePath':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)](a1_0x53b251(0x17f)+a1_0x53b251(0x125)+a1_0x53b251(0x253)+a1_0x53b251(0x12c)+a1_0x53b251(0x200)+'relative\x20t'+a1_0x53b251(0x246)+a1_0x53b251(0x135)+'rectory)'),'zipFileName':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x23c)]()[a1_0x53b251(0x11c)](a1_0x53b251(0x192)+a1_0x53b251(0x22f)+a1_0x53b251(0x186)+a1_0x53b251(0x180)+a1_0x53b251(0x298)+'l\x20filename'+a1_0x53b251(0x232)+a1_0x53b251(0x23a))}},async({zipFilePath:_0x23ee5f,zipFileName:_0x18933f})=>{const _0x3c6c6e=a1_0x53b251,_0x8df52e={};_0x8df52e[_0x3c6c6e(0x16f)]=_0x3c6c6e(0x260)+_0x3c6c6e(0x1c3),_0x8df52e[_0x3c6c6e(0x1e7)]=function(_0x5c8489,_0x1b1e67){return _0x5c8489 instanceof _0x1b1e67;};const _0x518a82=_0x8df52e;try{if(!_0x23ee5f||_0x23ee5f[_0x3c6c6e(0x14b)]()[_0x3c6c6e(0x1a8)]===0x0){const _0x157502={};_0x157502[_0x3c6c6e(0x290)]='text',_0x157502[_0x3c6c6e(0x15d)]=_0x3c6c6e(0x127)+_0x3c6c6e(0x212)+_0x3c6c6e(0x224);const _0x410bd0={};_0x410bd0[_0x3c6c6e(0x1d9)]=_0x3c6c6e(0x127)+_0x3c6c6e(0x212)+_0x3c6c6e(0x240);const _0x262980={};return _0x262980[_0x3c6c6e(0x237)]=[_0x157502],_0x262980['structured'+_0x3c6c6e(0x231)]=_0x410bd0,_0x262980;}logger['info'](_0x3c6c6e(0x261)+_0x3c6c6e(0x24e)+_0x3c6c6e(0x213)+_0x3c6c6e(0x182)+_0x23ee5f);const _0x489502=await analysisService[_0x3c6c6e(0x14e)+_0x3c6c6e(0x16d)](_0x23ee5f,_0x18933f),_0x4c4fc5='Security\x20a'+_0x3c6c6e(0x155)+_0x3c6c6e(0x159)+_0x3c6c6e(0x1f9)+'\x20'+_0x23ee5f+('\x0aAnalysis\x20'+_0x3c6c6e(0x13d))+_0x489502[_0x3c6c6e(0x21a)]+_0x3c6c6e(0x143)+_0x489502[_0x3c6c6e(0x207)],_0x527af4={};_0x527af4[_0x3c6c6e(0x290)]=_0x3c6c6e(0x15d),_0x527af4[_0x3c6c6e(0x15d)]=_0x4c4fc5;const _0x5b0f11={};_0x5b0f11[_0x3c6c6e(0x21a)]=_0x489502[_0x3c6c6e(0x21a)],_0x5b0f11['status']=_0x489502[_0x3c6c6e(0x207)],_0x5b0f11[_0x3c6c6e(0x287)+'h']=_0x23ee5f;const _0x4e5a75={};return _0x4e5a75[_0x3c6c6e(0x237)]=[_0x527af4],_0x4e5a75['structured'+_0x3c6c6e(0x231)]=_0x5b0f11,_0x4e5a75;}catch(_0x11c418){logger[_0x3c6c6e(0x1d9)](_0x3c6c6e(0x261)+'ecurity\x20an'+'alysis\x20fai'+'led:',_0x11c418);const _0x4faca8={};return _0x4faca8[_0x3c6c6e(0x290)]='text',_0x4faca8[_0x3c6c6e(0x15d)]=_0x3c6c6e(0x26c)+'nalysis\x20re'+_0x3c6c6e(0x218)+_0x3c6c6e(0x256)+(_0x11c418 instanceof Error?_0x11c418[_0x3c6c6e(0x191)]:_0x518a82['PAPjR']),{'content':[_0x4faca8],'structuredContent':{'error':_0x518a82[_0x3c6c6e(0x1e7)](_0x11c418,Error)?_0x11c418['message']:'Unknown\x20er'+_0x3c6c6e(0x1c3)}};}}),server['registerTo'+'ol'](a1_0x53b251(0x1f2)+a1_0x53b251(0x1cf)+a1_0x53b251(0x11e),{'title':a1_0x53b251(0x26b)+a1_0x53b251(0x23d)+a1_0x53b251(0x236),'description':a1_0x53b251(0x1dd)+a1_0x53b251(0x24f)+a1_0x53b251(0x17b)+a1_0x53b251(0x267)+a1_0x53b251(0x1cd)+a1_0x53b251(0x271)+'ty\x20analysi'+'s.','inputSchema':{'folderPath':z['string']()[a1_0x53b251(0x11c)](a1_0x53b251(0x17f)+a1_0x53b251(0x167)+a1_0x53b251(0x140)+a1_0x53b251(0x17a)+a1_0x53b251(0x1d1)+'lative\x20to\x20'+a1_0x53b251(0x128)+a1_0x53b251(0x1ed)+a1_0x53b251(0x123)),'zipFileName':z[a1_0x53b251(0x1f6)]()['optional']()['describe']('Name\x20of\x20th'+'e\x20ZIP\x20file'+a1_0x53b251(0x28e)+'ated\x20(opti'+a1_0x53b251(0x277)+a1_0x53b251(0x26d)+'me\x20if\x20not\x20'+a1_0x53b251(0x112))}},async({folderPath:_0x5cc3bd,zipFileName:_0x23ecb4})=>{const _0x1342d1=a1_0x53b251,_0x4c31ec={};_0x4c31ec[_0x1342d1(0x175)]=_0x1342d1(0x15d),_0x4c31ec['qkjwx']=_0x1342d1(0x19e)+_0x1342d1(0x21c)+_0x1342d1(0x28c);const _0xa696e5=_0x4c31ec;try{if(!_0x5cc3bd||_0x5cc3bd['trim']()[_0x1342d1(0x1a8)]===0x0){const _0x563c68={};_0x563c68[_0x1342d1(0x290)]=_0xa696e5[_0x1342d1(0x175)],_0x563c68['text']=_0x1342d1(0x19e)+_0x1342d1(0x21c)+'ided.';const _0x3dd867={};_0x3dd867['error']=_0xa696e5[_0x1342d1(0x1c2)];const _0x245615={};return _0x245615[_0x1342d1(0x237)]=[_0x563c68],_0x245615[_0x1342d1(0x1ba)+_0x1342d1(0x231)]=_0x3dd867,_0x245615;}logger[_0x1342d1(0x1c8)](_0x1342d1(0x238)+'urity\x20anal'+_0x1342d1(0x283)+_0x1342d1(0x225)+_0x5cc3bd);const _0x29e8b4=await analysisService[_0x1342d1(0x297)+_0x1342d1(0x113)](_0x5cc3bd,_0x23ecb4),_0x455c60=_0x1342d1(0x26c)+_0x1342d1(0x155)+_0x1342d1(0x159)+_0x1342d1(0x141)+_0x5cc3bd+(_0x1342d1(0x118)+_0x1342d1(0x13d))+_0x29e8b4[_0x1342d1(0x21a)]+_0x1342d1(0x143)+_0x29e8b4[_0x1342d1(0x207)],_0x1b1f9a={};_0x1b1f9a[_0x1342d1(0x290)]=_0xa696e5[_0x1342d1(0x175)],_0x1b1f9a[_0x1342d1(0x15d)]=_0x455c60;const _0x1615b1={};_0x1615b1[_0x1342d1(0x21a)]=_0x29e8b4[_0x1342d1(0x21a)],_0x1615b1[_0x1342d1(0x207)]=_0x29e8b4[_0x1342d1(0x207)],_0x1615b1[_0x1342d1(0x13e)]=_0x5cc3bd;const _0x28836d={};return _0x28836d[_0x1342d1(0x237)]=[_0x1b1f9a],_0x28836d[_0x1342d1(0x1ba)+_0x1342d1(0x231)]=_0x1615b1,_0x28836d;}catch(_0xc03a5a){logger[_0x1342d1(0x1d9)]('Folder\x20sec'+_0x1342d1(0x136)+_0x1342d1(0x17c)+'d:',_0xc03a5a);const _0x27d80f={};_0x27d80f['type']=_0x1342d1(0x15d),_0x27d80f[_0x1342d1(0x15d)]=_0x1342d1(0x26c)+_0x1342d1(0x299)+'quest\x20fail'+_0x1342d1(0x256)+(_0xc03a5a instanceof Error?_0xc03a5a[_0x1342d1(0x191)]:_0x1342d1(0x260)+'ror');const _0x4f7aae={};_0x4f7aae['error']=_0xc03a5a instanceof Error?_0xc03a5a['message']:_0x1342d1(0x260)+_0x1342d1(0x1c3);const _0xae198={};return _0xae198[_0x1342d1(0x237)]=[_0x27d80f],_0xae198['structured'+_0x1342d1(0x231)]=_0x4f7aae,_0xae198;}}),server[a1_0x53b251(0x1b2)+'ol'](a1_0x53b251(0x1df)+'ysis_progr'+a1_0x53b251(0x18c),{'title':a1_0x53b251(0x1a4)+a1_0x53b251(0x295)+a1_0x53b251(0x18c),'description':a1_0x53b251(0x1dc)+a1_0x53b251(0x189)+a1_0x53b251(0x222)+'ogress\x20by\x20'+'analysis\x20I'+a1_0x53b251(0x13f)+a1_0x53b251(0x1f3)+'gress\x20Noti'+'fication.\x20'+a1_0x53b251(0x24b)+a1_0x53b251(0x29d)+a1_0x53b251(0x2a1)+'Y,\x20PRE_PRO'+'CESS,\x20ANAL'+a1_0x53b251(0x17d)+a1_0x53b251(0x211)+a1_0x53b251(0x29a)+a1_0x53b251(0x1d3)+a1_0x53b251(0x291)+'vided\x20duri'+'ng\x20the\x20ANA'+a1_0x53b251(0x20d)+'e.','inputSchema':{'analysisId':z[a1_0x53b251(0x1f6)]()[a1_0x53b251(0x11c)]('Analysis\x20I'+'D'),'intervalMs':z[a1_0x53b251(0x1d6)]()['optional']()['describe']('Status\x20che'+a1_0x53b251(0x215)+'l\x20in\x20milli'+a1_0x53b251(0x264)+a1_0x53b251(0x22a)+a1_0x53b251(0x1b1))}},async({analysisId:_0x5e681b,intervalMs:intervalMs=0xbb8},_0x28d889)=>{const _0x1dd87b=a1_0x53b251,_0xb6c722={'FlbgH':_0x1dd87b(0x2a2)+_0x1dd87b(0x296)+'\x20to\x20start.','vAUHk':_0x1dd87b(0x274)+'sing...','uYnye':'FAIL','hBJSv':function(_0x4532b0,_0x8008a9){return _0x4532b0(_0x8008a9);},'LXtiG':'COMPLETE','EpKZD':function(_0x40923a,_0x1d0fce){return _0x40923a(_0x1d0fce);},'PUxot':function(_0x403d06,_0xabd58d){return _0x403d06 instanceof _0xabd58d;}};try{const _0x5ce041=_0x28d889[_0x1dd87b(0x206)]?.[_0x1dd87b(0x16c)+'ken'];if(!_0x5ce041){const _0x36b553={};_0x36b553[_0x1dd87b(0x290)]=_0x1dd87b(0x15d),_0x36b553[_0x1dd87b(0x15d)]='Progress\x20T'+'oken\x20not\x20p'+'rovided.\x20T'+'he\x20client\x20'+_0x1dd87b(0x248)+'rt\x20progres'+'s\x20tracking'+'.';const _0x40eacf={};_0x40eacf[_0x1dd87b(0x1d9)]=_0x1dd87b(0x221)+_0x1dd87b(0x19c)+_0x1dd87b(0x1fc);const _0x398fdd={};return _0x398fdd[_0x1dd87b(0x237)]=[_0x36b553],_0x398fdd[_0x1dd87b(0x1ba)+_0x1dd87b(0x231)]=_0x40eacf,_0x398fdd;}logger['info'](_0x1dd87b(0x1e2)+_0x1dd87b(0x28d)+_0x1dd87b(0x185)+_0x1dd87b(0x1a5)+_0x5e681b);const _0x46bb7e={};_0x46bb7e['id']=_0x1dd87b(0x18f),_0x46bb7e[_0x1dd87b(0x1aa)]='Initializa'+_0x1dd87b(0x1c9),_0x46bb7e[_0x1dd87b(0x1b6)+'n']=_0xb6c722['FlbgH'],_0x46bb7e[_0x1dd87b(0x257)]=null,_0x46bb7e[_0x1dd87b(0x216)]=0x1;const _0x4eb497={};_0x4eb497['id']='READY',_0x4eb497[_0x1dd87b(0x1aa)]=_0x1dd87b(0x1e4),_0x4eb497[_0x1dd87b(0x1b6)+'n']=_0x1dd87b(0x265)+_0x1dd87b(0x293)+_0x1dd87b(0x1af),_0x4eb497[_0x1dd87b(0x257)]=null,_0x4eb497[_0x1dd87b(0x216)]=0x2;const _0x3500fe={};_0x3500fe['id']='PRE_PROCES'+'S',_0x3500fe[_0x1dd87b(0x1b6)+'n']=_0xb6c722[_0x1dd87b(0x1a9)],_0x3500fe[_0x1dd87b(0x1aa)]='Pre-proces'+_0x1dd87b(0x251),_0x3500fe[_0x1dd87b(0x257)]=null,_0x3500fe[_0x1dd87b(0x216)]=0x3;const _0x3b8d85={};_0x3b8d85['id']=_0x1dd87b(0x1a7),_0x3b8d85['descriptio'+'n']=_0x1dd87b(0x25e)+'n\x20progress'+'...',_0x3b8d85[_0x1dd87b(0x1aa)]='Analysis',_0x3b8d85[_0x1dd87b(0x257)]=0x0,_0x3b8d85[_0x1dd87b(0x216)]=0x4;const _0x40e943={};_0x40e943['id']=_0x1dd87b(0x24a)+'SS',_0x40e943[_0x1dd87b(0x1b6)+'n']=_0x1dd87b(0x2a0)+_0x1dd87b(0x230),_0x40e943['name']=_0x1dd87b(0x2a0)+'ssing',_0x40e943['progress']=null,_0x40e943[_0x1dd87b(0x216)]=0x5;const _0xb7f6d9={};_0xb7f6d9['id']=_0x1dd87b(0x208),_0xb7f6d9[_0x1dd87b(0x1b6)+'n']='Analysis\x20c'+'ompleted\x20s'+'uccessfull'+'y.',_0xb7f6d9[_0x1dd87b(0x1aa)]=_0x1dd87b(0x228),_0xb7f6d9['progress']=0x64,_0xb7f6d9[_0x1dd87b(0x216)]=0x6;const _0xebce74={};_0xebce74[_0x1dd87b(0x18f)]=_0x46bb7e,_0xebce74[_0x1dd87b(0x268)]=_0x4eb497,_0xebce74[_0x1dd87b(0x13c)+'S']=_0x3500fe,_0xebce74[_0x1dd87b(0x1a7)]=_0x3b8d85,_0xebce74[_0x1dd87b(0x24a)+'SS']=_0x40e943,_0xebce74[_0x1dd87b(0x208)]=_0xb7f6d9;const _0x2e8bf3=_0xebce74;let _0x28d1f8=Object[_0x1dd87b(0x1f4)](_0x2e8bf3)['length'],_0x94f969=null,_0x30ff60=0x0,_0x1ffb37=!![];const _0x2cae04=async _0x3f9045=>{const _0xc2e725=_0x1dd87b;if(!_0x1ffb37)return![];try{return await _0x28d889[_0xc2e725(0x21d)+_0xc2e725(0x1de)](_0x3f9045),!![];}catch(_0xe4a3c6){const _0x14923f=_0xe4a3c6 instanceof Error?_0xe4a3c6[_0xc2e725(0x191)]:_0xc2e725(0x260)+_0xc2e725(0x1c3);return _0x14923f['includes'](_0xc2e725(0x193)+_0xc2e725(0x1ac))||_0x14923f[_0xc2e725(0x181)](_0xc2e725(0x250)+_0xc2e725(0x1ac))||_0x14923f[_0xc2e725(0x181)]('expired\x20to'+_0xc2e725(0x1ac))||_0x14923f[_0xc2e725(0x279)+'e']()[_0xc2e725(0x181)](_0xc2e725(0x198))?(_0x1ffb37=![],logger[_0xc2e725(0x12b)]('Progress\x20t'+_0xc2e725(0x15a)+'\x20longer\x20va'+_0xc2e725(0x26e)+'ing\x20progre'+_0xc2e725(0x18b)+_0xc2e725(0x156)+_0x14923f)):logger[_0xc2e725(0x12b)](_0xc2e725(0x25b)+_0xc2e725(0x1fa)+_0xc2e725(0x226)+_0xc2e725(0x2a3)+_0xc2e725(0x1da)+_0x14923f),![];}};while(!![]){try{const _0x26fcc4=await analysisService['getAnalysi'+_0x1dd87b(0x142)](_0x5e681b),_0x37b90a=String(_0x26fcc4[_0x1dd87b(0x207)])[_0x1dd87b(0x294)+'e'](),_0x1ed765=String(_0x26fcc4[_0x1dd87b(0x207)])[_0x1dd87b(0x294)+'e'](),_0x502292=_0x1ed765===_0x1dd87b(0x208)&&_0x26fcc4['result']?String(_0x26fcc4['result'])[_0x1dd87b(0x294)+'e']():_0x37b90a;if(_0x94f969!==_0x37b90a){_0x94f969=_0x37b90a;if(_0x1ed765===_0x1dd87b(0x208)||_0x37b90a===_0xb6c722['uYnye']||_0x37b90a===_0x1dd87b(0x1fd)){let _0xe215dd,_0x32cedd;if(_0x1ed765===_0x1dd87b(0x208)){const _0x37047a=_0x26fcc4[_0x1dd87b(0x2a9)]?_0xb6c722[_0x1dd87b(0x195)](String,_0x26fcc4['result'])[_0x1dd87b(0x294)+'e']():undefined;_0x32cedd=_0x37047a||_0xb6c722[_0x1dd87b(0x27d)];if(_0x37047a===_0x1dd87b(0x145))_0xe215dd=_0x1dd87b(0x170)+_0x1dd87b(0x233)+'ompleted\x20s'+_0x1dd87b(0x148)+'y.';else{if(_0x37047a===_0x1dd87b(0x262))_0xe215dd=_0x1dd87b(0x2a6)+_0x1dd87b(0x1a3)+'ed\x20to\x20comp'+_0x1dd87b(0x259)+_0x1dd87b(0x12e);else _0x37047a===_0x1dd87b(0x177)?_0xe215dd=_0x1dd87b(0x16a)+'lysis\x20was\x20'+'stopped\x20by'+_0x1dd87b(0x1d2):(_0xe215dd=_0x1dd87b(0x1b4)+_0x1dd87b(0x202)+'completed.',_0x32cedd=_0x1dd87b(0x208));}}else _0xe215dd='['+_0x37b90a+(_0x1dd87b(0x22c)+_0x1dd87b(0x1e0)),_0x32cedd=_0x37b90a;const _0x4f8255={'method':_0x1dd87b(0x220)+_0x1dd87b(0x1db)+'ss','params':{'progressToken':typeof _0x5ce041===_0x1dd87b(0x1f6)?_0x5ce041:String(_0x5ce041),'progress':_0x37b90a===_0x1dd87b(0x208)?0x64:0x0,'message':_0xe215dd,'total':0x64}};await _0x2cae04(_0x4f8255);_0x1ed765===_0x1dd87b(0x208)?logger[_0x1dd87b(0x1c8)]('Final\x20anal'+'ysis\x20statu'+_0x1dd87b(0x27c)+'\x20'+_0x32cedd):logger['info']('Analysis\x20f'+_0x1dd87b(0x21e)+_0x1dd87b(0x149)+_0x32cedd);const _0x239f4d={};_0x239f4d[_0x1dd87b(0x290)]=_0x1dd87b(0x15d),_0x239f4d['text']=_0x1dd87b(0x233)+_0x1dd87b(0x1b0)+_0x1dd87b(0x1f0)+_0x1dd87b(0x176)+_0x5e681b+(_0x1dd87b(0x22b)+_0x1dd87b(0x154))+_0x32cedd;const _0x3ee3ad={};_0x3ee3ad['analysisId']=_0x5e681b,_0x3ee3ad[_0x1dd87b(0x207)]=_0x32cedd,_0x3ee3ad[_0x1dd87b(0x2a9)]=_0x26fcc4[_0x1dd87b(0x2a9)],_0x3ee3ad['completed']=!![];const _0x2ffbe2={};return _0x2ffbe2[_0x1dd87b(0x237)]=[_0x239f4d],_0x2ffbe2['structured'+_0x1dd87b(0x231)]=_0x3ee3ad,_0x2ffbe2;}const _0x3003ce=_0x2e8bf3[_0x37b90a];if(_0x3003ce){const _0x550852={};_0x550852[_0x1dd87b(0x129)]=0x64;const _0x587f77={'method':'notificati'+'ons/progre'+'ss','params':{'progressToken':typeof _0x5ce041===_0x1dd87b(0x1f6)?_0x5ce041:String(_0x5ce041),'progress':_0x3003ce[_0x1dd87b(0x257)]!==null?_0x3003ce[_0x1dd87b(0x257)]:_0x37b90a===_0x1dd87b(0x1a7)?_0x30ff60:_0x3003ce[_0x1dd87b(0x216)],'message':'['+_0x3003ce['id']+']\x20'+_0x3003ce[_0x1dd87b(0x1b6)+'n'],'total':_0x28d1f8,..._0x3003ce[_0x1dd87b(0x257)]!==null&&_0x37b90a===_0x1dd87b(0x1a7)&&_0x550852}};await _0x2cae04(_0x587f77),_0x1ffb37&&logger[_0x1dd87b(0x1c8)](_0x1dd87b(0x24b)+_0x1dd87b(0x1b8)+_0x1dd87b(0x29c)+_0x3003ce['id']+'\x20('+_0x3003ce['name']+')');}else{const _0x5216b1={'method':'notificati'+'ons/progre'+'ss','params':{'progressToken':typeof _0x5ce041==='string'?_0x5ce041:_0xb6c722[_0x1dd87b(0x1d0)](String,_0x5ce041),'progress':0x1,'total':0x1,'message':'['+_0x37b90a+(_0x1dd87b(0x22c)+_0x1dd87b(0x27b)+_0x1dd87b(0x272))}};await _0x2cae04(_0x5216b1);}}else{if(_0x37b90a==='ANALYSIS'){if(_0x26fcc4[_0x1dd87b(0x257)]!==undefined&&_0x26fcc4[_0x1dd87b(0x257)]!==null){_0x30ff60=_0x26fcc4['progress'];const _0x3c0bf1=_0x2e8bf3[_0x37b90a],_0x56dea3={'method':_0x1dd87b(0x220)+'ons/progre'+'ss','params':{'progressToken':typeof _0x5ce041===_0x1dd87b(0x1f6)?_0x5ce041:String(_0x5ce041),'progress':_0x3c0bf1[_0x1dd87b(0x216)],'total':_0x28d1f8,'message':'[ANALYSIS]'+_0x1dd87b(0x202)+_0x1dd87b(0x249)+'s:\x20'+_0x30ff60+'%'}};await _0x2cae04(_0x56dea3);}}}!_0x1ffb37&&logger[_0x1dd87b(0x1c8)](_0x1dd87b(0x22d)+'oken\x20is\x20in'+'valid,\x20con'+'tinuing\x20st'+_0x1dd87b(0x28b)+_0x1dd87b(0x20f)+_0x1dd87b(0x220)+_0x1dd87b(0x278)),await new Promise(_0x584d43=>setTimeout(_0x584d43,intervalMs));}catch(_0x2d7164){logger[_0x1dd87b(0x1d9)](_0x1dd87b(0x163)+_0x1dd87b(0x1ae)+_0x1dd87b(0x2aa)+'\x20('+_0x5e681b+'):',_0x2d7164),await new Promise(_0x3c1dbd=>setTimeout(_0x3c1dbd,intervalMs));}}}catch(_0x4f6da5){logger[_0x1dd87b(0x1d9)](_0x1dd87b(0x1e2)+_0x1dd87b(0x28d)+'acking\x20fai'+_0x1dd87b(0x1ea),_0x4f6da5);const _0x2a10cd={};return _0x2a10cd[_0x1dd87b(0x290)]='text',_0x2a10cd[_0x1dd87b(0x15d)]=_0x1dd87b(0x1e2)+_0x1dd87b(0x28d)+_0x1dd87b(0x27f)+_0x1dd87b(0x1c6)+(_0x4f6da5 instanceof Error?_0x4f6da5[_0x1dd87b(0x191)]:_0x1dd87b(0x260)+_0x1dd87b(0x1c3)),{'content':[_0x2a10cd],'structuredContent':{'error':_0xb6c722[_0x1dd87b(0x255)](_0x4f6da5,Error)?_0x4f6da5['message']:_0x1dd87b(0x260)+_0x1dd87b(0x1c3)},'isError':!![]};}});const transport=new StdioServerTransport();logger[a1_0x53b251(0x1c8)](a1_0x53b251(0x138)+'\x20code\x20gene'+a1_0x53b251(0x1f7)+a1_0x53b251(0x29e)+'d');try{const serverFileDir=a1_0x110f13[a1_0x53b251(0x1e1)](fileURLToPath(import.meta.url)),projectRoot=a1_0x110f13[a1_0x53b251(0x201)](serverFileDir,'..'),logsDir=a1_0x110f13[a1_0x53b251(0x201)](projectRoot,a1_0x53b251(0x270));if(!a1_0x14d714[a1_0x53b251(0x197)](logsDir)){const a1_0x456611={};a1_0x456611[a1_0x53b251(0x144)]=!![],a1_0x14d714[a1_0x53b251(0x29b)](logsDir,a1_0x456611);}const combinedPath=a1_0x110f13[a1_0x53b251(0x158)](logsDir,a1_0x53b251(0x243)+'og'),errorPath=a1_0x110f13[a1_0x53b251(0x158)](logsDir,a1_0x53b251(0x1cc));logger[a1_0x53b251(0x1c8)](a1_0x53b251(0x117)+a1_0x53b251(0x1ff)+a1_0x53b251(0x1a1)+'\x20'+combinedPath+a1_0x53b251(0x245)+errorPath);}catch(a1_0x52e40b){logger[a1_0x53b251(0x12b)](a1_0x53b251(0x263)+a1_0x53b251(0x1cb)+'ng/creatin'+a1_0x53b251(0x29f)+a1_0x53b251(0x15c),a1_0x52e40b);}await server[a1_0x53b251(0x2a4)](transport);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a2_0x38f06d=a2_0xba1c;(function(_0x1040bb,_0x3b3ed2){const _0x78eb04=a2_0xba1c,_0x1e0b81=_0x1040bb();while(!![]){try{const _0x25f1f0=-parseInt(_0x78eb04(0x11c))/0x1+parseInt(_0x78eb04(0x126))/0x2+-parseInt(_0x78eb04(0x17f))/0x3+-parseInt(_0x78eb04(0x186))/0x4+parseInt(_0x78eb04(0xdc))/0x5+parseInt(_0x78eb04(0x141))/0x6+-parseInt(_0x78eb04(0x146))/0x7*(-parseInt(_0x78eb04(0xea))/0x8);if(_0x25f1f0===_0x3b3ed2)break;else _0x1e0b81['push'](_0x1e0b81['shift']());}catch(_0x29f490){_0x1e0b81['push'](_0x1e0b81['shift']());}}}(a2_0x39d5,0x9ea38));const a2_0x4024d6=(function(){let _0x439f0a=!![];return function(_0x475c27,_0x31a78e){const _0x1e9bbc=_0x439f0a?function(){const _0x52f9c7=a2_0xba1c;if(_0x31a78e){const _0x2c864a=_0x31a78e[_0x52f9c7(0xff)](_0x475c27,arguments);return _0x31a78e=null,_0x2c864a;}}:function(){};return _0x439f0a=![],_0x1e9bbc;};}()),a2_0x3c68b3=a2_0x4024d6(this,function(){const _0x3d4dbe=a2_0xba1c,_0x17e3c3={};_0x17e3c3[_0x3d4dbe(0xe8)]=_0x3d4dbe(0xe2)+'+$';const _0x325a6c=_0x17e3c3;return a2_0x3c68b3[_0x3d4dbe(0x176)]()[_0x3d4dbe(0x10b)](_0x325a6c[_0x3d4dbe(0xe8)])[_0x3d4dbe(0x176)]()[_0x3d4dbe(0x107)+'r'](a2_0x3c68b3)['search']('(((.+)+)+)'+'+$');});a2_0x3c68b3();function a2_0x39d5(){const _0x13cf04=['1432280KVGKrj','status','ities','분석\x20결과\x20조회\x20실','message','보안\x20분석\x20시작:\x20','분석할\x20파일\x20경로가','zipFileNam','\x20시작:\x20','pollAnalys','개\x20파일','isArray','시작:\x20','analysisBr','ZIP\x20파일\x20경로가','error','Details:\x20','중\x20파일\x20보안\x20분석','Line:\x20','basename','filePaths','apply','vulnerabil','석\x20요청\x20완료:\x20','alysisResu','분석이\x20실패했습니다','eSecurity','analyzeMul','석\x20요청\x20실패:','constructo','parseVulne','rabilities','GQjMz','search','니다.','다중\x20파일\x20분석\x20요','cureCode','FAIL','지:\x20원본\x20','완료되었습니다.','key','join','completed','uploadFold','분석\x20ID:\x20','STOP','한\x20상태입니다.','KhBbT','Brief','omAnalysis','873018iJmmHy','sparrowSer','push','파일\x20업로드\x20실패:','buildVulne','지\x20않았습니다.','secureCode','\x20->\x20실제\x20','분석\x20ID\x20변경\x20감','getAnalysi','21856BSTaMG','분석\x20상태\x20조회\x20실','MEDIUM','method','File:\x20','ief','완료\x20(분석\x20ID:','폴더\x20경로가\x20제공되','result','analysisId','files','분석\x20결과\x20다운로드','analyzeZip','generateUn','Security','downloadAn','개\x20취약점\x20발견\x20(','File','analyzeFol','안전한\x20코드\x20브리핑','UNKNOWN','\x20생성에\x20실패했습니','cureCodeFr','fileName','info','s3Key','ZIP\x20파일\x20업로드','4022514YCkpPC','isCompleti','analyzeFil','generateAn','개\x20파일\x20경로','98ZAZUZX','progress','mapSeverit','분석\x20요청\x20완료:\x20','success','risk','diff','안전한\x20코드\x20생성\x20','lysis','generateSe','sFromPaths','contexts','분석\x20결과\x20생성\x20완','requestId','드\x20실패:\x20','ANALYSIS','GkHmo','중지\x20요청을\x20받아\x20','분석\x20결과\x20조회:\x20','string','folder.zip','checkerKey','requestAna','length','ile','전처리\x20중입니다.','rabilityDe','filePath','s3Service','LOW','분석이\x20성공적으로\x20','code.java','폴더\x20기반\x20보안\x20분','llmService','CBpDT','input.zip','content','ZIP\x20파일\x20기반\x20','초기화\x20중입니다.','ipleFiles','다중\x20파일\x20보안\x20분','PRE_PROCES','der','Risk\x20Level','석\x20시작:\x20','료:\x20','oHFgq','CRITICAL','toString','erAsZip','READY','Method:\x20','FAILED','\x20실패했습니다.','messages','AXQrG','vice','3401772MAWRse','toUpperCas','yFromRisk','cureCodeBr','INIT','청\x20완료:\x20','보안\x20분석\x20요청\x20실','3374904owNmVf','EYIFP','eventMsgs','SUCCESS','POST_PROCE','입니다.','lineNumber','severity','uploadMult','lts','sResults','uploadFile','fuIeZ','1563075jwAtdW','HIGH','uploadZipF','COMPLETE','Checker:\x20','sStatus','(((.+)+)+)','fileConten','분석\x20브리핑\x20생성에','tipleFiles','분석\x20중입니다.','descriptio','XnvzI','파일\x20경로\x20기반\x20보'];a2_0x39d5=function(){return _0x13cf04;};return a2_0x39d5();}import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';import{S3Service}from'./s3.service.js';import{DiffUtil}from'../utils/diff.util.js';import{logger}from'../utils/logger.js';import a2_0x3f0bc3 from'path';function a2_0xba1c(_0xae882d,_0x2b7706){_0xae882d=_0xae882d-0xd8;const _0x3df675=a2_0x39d5();let _0x3c68b3=_0x3df675[_0xae882d];return _0x3c68b3;}export class AnalysisService{[a2_0x38f06d(0x167)];['sparrowSer'+a2_0x38f06d(0x17e)];[a2_0x38f06d(0x162)];constructor(){const _0x2e14e1=a2_0x38f06d;this[_0x2e14e1(0x167)]=new LLMService(),this[_0x2e14e1(0x11d)+_0x2e14e1(0x17e)]=new SparrowService(),this[_0x2e14e1(0x162)]=new S3Service();}async[a2_0x38f06d(0x143)+a2_0x38f06d(0x104)](_0x17ca51){const _0x163879=a2_0x38f06d;try{logger['info'](_0x163879(0xef)+_0x17ca51['fileName']);const _0x248236=await this[_0x163879(0x162)][_0x163879(0xda)](_0x17ca51[_0x163879(0xe3)+'t'],_0x17ca51['fileName']);if(!_0x248236[_0x163879(0x14a)])throw new Error('파일\x20업로드\x20실패:'+'\x20'+_0x248236[_0x163879(0xf9)]);const _0x3ef0d5={};_0x3ef0d5[_0x163879(0x13d)]=_0x17ca51[_0x163879(0x13d)],_0x3ef0d5[_0x163879(0xe3)+'t']=_0x17ca51[_0x163879(0xe3)+'t'],_0x3ef0d5[_0x163879(0x13f)]=_0x248236[_0x163879(0x112)];const _0x34ea08=_0x3ef0d5,_0x32d139=await this[_0x163879(0x11d)+_0x163879(0x17e)][_0x163879(0x15c)+_0x163879(0x14e)](_0x34ea08);logger[_0x163879(0x13e)](_0x163879(0x149)+_0x32d139['requestId']);const _0x91eaab={};return _0x91eaab['analysisId']=_0x32d139['analysisId']||_0x32d139[_0x163879(0x153)],_0x91eaab[_0x163879(0xeb)]=_0x32d139[_0x163879(0xeb)],_0x91eaab;}catch(_0x258a0c){logger[_0x163879(0xf9)](_0x163879(0x185)+'패:',_0x258a0c);throw _0x258a0c;}}async['getAnalysi'+'sStatus'](_0x18490a){const _0x2e9c58=a2_0x38f06d,_0x4b7585={};_0x4b7585[_0x2e9c58(0x174)]='PRE_PROCES'+'S',_0x4b7585[_0x2e9c58(0x119)]=function(_0x48a843,_0x4f4afe){return _0x48a843===_0x4f4afe;},_0x4b7585[_0x2e9c58(0x187)]=_0x2e9c58(0x157)+'분석이\x20중지된\x20상태'+_0x2e9c58(0x18b),_0x4b7585[_0x2e9c58(0x10a)]=_0x2e9c58(0x103)+'.';const _0x14abe0=_0x4b7585;try{const _0x4469ed=await this[_0x2e9c58(0x11d)+_0x2e9c58(0x17e)]['getAnalysi'+_0x2e9c58(0xe1)](_0x18490a);let _0x168869=_0x4469ed['progress'];if(_0x168869===undefined){const _0x1ee0a7=String(_0x4469ed['status'])['toUpperCas'+'e']();if(_0x1ee0a7===_0x2e9c58(0xdf))_0x168869=0x64;else{if(_0x1ee0a7===_0x2e9c58(0x155))_0x168869=undefined;else{if(_0x1ee0a7===_0x2e9c58(0x183)||_0x1ee0a7===_0x2e9c58(0x178))_0x168869=0x0;else{if(_0x1ee0a7===_0x14abe0['oHFgq'])_0x168869=0xa;else _0x1ee0a7===_0x2e9c58(0x18a)+'SS'&&(_0x168869=0x5a);}}}}const _0x260d88=String(_0x4469ed['status'])[_0x2e9c58(0x180)+'e']();let _0x1fd208;if(_0x14abe0[_0x2e9c58(0x119)](_0x260d88,'COMPLETE')){const _0x1e52ba=_0x4469ed[_0x2e9c58(0x12e)]?String(_0x4469ed[_0x2e9c58(0x12e)])[_0x2e9c58(0x180)+'e']():undefined;if(_0x1e52ba===_0x2e9c58(0x189))_0x1fd208=_0x2e9c58(0x164)+_0x2e9c58(0x111);else{if(_0x1e52ba===_0x2e9c58(0x10f))_0x1fd208='분석을\x20올바르게\x20완'+'료하지\x20못하고\x20실패'+_0x2e9c58(0x118);else _0x1e52ba===_0x2e9c58(0x117)?_0x1fd208=_0x14abe0[_0x2e9c58(0x187)]:_0x1fd208='분석이\x20완료되었습니'+'다.';}}else{const _0x953a33={};_0x953a33[_0x2e9c58(0x183)]=_0x2e9c58(0x16c),_0x953a33[_0x2e9c58(0x178)]='준비\x20중입니다.',_0x953a33[_0x2e9c58(0x16f)+'S']=_0x2e9c58(0x15f),_0x953a33[_0x2e9c58(0x155)]=_0x2e9c58(0xe6),_0x953a33[_0x2e9c58(0x18a)+'SS']='후처리\x20중입니다.',_0x953a33[_0x2e9c58(0x10f)]=_0x14abe0['GQjMz'],_0x953a33[_0x2e9c58(0x17a)]=_0x2e9c58(0x103)+'.';const _0xa65584=_0x953a33;_0x1fd208=_0xa65584[_0x260d88]||'분석이\x20진행\x20중입니'+'다.';}let _0x3d9281=_0x4469ed[_0x2e9c58(0xeb)];_0x260d88===_0x2e9c58(0xdf)&&_0x4469ed['result']&&(_0x3d9281=_0x4469ed[_0x2e9c58(0x12e)]);const _0x4d9db8={};return _0x4d9db8[_0x2e9c58(0xeb)]=_0x3d9281,_0x4d9db8['result']=_0x4469ed['result'],_0x4d9db8[_0x2e9c58(0x147)]=_0x168869,_0x4d9db8['message']=_0x1fd208,_0x4d9db8;}catch(_0x178632){logger['error'](_0x2e9c58(0x127)+'패:',_0x178632);throw _0x178632;}}async[a2_0x38f06d(0x125)+a2_0x38f06d(0xd9)](_0x34a054){const _0x470959=a2_0x38f06d;try{logger[_0x470959(0x13e)](_0x470959(0x158)+_0x34a054);const _0x3cf2e0=await this['sparrowSer'+_0x470959(0x17e)][_0x470959(0xf3)+_0x470959(0x142)+'on'](_0x34a054),_0x5a3665=_0x3cf2e0[_0x470959(0x12f)]||_0x34a054;_0x5a3665!==_0x34a054&&logger['info'](_0x470959(0x124)+_0x470959(0x110)+_0x34a054+_0x470959(0x123)+_0x5a3665);logger[_0x470959(0x13e)](_0x470959(0x131)+_0x470959(0xf2)+_0x5a3665);const _0x487bd7=await this[_0x470959(0x11d)+_0x470959(0x17e)][_0x470959(0x135)+_0x470959(0x102)+'lts'](_0x5a3665),_0x4a6c6d=this[_0x470959(0x108)+'rabilities'](_0x487bd7),_0x570627=await this[_0x470959(0x167)][_0x470959(0x144)+'alysisBrie'+'f'](_0x487bd7),_0x18a484=_0x570627[_0x470959(0x14a)]?_0x570627[_0x470959(0x16a)]:_0x470959(0xe4)+_0x470959(0x17b);logger[_0x470959(0x13e)](_0x470959(0x152)+_0x470959(0x173)+_0x4a6c6d[_0x470959(0x15d)]+(_0x470959(0x136)+_0x470959(0x116))+_0x5a3665+')');const _0x30ffc9={};return _0x30ffc9[_0x470959(0x12f)]=_0x5a3665,_0x30ffc9['status']=_0x470959(0x114),_0x30ffc9[_0x470959(0x100)+_0x470959(0xec)]=_0x4a6c6d,_0x30ffc9[_0x470959(0xf7)+_0x470959(0x12b)]=_0x18a484,_0x30ffc9;}catch(_0x8ef336){logger[_0x470959(0xf9)](_0x470959(0xed)+'패:',_0x8ef336);throw _0x8ef336;}}async[a2_0x38f06d(0x14f)+a2_0x38f06d(0x13c)+a2_0x38f06d(0x11b)](_0xa6b56a,_0x199188){const _0x2f31fd=a2_0x38f06d,_0x2d51da={};_0x2d51da['fuIeZ']=_0x2f31fd(0x14d)+'실패:';const _0xc105d=_0x2d51da;try{logger[_0x2f31fd(0x13e)](_0x2f31fd(0x14d)+_0x2f31fd(0xf6)+_0xa6b56a);const _0x3e7f3b=await this[_0x2f31fd(0x11d)+_0x2f31fd(0x17e)]['pollAnalys'+_0x2f31fd(0x142)+'on'](_0xa6b56a),_0x1edb91=_0x3e7f3b[_0x2f31fd(0x12f)]||_0xa6b56a;logger[_0x2f31fd(0x13e)]('분석\x20결과\x20다운로드'+'\x20시작:\x20'+_0x1edb91);const _0x1e6a3a=await this[_0x2f31fd(0x11d)+_0x2f31fd(0x17e)][_0x2f31fd(0x135)+'alysisResu'+_0x2f31fd(0xd8)](_0x1edb91),_0x129575=this[_0x2f31fd(0x108)+_0x2f31fd(0x109)](_0x1e6a3a),_0x36c39b=await this[_0x2f31fd(0x167)][_0x2f31fd(0x14f)+_0x2f31fd(0x10e)](_0x199188,_0x129575),_0xd75669=_0x36c39b[_0x2f31fd(0x14a)]?_0x36c39b[_0x2f31fd(0x16a)]:_0x199188,_0x35e28d=await this[_0x2f31fd(0x167)]['generateSe'+_0x2f31fd(0x182)+'ief'](_0x199188,_0xd75669),_0x3f03f1=_0x35e28d[_0x2f31fd(0x14a)]?_0x35e28d['content']:_0x2f31fd(0x139)+_0x2f31fd(0x13b)+'다.',_0x2357be=DiffUtil[_0x2f31fd(0x133)+'ifiedDiff'](_0x199188,_0xd75669,_0x2f31fd(0x165));logger[_0x2f31fd(0x13e)]('안전한\x20코드\x20생성\x20'+_0x2f31fd(0x12c)+'\x20'+_0x1edb91+')');const _0x11a0c7={};return _0x11a0c7[_0x2f31fd(0x122)]=_0xd75669,_0x11a0c7[_0x2f31fd(0x122)+_0x2f31fd(0x11a)]=_0x3f03f1,_0x11a0c7[_0x2f31fd(0x14c)]=_0x2357be,_0x11a0c7;}catch(_0x3958de){logger[_0x2f31fd(0xf9)](_0xc105d[_0x2f31fd(0xdb)],_0x3958de);throw _0x3958de;}}['parseVulne'+a2_0x38f06d(0x109)](_0x43cd9b){const _0x5287e6=a2_0x38f06d,_0x1c14da=[];for(const _0x2e97a3 of _0x43cd9b){if(Array[_0x5287e6(0xf5)](_0x2e97a3))for(const _0x1a5fc2 of _0x2e97a3){_0x1a5fc2[_0x5287e6(0x15b)]&&_0x1c14da['push']({'checkerKey':_0x1a5fc2[_0x5287e6(0x15b)]||'UNKNOWN','description':this[_0x5287e6(0x120)+'rabilityDe'+'scription'](_0x1a5fc2),'severity':this['mapSeverit'+_0x5287e6(0x181)](_0x1a5fc2[_0x5287e6(0x14b)]),'lineNumber':_0x1a5fc2[_0x5287e6(0x18c)],'filePath':_0x1a5fc2['filePaths']&&_0x1a5fc2['filePaths'][_0x5287e6(0x15d)]>0x0?_0x1a5fc2['filePaths'][0x0]:undefined});}else{if(_0x2e97a3[_0x5287e6(0x100)+_0x5287e6(0xec)]&&Array[_0x5287e6(0xf5)](_0x2e97a3['vulnerabil'+_0x5287e6(0xec)]))for(const _0x846e0b of _0x2e97a3[_0x5287e6(0x100)+_0x5287e6(0xec)]){_0x1c14da['push']({'checkerKey':_0x846e0b['checkerKey']||_0x5287e6(0x13a),'description':_0x846e0b[_0x5287e6(0xe7)+'n']||_0x846e0b[_0x5287e6(0xee)]||'설명\x20없음','severity':this[_0x5287e6(0x148)+'y'](_0x846e0b[_0x5287e6(0x18d)]),'lineNumber':_0x846e0b[_0x5287e6(0x18c)],'filePath':_0x846e0b[_0x5287e6(0x161)]});}}}return _0x1c14da;}[a2_0x38f06d(0x120)+a2_0x38f06d(0x160)+'scription'](_0x1711c5){const _0x17762b=a2_0x38f06d,_0x58c1d5=[];_0x1711c5[_0x17762b(0x15b)]&&_0x58c1d5[_0x17762b(0x11e)](_0x17762b(0xe0)+_0x1711c5[_0x17762b(0x15b)]);_0x1711c5[_0x17762b(0x129)]&&_0x58c1d5[_0x17762b(0x11e)](_0x17762b(0x179)+_0x1711c5[_0x17762b(0x129)]);_0x1711c5[_0x17762b(0xfe)]&&_0x1711c5[_0x17762b(0xfe)][_0x17762b(0x15d)]>0x0&&_0x58c1d5[_0x17762b(0x11e)](_0x17762b(0x12a)+_0x1711c5[_0x17762b(0xfe)][0x0]);_0x1711c5['lineNumber']&&_0x58c1d5[_0x17762b(0x11e)](_0x17762b(0xfc)+_0x1711c5[_0x17762b(0x18c)]);_0x1711c5['risk']&&_0x58c1d5['push'](_0x17762b(0x171)+':\x20'+_0x1711c5[_0x17762b(0x14b)]);if(_0x1711c5[_0x17762b(0x151)]&&Array[_0x17762b(0xf5)](_0x1711c5[_0x17762b(0x151)])){const _0x55e698=[];for(const _0x1ffd30 of _0x1711c5[_0x17762b(0x151)]){if(_0x1ffd30[_0x17762b(0x188)]&&Array['isArray'](_0x1ffd30['eventMsgs']))for(const _0x7f34a of _0x1ffd30[_0x17762b(0x188)]){if(_0x7f34a[_0x17762b(0x17c)]&&Array[_0x17762b(0xf5)](_0x7f34a[_0x17762b(0x17c)]))for(const _0x2555b3 of _0x7f34a[_0x17762b(0x17c)]){_0x2555b3['message']&&_0x55e698[_0x17762b(0x11e)](_0x2555b3['message']);}}}_0x55e698[_0x17762b(0x15d)]>0x0&&_0x58c1d5['push'](_0x17762b(0xfa)+_0x55e698[_0x17762b(0x113)](';\x20'));}return _0x58c1d5[_0x17762b(0x15d)]>0x0?_0x58c1d5[_0x17762b(0x113)](',\x20'):'취약점이\x20발견되었습'+_0x17762b(0x10c);}[a2_0x38f06d(0x148)+a2_0x38f06d(0x181)](_0x17d6f7){const _0x2e8c6c=a2_0x38f06d,_0x2f90b6=typeof _0x17d6f7===_0x2e8c6c(0x159)?parseInt(_0x17d6f7):_0x17d6f7;if(_0x2f90b6<=0x2)return _0x2e8c6c(0xdd);else return _0x2f90b6===0x3?_0x2e8c6c(0x128):'LOW';}async[a2_0x38f06d(0x105)+a2_0x38f06d(0xe5)+a2_0x38f06d(0x134)](_0x3312ba){const _0x2bf90c=a2_0x38f06d,_0x2104f2={};_0x2104f2[_0x2bf90c(0x156)]='분석할\x20파일이\x20없습'+_0x2bf90c(0x10c);const _0x1f2122=_0x2104f2;try{logger[_0x2bf90c(0x13e)](_0x2bf90c(0x16e)+'석\x20시작:\x20'+_0x3312ba[_0x2bf90c(0x130)][_0x2bf90c(0x15d)]+_0x2bf90c(0xf4));if(!_0x3312ba[_0x2bf90c(0x130)]||_0x3312ba[_0x2bf90c(0x130)][_0x2bf90c(0x15d)]===0x0)throw new Error(_0x1f2122[_0x2bf90c(0x156)]);const _0x47b450=await this['s3Service'][_0x2bf90c(0x18e)+_0x2bf90c(0x16d)](_0x3312ba[_0x2bf90c(0x130)],_0x3312ba[_0x2bf90c(0xf1)+'e']);if(!_0x47b450[_0x2bf90c(0x14a)])throw new Error(_0x2bf90c(0x11f)+'\x20'+_0x47b450[_0x2bf90c(0xf9)]);const _0x4c1ebd=_0x3312ba[_0x2bf90c(0x130)][0x0]?.[_0x2bf90c(0x13d)]||_0x2bf90c(0x169),_0x5a2e78={};_0x5a2e78['fileName']=_0x3312ba[_0x2bf90c(0xf1)+'e']||_0x4c1ebd,_0x5a2e78[_0x2bf90c(0xe3)+'t']='',_0x5a2e78[_0x2bf90c(0x13f)]=_0x47b450[_0x2bf90c(0x112)];const _0xef205f=_0x5a2e78,_0x521cc0=await this[_0x2bf90c(0x11d)+_0x2bf90c(0x17e)][_0x2bf90c(0x15c)+_0x2bf90c(0x14e)](_0xef205f);logger[_0x2bf90c(0x13e)](_0x2bf90c(0x10d)+_0x2bf90c(0x184)+_0x521cc0[_0x2bf90c(0x153)]);const _0x21c349={};return _0x21c349[_0x2bf90c(0x12f)]=_0x521cc0['analysisId']||_0x521cc0[_0x2bf90c(0x153)],_0x21c349[_0x2bf90c(0xeb)]=_0x521cc0[_0x2bf90c(0xeb)],_0x21c349;}catch(_0xd16314){logger['error'](_0x2bf90c(0x16e)+_0x2bf90c(0x106),_0xd16314);throw _0xd16314;}}async[a2_0x38f06d(0x105)+a2_0x38f06d(0xe5)+'FromPaths'](_0x21b89f,_0x864948){const _0x4a4f37=a2_0x38f06d,_0x3b9cd1={};_0x3b9cd1[_0x4a4f37(0x17d)]=function(_0x3b3370,_0x57b28e){return _0x3b3370||_0x57b28e;};const _0x51b71a=_0x3b9cd1;try{logger[_0x4a4f37(0x13e)]('파일\x20경로\x20기반\x20다'+_0x4a4f37(0xfb)+_0x4a4f37(0xf2)+_0x21b89f['length']+_0x4a4f37(0x145));if(!_0x21b89f||_0x21b89f['length']===0x0)throw new Error(_0x4a4f37(0xf0)+'\x20없습니다.');const _0x292e15=await this[_0x4a4f37(0x162)][_0x4a4f37(0xda)+_0x4a4f37(0x150)](_0x21b89f,_0x864948);if(!_0x292e15[_0x4a4f37(0x14a)])throw new Error('파일\x20업로드\x20실패:'+'\x20'+_0x292e15[_0x4a4f37(0xf9)]);const _0x1e134c=a2_0x3f0bc3[_0x4a4f37(0xfd)](_0x21b89f[0x0])||_0x4a4f37(0x169),_0x5e779e={'fileName':_0x51b71a[_0x4a4f37(0x17d)](_0x864948,_0x1e134c),'fileContent':'','s3Key':_0x292e15[_0x4a4f37(0x112)]},_0x555f41=await this['sparrowSer'+_0x4a4f37(0x17e)][_0x4a4f37(0x15c)+_0x4a4f37(0x14e)](_0x5e779e);logger[_0x4a4f37(0x13e)]('파일\x20경로\x20기반\x20분'+_0x4a4f37(0x101)+_0x555f41[_0x4a4f37(0x153)]);const _0x4d778b={};return _0x4d778b[_0x4a4f37(0x12f)]=_0x555f41['analysisId']||_0x555f41[_0x4a4f37(0x153)],_0x4d778b['status']=_0x555f41['status'],_0x4d778b;}catch(_0x2c7f04){logger[_0x4a4f37(0xf9)](_0x4a4f37(0xe9)+'안\x20분석\x20요청\x20실패'+':',_0x2c7f04);throw _0x2c7f04;}}async[a2_0x38f06d(0x132)+a2_0x38f06d(0x137)](_0x4bc2b4,_0x240eb6){const _0x7aff39=a2_0x38f06d;try{logger[_0x7aff39(0x13e)](_0x7aff39(0x16b)+_0x7aff39(0xef)+_0x4bc2b4);if(!_0x4bc2b4)throw new Error(_0x7aff39(0xf8)+'\x20제공되지\x20않았습니'+'다.');const _0x33de16=await this[_0x7aff39(0x162)][_0x7aff39(0xde)+_0x7aff39(0x15e)](_0x4bc2b4);if(!_0x33de16['success'])throw new Error(_0x7aff39(0x140)+'\x20실패:\x20'+_0x33de16[_0x7aff39(0xf9)]);const _0x220ac5=_0x240eb6||a2_0x3f0bc3[_0x7aff39(0xfd)](_0x4bc2b4)||_0x7aff39(0x169),_0x7b2189={};_0x7b2189['fileName']=_0x220ac5,_0x7b2189['fileConten'+'t']='',_0x7b2189[_0x7aff39(0x13f)]=_0x33de16[_0x7aff39(0x112)];const _0xe91bd5=_0x7b2189,_0x934019=await this[_0x7aff39(0x11d)+'vice'][_0x7aff39(0x15c)+_0x7aff39(0x14e)](_0xe91bd5);logger[_0x7aff39(0x13e)](_0x7aff39(0x16b)+_0x7aff39(0x149)+_0x934019['requestId']);const _0x4aac94={};return _0x4aac94['analysisId']=_0x934019[_0x7aff39(0x12f)]||_0x934019[_0x7aff39(0x153)],_0x4aac94[_0x7aff39(0xeb)]=_0x934019['status'],_0x4aac94;}catch(_0xb4ff3f){logger[_0x7aff39(0xf9)](_0x7aff39(0x16b)+'보안\x20분석\x20요청\x20실'+'패:',_0xb4ff3f);throw _0xb4ff3f;}}async[a2_0x38f06d(0x138)+a2_0x38f06d(0x170)](_0x5d7b2c,_0x274ff8){const _0x5e3ecb=a2_0x38f06d;try{logger[_0x5e3ecb(0x13e)](_0x5e3ecb(0x166)+_0x5e3ecb(0x172)+_0x5d7b2c);if(!_0x5d7b2c)throw new Error(_0x5e3ecb(0x12d)+_0x5e3ecb(0x121));const _0x553cc6=await this['s3Service'][_0x5e3ecb(0x115)+_0x5e3ecb(0x177)](_0x5d7b2c,_0x274ff8);if(!_0x553cc6[_0x5e3ecb(0x14a)])throw new Error('폴더\x20압축\x20및\x20업로'+_0x5e3ecb(0x154)+_0x553cc6[_0x5e3ecb(0xf9)]);const _0x3546e0=_0x274ff8||a2_0x3f0bc3[_0x5e3ecb(0xfd)](_0x5d7b2c)||_0x5e3ecb(0x15a),_0x42c995={};_0x42c995['fileName']=_0x3546e0,_0x42c995['fileConten'+'t']='',_0x42c995['s3Key']=_0x553cc6['key'];const _0x5c5234=_0x42c995,_0x3a4056=await this[_0x5e3ecb(0x11d)+'vice'][_0x5e3ecb(0x15c)+_0x5e3ecb(0x14e)](_0x5c5234);logger[_0x5e3ecb(0x13e)]('폴더\x20기반\x20분석\x20요'+_0x5e3ecb(0x184)+_0x3a4056['requestId']);const _0x5aa13c={};return _0x5aa13c[_0x5e3ecb(0x12f)]=_0x3a4056[_0x5e3ecb(0x12f)]||_0x3a4056[_0x5e3ecb(0x153)],_0x5aa13c[_0x5e3ecb(0xeb)]=_0x3a4056[_0x5e3ecb(0xeb)],_0x5aa13c;}catch(_0x27999f){logger[_0x5e3ecb(0xf9)](_0x5e3ecb(0x166)+_0x5e3ecb(0x106),_0x27999f);throw _0x27999f;}}['mapSeverit'+'y'](_0x4bdb64){const _0x3b4d57=a2_0x38f06d,_0x236931={};_0x236931['CBpDT']=_0x3b4d57(0x163);const _0x3490cf=_0x236931,_0x4b9466={};_0x4b9466[_0x3b4d57(0xdd)]='HIGH',_0x4b9466[_0x3b4d57(0x175)]='HIGH',_0x4b9466[_0x3b4d57(0x128)]=_0x3b4d57(0x128),_0x4b9466['LOW']=_0x3490cf[_0x3b4d57(0x168)],_0x4b9466['INFO']=_0x3490cf[_0x3b4d57(0x168)];const _0x2946d1=_0x4b9466;return _0x2946d1[_0x4bdb64?.['toUpperCas'+'e']()]||_0x3b4d57(0x128);}}
|
|
1
|
+
const a2_0x444a9f=a2_0x4563;(function(_0x16c36d,_0x2e3633){const _0x5f12c4=a2_0x4563,_0x4eeefc=_0x16c36d();while(!![]){try{const _0x49fccf=parseInt(_0x5f12c4(0xc1))/0x1+parseInt(_0x5f12c4(0x13f))/0x2*(-parseInt(_0x5f12c4(0xf7))/0x3)+-parseInt(_0x5f12c4(0xfe))/0x4+-parseInt(_0x5f12c4(0x123))/0x5*(-parseInt(_0x5f12c4(0xcb))/0x6)+-parseInt(_0x5f12c4(0x11a))/0x7*(parseInt(_0x5f12c4(0xef))/0x8)+parseInt(_0x5f12c4(0x106))/0x9+-parseInt(_0x5f12c4(0xe0))/0xa*(parseInt(_0x5f12c4(0x10f))/0xb);if(_0x49fccf===_0x2e3633)break;else _0x4eeefc['push'](_0x4eeefc['shift']());}catch(_0x39f4){_0x4eeefc['push'](_0x4eeefc['shift']());}}}(a2_0x5de9,0x7bd26));const a2_0x28750d=(function(){let _0x488398=!![];return function(_0x283633,_0x4ae024){const _0x429bd1=_0x488398?function(){const _0x51547f=a2_0x4563;if(_0x4ae024){const _0x2b878f=_0x4ae024[_0x51547f(0x94)](_0x283633,arguments);return _0x4ae024=null,_0x2b878f;}}:function(){};return _0x488398=![],_0x429bd1;};}()),a2_0x8eca58=a2_0x28750d(this,function(){const _0x44ed3b=a2_0x4563;return a2_0x8eca58[_0x44ed3b(0xaa)]()['search'](_0x44ed3b(0xf0)+'+$')[_0x44ed3b(0xaa)]()['constructo'+'r'](a2_0x8eca58)[_0x44ed3b(0xac)](_0x44ed3b(0xf0)+'+$');});a2_0x8eca58();import{LLMService}from'./llm.service.js';import{SparrowService}from'./sparrow.service.js';import{S3Service}from'./s3.service.js';function a2_0x4563(_0x3bde1f,_0x4a64c7){_0x3bde1f=_0x3bde1f-0x91;const _0x549d1a=a2_0x5de9();let _0x8eca58=_0x549d1a[_0x3bde1f];return _0x8eca58;}import{DiffUtil}from'../utils/diff.util.js';import{logger}from'../utils/logger.js';function a2_0x5de9(){const _0x5f1d8a=['File','STOP','progress','14afoHnB','vulnerabil','parseVulne','basename','INIT','FAILED','lysis','code.java','석\x20시작:\x20','5bnpvKz','Brief','전처리\x20중입니다.','안전한\x20코드\x20브리핑','join','eSecurity','sFromPaths','analyzeFil','message','지\x20않았습니다.','risk','중\x20파일\x20보안\x20분석','없습니다.)','mapSeverit','push','\x20실패:\x20','니다.','fileName','File:\x20','generateAn','\x20->\x20실제\x20','generateSe','파일\x20경로\x20기반\x20보','cureCodeFr','한\x20상태입니다.','analyzeFol','분석을\x20올바르게\x20완','\x20실패했습니다.','180886nfGMAk','LOW','zipFileNam','completed','Line:\x20','content','안\x20분석\x20요청\x20실패','messages','uploadMult','result','vice','완료되지\x20않았습니다','지:\x20원본\x20','안전한\x20코드\x20생성\x20','input.zip','apply','\x20제공되지\x20않았습니','폴더\x20기반\x20보안\x20분','requestId','ief','설명\x20없음','개\x20파일\x20경로','중지\x20요청을\x20받아\x20','isArray','료:\x20','length','분석\x20중입니다.','tipleFiles','HIGH','COMPLETE','erAsZip','downloadAn','success','\x20(SUCCESS가','분석할\x20파일\x20경로가','s3Service','generateUn','toString','rabilities','search','준비\x20중입니다.','analyzeMul','omAnalysis','분석\x20결과\x20생성\x20완','실패:','MEDIUM','분석\x20ID:\x20','s3Key','시작:\x20','wGRxC','string','llmService','sStatus','분석\x20브리핑\x20생성에','yFromRisk','error','다중\x20파일\x20보안\x20분','lineNumber','.\x20result=','getAnalysi','988919TdIYHq','POST_PROCE','alysisBrie','ities','분석\x20ID\x20변경\x20감','분석이\x20진행\x20중입니','contexts','cureCodeBr','bYJHy','sResults','184524WrixYR','info','analysisBr','ZIP\x20파일\x20경로가','석\x20요청\x20완료:\x20','pollAnalys','드\x20실패:\x20','analysisId','분석이\x20실패했습니다','pzrxr','eventMsgs','분석이\x20성공적으로\x20','method','status','rabilityDe','석\x20요청\x20실패:','files','완료되었습니다.','der','lts','checkerKey','2764930dAjEvf','보안\x20분석\x20시작:\x20','filePaths','ANALYSIS','requestAna','\x20아니므로\x20안전한\x20','파일\x20경로\x20기반\x20다','파일\x20업로드\x20실패:','ile','ZIP\x20파일\x20업로드','sparrowSer','후처리\x20중입니다.','cureCode','CRITICAL','failed','108400DkOfGa','(((.+)+)+)','Security','uploadFold','취약점이\x20발견되었습','분석이\x20완료되었습니','nnepp','diff','3bZUbLh','분석\x20결과\x20조회\x20실','FAIL','UNKNOWN','폴더\x20기반\x20분석\x20요','toUpperCas','descriptio','3393352tpWPtG','개\x20파일','READY','uploadFile','secureCode','분석\x20결과\x20조회:\x20','SUCCESS','buildVulne','6568875cLqzgn','key','\x20시작:\x20','ifiedDiff','alysisResu','isCompleti','Checker:\x20','ZIP\x20파일\x20기반\x20','다중\x20파일\x20분석\x20요','11GFrbDE','입니다.','severity','scription','Risk\x20Level','료하지\x20못하고\x20실패','fileConten','분석\x20결과\x20다운로드'];a2_0x5de9=function(){return _0x5f1d8a;};return a2_0x5de9();}import a2_0x2c6260 from'path';export class AnalysisService{[a2_0x444a9f(0xb8)];[a2_0x444a9f(0xea)+'vice'];[a2_0x444a9f(0xa8)];constructor(){const _0x16319e=a2_0x444a9f;this['llmService']=new LLMService(),this['sparrowSer'+_0x16319e(0x149)]=new SparrowService(),this[_0x16319e(0xa8)]=new S3Service();}async[a2_0x444a9f(0x12a)+a2_0x444a9f(0x128)](_0x1686aa){const _0x3f2ba0=a2_0x444a9f;try{logger['info'](_0x3f2ba0(0xe1)+_0x1686aa['fileName']);const _0x4f2cc0=await this[_0x3f2ba0(0xa8)][_0x3f2ba0(0x101)](_0x1686aa[_0x3f2ba0(0x115)+'t'],_0x1686aa[_0x3f2ba0(0x134)]);if(!_0x4f2cc0['success'])throw new Error(_0x3f2ba0(0xe7)+'\x20'+_0x4f2cc0[_0x3f2ba0(0xbc)]);const _0x359f94={};_0x359f94[_0x3f2ba0(0x134)]=_0x1686aa[_0x3f2ba0(0x134)],_0x359f94[_0x3f2ba0(0x115)+'t']=_0x1686aa['fileConten'+'t'],_0x359f94[_0x3f2ba0(0xb4)]=_0x4f2cc0[_0x3f2ba0(0x107)];const _0x1bb4f9=_0x359f94,_0x2779f2=await this[_0x3f2ba0(0xea)+_0x3f2ba0(0x149)][_0x3f2ba0(0xe4)+_0x3f2ba0(0x120)](_0x1bb4f9);logger['info']('분석\x20요청\x20완료:\x20'+_0x2779f2['requestId']);const _0x40b096={};return _0x40b096[_0x3f2ba0(0xd2)]=_0x2779f2[_0x3f2ba0(0xd2)]||_0x2779f2[_0x3f2ba0(0x97)],_0x40b096[_0x3f2ba0(0xd8)]=_0x2779f2['status'],_0x40b096;}catch(_0x377949){logger['error']('보안\x20분석\x20요청\x20실'+'패:',_0x377949);throw _0x377949;}}async['getAnalysi'+a2_0x444a9f(0xb9)](_0x8f8e0a){const _0x2c7be1=a2_0x444a9f,_0x120b5c={};_0x120b5c['HwRew']=_0x2c7be1(0x100),_0x120b5c['nnepp']=function(_0x4d1a75,_0x30c23c){return _0x4d1a75===_0x30c23c;},_0x120b5c[_0x2c7be1(0xc9)]=_0x2c7be1(0x9f);const _0x41b133=_0x120b5c;try{const _0x2a24fc=await this[_0x2c7be1(0xea)+_0x2c7be1(0x149)]['getAnalysi'+_0x2c7be1(0xb9)](_0x8f8e0a);let _0x289967=_0x2a24fc[_0x2c7be1(0x119)];if(_0x289967===undefined){const _0x3661e6=String(_0x2a24fc['status'])[_0x2c7be1(0xfc)+'e']();if(_0x3661e6===_0x2c7be1(0xa2))_0x289967=0x64;else{if(_0x3661e6===_0x2c7be1(0xe3))_0x289967=undefined;else{if(_0x3661e6===_0x2c7be1(0x11e)||_0x3661e6===_0x41b133['HwRew'])_0x289967=0x0;else{if(_0x3661e6==='PRE_PROCES'+'S')_0x289967=0xa;else _0x3661e6===_0x2c7be1(0xc2)+'SS'&&(_0x289967=0x5a);}}}}const _0x286b16=String(_0x2a24fc['status'])[_0x2c7be1(0xfc)+'e']();let _0x857157;if(_0x286b16==='COMPLETE'){const _0x2330a0=_0x2a24fc[_0x2c7be1(0x148)]?String(_0x2a24fc['result'])[_0x2c7be1(0xfc)+'e']():undefined;if(_0x2330a0===_0x2c7be1(0x104))_0x857157=_0x2c7be1(0xd6)+_0x2c7be1(0xdc);else{if(_0x41b133[_0x2c7be1(0xf5)](_0x2330a0,_0x2c7be1(0xf9)))_0x857157=_0x2c7be1(0x13d)+_0x2c7be1(0x114)+_0x2c7be1(0x13b);else _0x2330a0===_0x2c7be1(0x118)?_0x857157=_0x2c7be1(0x9b)+'분석이\x20중지된\x20상태'+_0x2c7be1(0x110):_0x857157=_0x2c7be1(0xf4)+'다.';}}else{const _0x556e51={};_0x556e51['INIT']='초기화\x20중입니다.',_0x556e51[_0x2c7be1(0x100)]=_0x2c7be1(0xad),_0x556e51['PRE_PROCES'+'S']=_0x2c7be1(0x125),_0x556e51[_0x2c7be1(0xe3)]=_0x41b133[_0x2c7be1(0xc9)],_0x556e51['POST_PROCE'+'SS']=_0x2c7be1(0xeb),_0x556e51['FAIL']=_0x2c7be1(0xd3)+'.',_0x556e51[_0x2c7be1(0x11f)]=_0x2c7be1(0xd3)+'.';const _0x491f80=_0x556e51;_0x857157=_0x491f80[_0x286b16]||_0x2c7be1(0xc6)+'다.';}let _0x3f3e27=_0x2a24fc['status'];_0x286b16===_0x2c7be1(0xa2)&&_0x2a24fc['result']&&(_0x3f3e27=_0x2a24fc[_0x2c7be1(0x148)]);const _0x30eb89={};return _0x30eb89[_0x2c7be1(0xd8)]=_0x3f3e27,_0x30eb89[_0x2c7be1(0x148)]=_0x2a24fc[_0x2c7be1(0x148)],_0x30eb89['progress']=_0x289967,_0x30eb89[_0x2c7be1(0x12b)]=_0x857157,_0x30eb89;}catch(_0x5b9d42){logger[_0x2c7be1(0xbc)]('분석\x20상태\x20조회\x20실'+'패:',_0x5b9d42);throw _0x5b9d42;}}async[a2_0x444a9f(0xc0)+a2_0x444a9f(0xca)](_0x1ab71e){const _0x254b06=a2_0x444a9f;try{logger[_0x254b06(0xcc)](_0x254b06(0x103)+_0x1ab71e);const _0x393452=await this['sparrowSer'+_0x254b06(0x149)][_0x254b06(0xd0)+_0x254b06(0x10b)+'on'](_0x1ab71e),_0x478d29=_0x393452[_0x254b06(0x148)]?String(_0x393452[_0x254b06(0x148)])[_0x254b06(0xfc)+'e']():undefined;let _0x29c3d4;_0x478d29==='FAIL'||_0x478d29===_0x254b06(0x118)?_0x29c3d4=_0x254b06(0xee):_0x29c3d4=_0x254b06(0x142);const _0x3df4e1=_0x393452[_0x254b06(0xd2)]||_0x1ab71e;_0x3df4e1!==_0x1ab71e&&logger[_0x254b06(0xcc)](_0x254b06(0xc5)+_0x254b06(0x91)+_0x1ab71e+_0x254b06(0x137)+_0x3df4e1);logger['info'](_0x254b06(0x116)+_0x254b06(0x108)+_0x3df4e1);const _0xed4b31=await this[_0x254b06(0xea)+_0x254b06(0x149)][_0x254b06(0xa4)+_0x254b06(0x10a)+_0x254b06(0xde)](_0x3df4e1),_0xcc20dd=this[_0x254b06(0x11c)+'rabilities'](_0xed4b31),_0x4516c5=await this[_0x254b06(0xb8)][_0x254b06(0x136)+_0x254b06(0xc3)+'f'](_0xed4b31),_0xa50f74=_0x4516c5[_0x254b06(0xa5)]?_0x4516c5[_0x254b06(0x144)]:_0x254b06(0xba)+_0x254b06(0x13e);logger[_0x254b06(0xcc)](_0x254b06(0xb0)+_0x254b06(0x9d)+_0xcc20dd[_0x254b06(0x9e)]+('개\x20취약점\x20발견\x20('+_0x254b06(0xb3))+_0x3df4e1+')');const _0x8d344a={};return _0x8d344a['analysisId']=_0x3df4e1,_0x8d344a[_0x254b06(0xd8)]=_0x29c3d4,_0x8d344a['result']=_0x478d29,_0x8d344a[_0x254b06(0x11b)+'ities']=_0xcc20dd,_0x8d344a[_0x254b06(0xcd)+_0x254b06(0x98)]=_0xa50f74,_0x8d344a;}catch(_0x15e576){logger[_0x254b06(0xbc)](_0x254b06(0xf8)+'패:',_0x15e576);throw _0x15e576;}}async[a2_0x444a9f(0x138)+a2_0x444a9f(0x13a)+a2_0x444a9f(0xaf)](_0x492ff3,_0x597902){const _0x421a6b=a2_0x444a9f;try{logger[_0x421a6b(0xcc)](_0x421a6b(0x92)+_0x421a6b(0xb5)+_0x492ff3);const _0x5c6390=await this[_0x421a6b(0xea)+_0x421a6b(0x149)]['pollAnalys'+_0x421a6b(0x10b)+'on'](_0x492ff3),_0x56965b=_0x5c6390[_0x421a6b(0x148)]?String(_0x5c6390['result'])[_0x421a6b(0xfc)+'e']():undefined;if(_0x56965b&&_0x56965b!==_0x421a6b(0x104))throw new Error(_0x421a6b(0xd6)+_0x421a6b(0x14a)+_0x421a6b(0xbf)+_0x56965b+(_0x421a6b(0xa6)+_0x421a6b(0xe5)+'코드를\x20생성할\x20수\x20'+_0x421a6b(0x12f)));const _0x28c0e2=_0x5c6390[_0x421a6b(0xd2)]||_0x492ff3;logger[_0x421a6b(0xcc)](_0x421a6b(0x116)+'\x20시작:\x20'+_0x28c0e2);const _0x5a7856=await this[_0x421a6b(0xea)+'vice']['downloadAn'+_0x421a6b(0x10a)+'lts'](_0x28c0e2),_0x41908f=this[_0x421a6b(0x11c)+_0x421a6b(0xab)](_0x5a7856),_0x8a196b=await this[_0x421a6b(0xb8)]['generateSe'+_0x421a6b(0xec)](_0x597902,_0x41908f),_0xdab213=_0x8a196b['success']?_0x8a196b['content']:_0x597902,_0x30b1d2=await this[_0x421a6b(0xb8)][_0x421a6b(0x138)+_0x421a6b(0xc8)+_0x421a6b(0x98)](_0x597902,_0xdab213),_0x38e8d9=_0x30b1d2[_0x421a6b(0xa5)]?_0x30b1d2['content']:_0x421a6b(0x126)+'\x20생성에\x20실패했습니'+'다.',_0x35c8a2=DiffUtil[_0x421a6b(0xa9)+_0x421a6b(0x109)](_0x597902,_0xdab213,_0x421a6b(0x121));logger[_0x421a6b(0xcc)](_0x421a6b(0x92)+'완료\x20(분석\x20ID:'+'\x20'+_0x28c0e2+')');const _0x1d0ab1={};return _0x1d0ab1[_0x421a6b(0x102)]=_0xdab213,_0x1d0ab1[_0x421a6b(0x102)+_0x421a6b(0x124)]=_0x38e8d9,_0x1d0ab1[_0x421a6b(0xf6)]=_0x35c8a2,_0x1d0ab1;}catch(_0x32c8b5){logger[_0x421a6b(0xbc)](_0x421a6b(0x92)+_0x421a6b(0xb1),_0x32c8b5);throw _0x32c8b5;}}[a2_0x444a9f(0x11c)+a2_0x444a9f(0xab)](_0x471861){const _0xbc675e=a2_0x444a9f,_0x474d5e=[];for(const _0x50b855 of _0x471861){if(Array[_0xbc675e(0x9c)](_0x50b855))for(const _0x5c2227 of _0x50b855){_0x5c2227['checkerKey']&&_0x474d5e[_0xbc675e(0x131)]({'checkerKey':_0x5c2227['checkerKey']||_0xbc675e(0xfa),'description':this[_0xbc675e(0x105)+_0xbc675e(0xd9)+'scription'](_0x5c2227),'severity':this[_0xbc675e(0x130)+_0xbc675e(0xbb)](_0x5c2227[_0xbc675e(0x12d)]),'lineNumber':_0x5c2227[_0xbc675e(0xbe)],'filePath':_0x5c2227[_0xbc675e(0xe2)]&&_0x5c2227[_0xbc675e(0xe2)]['length']>0x0?_0x5c2227['filePaths'][0x0]:undefined});}else{if(_0x50b855['vulnerabil'+_0xbc675e(0xc4)]&&Array['isArray'](_0x50b855['vulnerabil'+_0xbc675e(0xc4)]))for(const _0x1db5dd of _0x50b855[_0xbc675e(0x11b)+_0xbc675e(0xc4)]){_0x474d5e[_0xbc675e(0x131)]({'checkerKey':_0x1db5dd[_0xbc675e(0xdf)]||_0xbc675e(0xfa),'description':_0x1db5dd[_0xbc675e(0xfd)+'n']||_0x1db5dd[_0xbc675e(0x12b)]||_0xbc675e(0x99),'severity':this[_0xbc675e(0x130)+'y'](_0x1db5dd[_0xbc675e(0x111)]),'lineNumber':_0x1db5dd[_0xbc675e(0xbe)],'filePath':_0x1db5dd['filePath']});}}}return _0x474d5e;}[a2_0x444a9f(0x105)+'rabilityDe'+a2_0x444a9f(0x112)](_0x4fce51){const _0x1af3fa=a2_0x444a9f,_0x43e66e=[];_0x4fce51[_0x1af3fa(0xdf)]&&_0x43e66e[_0x1af3fa(0x131)](_0x1af3fa(0x10c)+_0x4fce51[_0x1af3fa(0xdf)]);_0x4fce51['method']&&_0x43e66e['push']('Method:\x20'+_0x4fce51[_0x1af3fa(0xd7)]);_0x4fce51[_0x1af3fa(0xe2)]&&_0x4fce51['filePaths'][_0x1af3fa(0x9e)]>0x0&&_0x43e66e[_0x1af3fa(0x131)](_0x1af3fa(0x135)+_0x4fce51[_0x1af3fa(0xe2)][0x0]);_0x4fce51['lineNumber']&&_0x43e66e['push'](_0x1af3fa(0x143)+_0x4fce51[_0x1af3fa(0xbe)]);_0x4fce51[_0x1af3fa(0x12d)]&&_0x43e66e[_0x1af3fa(0x131)](_0x1af3fa(0x113)+':\x20'+_0x4fce51[_0x1af3fa(0x12d)]);if(_0x4fce51[_0x1af3fa(0xc7)]&&Array[_0x1af3fa(0x9c)](_0x4fce51[_0x1af3fa(0xc7)])){const _0x12d5c4=[];for(const _0x2d22ea of _0x4fce51[_0x1af3fa(0xc7)]){if(_0x2d22ea['eventMsgs']&&Array[_0x1af3fa(0x9c)](_0x2d22ea['eventMsgs']))for(const _0x898efe of _0x2d22ea[_0x1af3fa(0xd5)]){if(_0x898efe['messages']&&Array[_0x1af3fa(0x9c)](_0x898efe[_0x1af3fa(0x146)]))for(const _0x589167 of _0x898efe['messages']){_0x589167[_0x1af3fa(0x12b)]&&_0x12d5c4[_0x1af3fa(0x131)](_0x589167[_0x1af3fa(0x12b)]);}}}_0x12d5c4[_0x1af3fa(0x9e)]>0x0&&_0x43e66e[_0x1af3fa(0x131)]('Details:\x20'+_0x12d5c4[_0x1af3fa(0x127)](';\x20'));}return _0x43e66e[_0x1af3fa(0x9e)]>0x0?_0x43e66e[_0x1af3fa(0x127)](',\x20'):_0x1af3fa(0xf3)+_0x1af3fa(0x133);}[a2_0x444a9f(0x130)+'yFromRisk'](_0x1a7b4b){const _0x1e29a2=a2_0x444a9f,_0x565f6b=typeof _0x1a7b4b===_0x1e29a2(0xb7)?parseInt(_0x1a7b4b):_0x1a7b4b;if(_0x565f6b<=0x2)return _0x1e29a2(0xa1);else return _0x565f6b===0x3?'MEDIUM':_0x1e29a2(0x140);}async['analyzeMul'+'tipleFiles'+a2_0x444a9f(0xf1)](_0x36f050){const _0x322ec9=a2_0x444a9f,_0x3f85b5={};_0x3f85b5[_0x322ec9(0xb6)]='다중\x20파일\x20보안\x20분'+_0x322ec9(0xda);const _0x4cd938=_0x3f85b5;try{if(_0x322ec9(0xd4)!=='pzrxr'){if(_0x5ca14a){const _0x18ef83=_0xab8ded[_0x322ec9(0x94)](_0xcb3224,arguments);return _0x41ee37=null,_0x18ef83;}}else{logger[_0x322ec9(0xcc)](_0x322ec9(0xbd)+_0x322ec9(0x122)+_0x36f050[_0x322ec9(0xdb)][_0x322ec9(0x9e)]+_0x322ec9(0xff));if(!_0x36f050[_0x322ec9(0xdb)]||_0x36f050[_0x322ec9(0xdb)]['length']===0x0)throw new Error('분석할\x20파일이\x20없습'+_0x322ec9(0x133));const _0x57e724=await this[_0x322ec9(0xa8)][_0x322ec9(0x147)+'ipleFiles'](_0x36f050[_0x322ec9(0xdb)],_0x36f050[_0x322ec9(0x141)+'e']);if(!_0x57e724['success'])throw new Error(_0x322ec9(0xe7)+'\x20'+_0x57e724[_0x322ec9(0xbc)]);const _0x3d691f=_0x36f050[_0x322ec9(0xdb)][0x0]?.[_0x322ec9(0x134)]||'input.zip',_0x3b3110={};_0x3b3110['fileName']=_0x36f050[_0x322ec9(0x141)+'e']||_0x3d691f,_0x3b3110[_0x322ec9(0x115)+'t']='',_0x3b3110['s3Key']=_0x57e724[_0x322ec9(0x107)];const _0x1910e5=_0x3b3110,_0x57f097=await this['sparrowSer'+_0x322ec9(0x149)][_0x322ec9(0xe4)+_0x322ec9(0x120)](_0x1910e5);logger[_0x322ec9(0xcc)](_0x322ec9(0x10e)+'청\x20완료:\x20'+_0x57f097[_0x322ec9(0x97)]);const _0x1e2ce8={};return _0x1e2ce8[_0x322ec9(0xd2)]=_0x57f097[_0x322ec9(0xd2)]||_0x57f097[_0x322ec9(0x97)],_0x1e2ce8[_0x322ec9(0xd8)]=_0x57f097[_0x322ec9(0xd8)],_0x1e2ce8;}}catch(_0xcd04a1){logger['error'](_0x4cd938[_0x322ec9(0xb6)],_0xcd04a1);throw _0xcd04a1;}}async[a2_0x444a9f(0xae)+a2_0x444a9f(0xa0)+'FromPaths'](_0x1ee7a3,_0x1b626c){const _0x3ef745=a2_0x444a9f;try{logger['info'](_0x3ef745(0xe6)+_0x3ef745(0x12e)+_0x3ef745(0x108)+_0x1ee7a3[_0x3ef745(0x9e)]+_0x3ef745(0x9a));if(!_0x1ee7a3||_0x1ee7a3[_0x3ef745(0x9e)]===0x0)throw new Error(_0x3ef745(0xa7)+'\x20없습니다.');const _0x419fbf=await this['s3Service']['uploadFile'+_0x3ef745(0x129)](_0x1ee7a3,_0x1b626c);if(!_0x419fbf[_0x3ef745(0xa5)])throw new Error(_0x3ef745(0xe7)+'\x20'+_0x419fbf['error']);const _0x71ce5b=a2_0x2c6260[_0x3ef745(0x11d)](_0x1ee7a3[0x0])||_0x3ef745(0x93),_0x9b664a={};_0x9b664a[_0x3ef745(0x134)]=_0x1b626c||_0x71ce5b,_0x9b664a[_0x3ef745(0x115)+'t']='',_0x9b664a['s3Key']=_0x419fbf['key'];const _0x2d591a=_0x9b664a,_0x2d3057=await this['sparrowSer'+_0x3ef745(0x149)][_0x3ef745(0xe4)+_0x3ef745(0x120)](_0x2d591a);logger[_0x3ef745(0xcc)]('파일\x20경로\x20기반\x20분'+_0x3ef745(0xcf)+_0x2d3057[_0x3ef745(0x97)]);const _0x3a40cb={};return _0x3a40cb['analysisId']=_0x2d3057[_0x3ef745(0xd2)]||_0x2d3057[_0x3ef745(0x97)],_0x3a40cb['status']=_0x2d3057['status'],_0x3a40cb;}catch(_0x56fefd){logger[_0x3ef745(0xbc)](_0x3ef745(0x139)+_0x3ef745(0x145)+':',_0x56fefd);throw _0x56fefd;}}async['analyzeZip'+a2_0x444a9f(0x117)](_0x5e6b42,_0x2193ab){const _0x518181=a2_0x444a9f;try{logger[_0x518181(0xcc)](_0x518181(0x10d)+_0x518181(0xe1)+_0x5e6b42);if(!_0x5e6b42)throw new Error(_0x518181(0xce)+_0x518181(0x95)+'다.');const _0x5ed0d7=await this['s3Service']['uploadZipF'+_0x518181(0xe8)](_0x5e6b42);if(!_0x5ed0d7[_0x518181(0xa5)])throw new Error(_0x518181(0xe9)+_0x518181(0x132)+_0x5ed0d7[_0x518181(0xbc)]);const _0x41bdb1=_0x2193ab||a2_0x2c6260['basename'](_0x5e6b42)||_0x518181(0x93),_0x54dd06={};_0x54dd06['fileName']=_0x41bdb1,_0x54dd06['fileConten'+'t']='',_0x54dd06[_0x518181(0xb4)]=_0x5ed0d7[_0x518181(0x107)];const _0x3a1905=_0x54dd06,_0x189974=await this[_0x518181(0xea)+_0x518181(0x149)][_0x518181(0xe4)+'lysis'](_0x3a1905);logger[_0x518181(0xcc)](_0x518181(0x10d)+'분석\x20요청\x20완료:\x20'+_0x189974[_0x518181(0x97)]);const _0x193432={};return _0x193432[_0x518181(0xd2)]=_0x189974['analysisId']||_0x189974[_0x518181(0x97)],_0x193432[_0x518181(0xd8)]=_0x189974[_0x518181(0xd8)],_0x193432;}catch(_0x520884){logger['error'](_0x518181(0x10d)+'보안\x20분석\x20요청\x20실'+'패:',_0x520884);throw _0x520884;}}async[a2_0x444a9f(0x13c)+a2_0x444a9f(0xdd)](_0x393d21,_0x34163e){const _0x3ba51f=a2_0x444a9f,_0x3e7c30={};_0x3e7c30['CccID']='폴더\x20경로가\x20제공되'+_0x3ba51f(0x12c);const _0x6db4d0=_0x3e7c30;try{logger[_0x3ba51f(0xcc)](_0x3ba51f(0x96)+_0x3ba51f(0x122)+_0x393d21);if(!_0x393d21)throw new Error(_0x6db4d0['CccID']);const _0x3b1303=await this[_0x3ba51f(0xa8)][_0x3ba51f(0xf2)+_0x3ba51f(0xa3)](_0x393d21,_0x34163e);if(!_0x3b1303[_0x3ba51f(0xa5)])throw new Error('폴더\x20압축\x20및\x20업로'+_0x3ba51f(0xd1)+_0x3b1303[_0x3ba51f(0xbc)]);const _0x24cfe7=_0x34163e||a2_0x2c6260[_0x3ba51f(0x11d)](_0x393d21)||'folder.zip',_0x455218={};_0x455218[_0x3ba51f(0x134)]=_0x24cfe7,_0x455218[_0x3ba51f(0x115)+'t']='',_0x455218[_0x3ba51f(0xb4)]=_0x3b1303[_0x3ba51f(0x107)];const _0xdbabec=_0x455218,_0x48e8d9=await this[_0x3ba51f(0xea)+_0x3ba51f(0x149)][_0x3ba51f(0xe4)+_0x3ba51f(0x120)](_0xdbabec);logger['info'](_0x3ba51f(0xfb)+'청\x20완료:\x20'+_0x48e8d9['requestId']);const _0x4a2e50={};return _0x4a2e50[_0x3ba51f(0xd2)]=_0x48e8d9[_0x3ba51f(0xd2)]||_0x48e8d9[_0x3ba51f(0x97)],_0x4a2e50['status']=_0x48e8d9[_0x3ba51f(0xd8)],_0x4a2e50;}catch(_0x3a3ec1){logger[_0x3ba51f(0xbc)](_0x3ba51f(0x96)+_0x3ba51f(0xda),_0x3a3ec1);throw _0x3a3ec1;}}[a2_0x444a9f(0x130)+'y'](_0x468774){const _0xb0c921=a2_0x444a9f,_0x5f3f55={};_0x5f3f55[_0xb0c921(0xa1)]=_0xb0c921(0xa1),_0x5f3f55[_0xb0c921(0xed)]='HIGH',_0x5f3f55[_0xb0c921(0xb2)]=_0xb0c921(0xb2),_0x5f3f55['LOW']='LOW',_0x5f3f55['INFO']=_0xb0c921(0x140);const _0x3933af=_0x5f3f55;return _0x3933af[_0x468774?.['toUpperCas'+'e']()]||_0xb0c921(0xb2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a3_0x20e533=a3_0x148a;(function(_0x27853f,_0x50b45b){const _0x58237a=a3_0x148a,_0x245e83=_0x27853f();while(!![]){try{const _0x184ea4=parseInt(_0x58237a(0x1c5))/0x1*(parseInt(_0x58237a(0x1f1))/0x2)+parseInt(_0x58237a(0x21b))/0x3+parseInt(_0x58237a(0x203))/0x4+parseInt(_0x58237a(0x1e7))/0x5+parseInt(_0x58237a(0x1ee))/0x6+-parseInt(_0x58237a(0x247))/0x7+-parseInt(_0x58237a(0x1d1))/0x8*(parseInt(_0x58237a(0x238))/0x9);if(_0x184ea4===_0x50b45b)break;else _0x245e83['push'](_0x245e83['shift']());}catch(_0x45ff34){_0x245e83['push'](_0x245e83['shift']());}}}(a3_0x9383,0xe1c0d));const a3_0x3e9a44=(function(){let _0x1ae606=!![];return function(_0x58cc18,_0x15cd6c){const _0x7c6342=_0x1ae606?function(){const _0x56d0af=a3_0x148a;if(_0x15cd6c){const _0x59cec2=_0x15cd6c[_0x56d0af(0x1e1)](_0x58cc18,arguments);return _0x15cd6c=null,_0x59cec2;}}:function(){};return _0x1ae606=![],_0x7c6342;};}()),a3_0xb78774=a3_0x3e9a44(this,function(){const _0x308321=a3_0x148a;return a3_0xb78774[_0x308321(0x201)]()[_0x308321(0x1f4)](_0x308321(0x246)+'+$')[_0x308321(0x201)]()['constructo'+'r'](a3_0xb78774)[_0x308321(0x1f4)]('(((.+)+)+)'+'+$');});function a3_0x9383(){const _0x5ceacf=['ode\x20qualit','\x20best\x20prac','de\x20(withou','e\x20original','1cESAxJ','ditional\x20t','alysisBrie','briefing\x20i','s\x20briefing','content','Ollama\x20API','\x20in\x20Englis','Unknown\x20er','improvemen','lish\x20compa','te\x20a\x20simpl','48ddkela','\x20code\x20and\x20','error','ately\x20200-','cureCodeBr','ring\x20the\x20f','generate\x20a','ription\x20of','check\x20if\x20t','is\x20results','s\x20Results:','baseUrl','briefing\x20s','\x20of\x20vulner','KlPYv','ETIMEDOUT','apply','n\x20the\x20same','sed\x20on\x20the','``java\x0a','ty\x20status\x20','\x20briefing:','1341290MMjSYN','g\x20in\x20appro','he\x20briefin','\x20error:\x20','stringify','\x20-\x20','lity\x20as\x20th','6908610sKLpuc','ity\x20vulner','is\x20running','997882jPJiqF','generateSe','\x0a4.\x20Areas\x20','search','ments\x0a2.\x20F','ror:\x20','wing\x20secur','ate','fCrno','code','fing\x20shoul','iefing.','te\x20a\x20brief','status','iginal\x20Cod','Brief\x20desc','toString','ease\x20retur','5177928TYGsVG','erate\x20secu','h\x20based\x20on','ximately\x203','generate\x20L','.\x20Maintain','nerabiliti','de\x20and\x20sec','data','isAxiosErr','hould\x20incl','Cannot\x20con','that\x20need\x20','re\x20code\x20ba','ters.','ity\x20analys','response','ava\x0a','ractices\x0a4','found\x20and\x20','that\x20fixes','re\x20Code:\x0a`','timeout','Please\x20wri','4879908nbbThc','\x20the\x20follo','Network\x20er','lain\x20secur','Ollama\x20ser','tion\x20timeo','\x0aOriginal\x20','generateAn','d\x20security','\x0a1.\x20Number','\x20briefing.','dMlaM','all\x20securi','jor\x20securi','es\x0a3.\x20Over','\x20functiona','300\x20charac',':\x0a\x0aAnalysi','ECONNREFUS','ror','d\x20include:','pply\x20secur','ure\x20code:\x0a','ude:\x0a1.\x20Ma','ements\x0a\x0aPl','post','abilities\x20','e\x20and\x20clea','2.\x20Maintai','5264262OuhNPT','riginal\x20co','t\x20explanat','ty\x20improve','model','nect\x20to\x20Ol','ability\x0a5.','lama\x20serve','\x20Add\x20comme','ver\x20connec','cureCode','\x0a3.\x20Applie','rabilities','success','(((.+)+)+)','2838913rsChGV','ixed\x20vulne','n\x20approxim','tices\x0a4.\x20C','ief','ecure\x20code','/api/gener','ions\x20or\x20ad','n\x20only\x20the','\x0a```\x0a\x0aThe\x20','r.\x20Please\x20','\x20all\x20secur','assessment','\x20security\x20','Failed\x20to\x20','abilities\x0a','Code:\x0a```j','ents\x0a\x0aPlea','generate\x20s','he\x20server\x20','message','\x20code\x20read','es:\x0a'];a3_0x9383=function(){return _0x5ceacf;};return a3_0x9383();}a3_0xb78774();import a3_0x21539a from'axios';import{appConfig}from'../config/appConfig.js';function a3_0x148a(_0x2f579f,_0x1b82ad){_0x2f579f=_0x2f579f-0x1b4;const _0x2ed1e9=a3_0x9383();let _0xb78774=_0x2ed1e9[_0x2f579f];return _0xb78774;}import{logger}from'../utils/logger.js';export class LLMService{[a3_0x20e533(0x1dc)];[a3_0x20e533(0x23c)];constructor(){const _0x16d28f=a3_0x20e533;this[_0x16d28f(0x1dc)]=appConfig['ollama'][_0x16d28f(0x1dc)],this['model']=appConfig['ollama'][_0x16d28f(0x23c)];}async[a3_0x20e533(0x222)+a3_0x20e533(0x1c7)+'f'](_0x13a4c2){const _0x47d3d0=a3_0x20e533,_0x810821={};_0x810821[_0x47d3d0(0x226)]=_0x47d3d0(0x20e)+_0x47d3d0(0x23d)+_0x47d3d0(0x23f)+_0x47d3d0(0x1b4)+_0x47d3d0(0x1d9)+_0x47d3d0(0x1bd)+'is\x20running'+'.',_0x810821[_0x47d3d0(0x1df)]=_0x47d3d0(0x21f)+_0x47d3d0(0x241)+_0x47d3d0(0x220)+'ut';const _0x5da463=_0x810821;try{const _0x35ca14=_0x47d3d0(0x21a)+_0x47d3d0(0x1d0)+_0x47d3d0(0x236)+'r\x20briefing'+_0x47d3d0(0x1cc)+_0x47d3d0(0x205)+_0x47d3d0(0x21c)+_0x47d3d0(0x1f7)+_0x47d3d0(0x212)+_0x47d3d0(0x1da)+_0x47d3d0(0x22c)+_0x47d3d0(0x1db)+'\x0a'+JSON[_0x47d3d0(0x1eb)](_0x13a4c2,null,0x2)+('\x0a\x0aThe\x20brie'+_0x47d3d0(0x1fb)+_0x47d3d0(0x22f)+_0x47d3d0(0x224)+_0x47d3d0(0x1de)+_0x47d3d0(0x235)+_0x47d3d0(0x216)+'classifica'+'tion\x20by\x20se'+'verity\x0a2.\x20'+_0x47d3d0(0x200)+_0x47d3d0(0x1d8)+'\x20major\x20vul'+_0x47d3d0(0x209)+_0x47d3d0(0x229)+_0x47d3d0(0x227)+_0x47d3d0(0x1e5)+_0x47d3d0(0x1b6)+_0x47d3d0(0x1f3)+_0x47d3d0(0x20f)+_0x47d3d0(0x1ce)+'t\x0a\x0aPlease\x20'+'write\x20the\x20'+_0x47d3d0(0x1c8)+_0x47d3d0(0x249)+_0x47d3d0(0x1d4)+_0x47d3d0(0x22b)+_0x47d3d0(0x211)),_0x7e195b={};_0x7e195b['timeout']=0x493e0;const _0x3390c7=await a3_0x21539a[_0x47d3d0(0x234)](this[_0x47d3d0(0x1dc)]+(_0x47d3d0(0x24d)+'ate'),{'model':this['model'],'prompt':_0x35ca14,'stream':![]},_0x7e195b),_0x550e20={};return _0x550e20[_0x47d3d0(0x1ca)]=_0x3390c7[_0x47d3d0(0x20b)][_0x47d3d0(0x213)],_0x550e20[_0x47d3d0(0x245)]=!![],_0x550e20;}catch(_0x3e9281){logger[_0x47d3d0(0x1d3)](_0x47d3d0(0x1b8)+_0x47d3d0(0x207)+'LM\x20analysi'+_0x47d3d0(0x1c9)+':',_0x3e9281);let _0x18beed=_0x47d3d0(0x1cd)+'ror';if(a3_0x21539a['isAxiosErr'+'or'](_0x3e9281)){if(_0x3e9281[_0x47d3d0(0x1fa)]===_0x47d3d0(0x22d)+'ED')_0x18beed=_0x5da463[_0x47d3d0(0x226)];else{if(_0x3e9281['code']===_0x47d3d0(0x1e0))_0x18beed=_0x5da463[_0x47d3d0(0x1df)];else _0x3e9281[_0x47d3d0(0x213)]?_0x18beed='Ollama\x20API'+_0x47d3d0(0x1ea)+_0x3e9281['response'][_0x47d3d0(0x1fe)]+_0x47d3d0(0x1ec)+JSON[_0x47d3d0(0x1eb)](_0x3e9281[_0x47d3d0(0x213)][_0x47d3d0(0x20b)]):_0x18beed=_0x47d3d0(0x21d)+_0x47d3d0(0x1f6)+_0x3e9281['message'];}}else _0x3e9281 instanceof Error&&(_0x18beed=_0x3e9281['message']);const _0x523c9d={};return _0x523c9d[_0x47d3d0(0x1ca)]=_0x47d3d0(0x1b8)+_0x47d3d0(0x1d7)+'nalysis\x20br'+_0x47d3d0(0x1fc),_0x523c9d[_0x47d3d0(0x245)]=![],_0x523c9d['error']=_0x18beed,_0x523c9d;}}async[a3_0x20e533(0x1f2)+a3_0x20e533(0x242)](_0x463a7b,_0x106676){const _0x1e6431=a3_0x20e533,_0x826875={};_0x826875[_0x1e6431(0x1f9)]=function(_0x50b8a5,_0x3718a9){return _0x50b8a5===_0x3718a9;};const _0xd06a7=_0x826875;try{const _0xfdb1bd='Please\x20gen'+_0x1e6431(0x204)+_0x1e6431(0x210)+_0x1e6431(0x1e3)+'\x20following'+_0x1e6431(0x1d2)+'discovered'+_0x1e6431(0x1b7)+'vulnerabil'+'ities:\x0a\x0aOr'+_0x1e6431(0x1ff)+'e:\x0a```java'+'\x0a'+_0x463a7b+('\x0a```\x0a\x0aDisc'+'overed\x20Vul'+_0x1e6431(0x209)+_0x1e6431(0x1c0))+JSON[_0x1e6431(0x1eb)](_0x106676,null,0x2)+('\x0a\x0aRequirem'+'ents:\x0a1.\x20G'+'enerate\x20se'+'cure\x20code\x20'+_0x1e6431(0x217)+_0x1e6431(0x1b5)+_0x1e6431(0x1ef)+_0x1e6431(0x1b9)+_0x1e6431(0x237)+_0x1e6431(0x1e2)+_0x1e6431(0x22a)+_0x1e6431(0x1ed)+_0x1e6431(0x1c4)+'\x20code\x0a3.\x20A'+_0x1e6431(0x230)+'ity\x20best\x20p'+_0x1e6431(0x215)+_0x1e6431(0x208)+_0x1e6431(0x1bf)+_0x1e6431(0x23e)+_0x1e6431(0x240)+'nts\x20to\x20exp'+_0x1e6431(0x21e)+'ity\x20improv'+_0x1e6431(0x233)+_0x1e6431(0x202)+_0x1e6431(0x24f)+'\x20secure\x20co'+_0x1e6431(0x1c3)+_0x1e6431(0x23a)+_0x1e6431(0x24e)+_0x1e6431(0x1c6)+'ext):'),_0x466a5d={};_0x466a5d[_0x1e6431(0x219)]=0x493e0;const _0x2fb45b=await a3_0x21539a['post'](this[_0x1e6431(0x1dc)]+(_0x1e6431(0x24d)+_0x1e6431(0x1f8)),{'model':this[_0x1e6431(0x23c)],'prompt':_0xfdb1bd,'stream':![]},_0x466a5d),_0x2285f5={};return _0x2285f5[_0x1e6431(0x1ca)]=_0x2fb45b[_0x1e6431(0x20b)][_0x1e6431(0x213)],_0x2285f5['success']=!![],_0x2285f5;}catch(_0x401d6b){logger[_0x1e6431(0x1d3)](_0x1e6431(0x1b8)+'generate\x20s'+_0x1e6431(0x24c)+':',_0x401d6b);let _0xbaf703=_0x1e6431(0x1cd)+_0x1e6431(0x22e);if(a3_0x21539a[_0x1e6431(0x20c)+'or'](_0x401d6b)){if(_0xd06a7[_0x1e6431(0x1f9)](_0x401d6b[_0x1e6431(0x1fa)],'ECONNREFUS'+'ED'))_0xbaf703='Cannot\x20con'+'nect\x20to\x20Ol'+_0x1e6431(0x23f)+_0x1e6431(0x1b4)+_0x1e6431(0x1d9)+'he\x20server\x20'+_0x1e6431(0x1f0)+'.';else{if(_0x401d6b[_0x1e6431(0x1fa)]===_0x1e6431(0x1e0))_0xbaf703=_0x1e6431(0x21f)+_0x1e6431(0x241)+_0x1e6431(0x220)+'ut';else _0x401d6b[_0x1e6431(0x213)]?_0xbaf703=_0x1e6431(0x1cb)+_0x1e6431(0x1ea)+_0x401d6b['response'][_0x1e6431(0x1fe)]+'\x20-\x20'+JSON[_0x1e6431(0x1eb)](_0x401d6b[_0x1e6431(0x213)][_0x1e6431(0x20b)]):_0xbaf703=_0x1e6431(0x21d)+'ror:\x20'+_0x401d6b[_0x1e6431(0x1be)];}}else _0x401d6b instanceof Error&&(_0xbaf703=_0x401d6b[_0x1e6431(0x1be)]);const _0x5b6d2e={};return _0x5b6d2e[_0x1e6431(0x1ca)]=_0x463a7b,_0x5b6d2e['success']=![],_0x5b6d2e[_0x1e6431(0x1d3)]=_0xbaf703,_0x5b6d2e;}}async['generateSe'+a3_0x20e533(0x1d5)+a3_0x20e533(0x24b)](_0x4cdee0,_0x42ece2){const _0x93334b=a3_0x20e533;try{const _0x3aae13=_0x93334b(0x21a)+_0x93334b(0x1fd)+'ing\x20in\x20Eng'+_0x93334b(0x1cf)+_0x93334b(0x1d6)+'ollowing\x20o'+_0x93334b(0x239)+_0x93334b(0x20a)+_0x93334b(0x231)+_0x93334b(0x221)+_0x93334b(0x1ba)+_0x93334b(0x214)+_0x4cdee0+('\x0a```\x0a\x0aSecu'+_0x93334b(0x218)+_0x93334b(0x1e4))+_0x42ece2+(_0x93334b(0x250)+_0x93334b(0x1dd)+_0x93334b(0x20d)+_0x93334b(0x232)+_0x93334b(0x228)+_0x93334b(0x23b)+_0x93334b(0x1f5)+_0x93334b(0x248)+_0x93334b(0x244)+_0x93334b(0x243)+_0x93334b(0x223)+_0x93334b(0x1c2)+_0x93334b(0x24a)+_0x93334b(0x1c1)+'y\x20improvem'+_0x93334b(0x1bb)+'se\x20write\x20t'+_0x93334b(0x1e9)+_0x93334b(0x1e8)+_0x93334b(0x206)+'00-400\x20cha'+'racters.'),_0x41d3fd={};_0x41d3fd[_0x93334b(0x219)]=0x493e0;const _0x40848e=await a3_0x21539a[_0x93334b(0x234)](this[_0x93334b(0x1dc)]+('/api/gener'+_0x93334b(0x1f8)),{'model':this[_0x93334b(0x23c)],'prompt':_0x3aae13,'stream':![]},_0x41d3fd),_0x4514b0={};return _0x4514b0[_0x93334b(0x1ca)]=_0x40848e[_0x93334b(0x20b)][_0x93334b(0x213)],_0x4514b0[_0x93334b(0x245)]=!![],_0x4514b0;}catch(_0x305442){logger[_0x93334b(0x1d3)](_0x93334b(0x1b8)+_0x93334b(0x1bc)+'ecure\x20code'+_0x93334b(0x1e6),_0x305442);let _0x31f570=_0x93334b(0x1cd)+_0x93334b(0x22e);if(a3_0x21539a['isAxiosErr'+'or'](_0x305442)){if(_0x305442['code']===_0x93334b(0x22d)+'ED')_0x31f570=_0x93334b(0x20e)+'nect\x20to\x20Ol'+_0x93334b(0x23f)+_0x93334b(0x1b4)+_0x93334b(0x1d9)+'he\x20server\x20'+'is\x20running'+'.';else{if(_0x305442[_0x93334b(0x1fa)]===_0x93334b(0x1e0))_0x31f570=_0x93334b(0x21f)+'ver\x20connec'+'tion\x20timeo'+'ut';else _0x305442[_0x93334b(0x213)]?_0x31f570=_0x93334b(0x1cb)+_0x93334b(0x1ea)+_0x305442[_0x93334b(0x213)][_0x93334b(0x1fe)]+_0x93334b(0x1ec)+JSON[_0x93334b(0x1eb)](_0x305442[_0x93334b(0x213)][_0x93334b(0x20b)]):_0x31f570=_0x93334b(0x21d)+_0x93334b(0x1f6)+_0x305442[_0x93334b(0x1be)];}}else _0x305442 instanceof Error&&(_0x31f570=_0x305442[_0x93334b(0x1be)]);const _0x36cb7f={};return _0x36cb7f[_0x93334b(0x1ca)]='Failed\x20to\x20'+_0x93334b(0x1bc)+_0x93334b(0x24c)+_0x93334b(0x225),_0x36cb7f[_0x93334b(0x245)]=![],_0x36cb7f[_0x93334b(0x1d3)]=_0x31f570,_0x36cb7f;}}}
|
|
1
|
+
function a3_0x34a3(){const _0x688dfc=['h\x20based\x20on','response','cureCode','\x20code\x0a3.\x20A','ror','code','188698NOEdoI','tion\x20timeo','racters.','Cannot\x20con','t\x20explanat','r\x20briefing','ext):','ollama','message','ty\x20status\x20','Failed\x20to\x20','iefing.','1183036BREaok','n\x20approxim','(((.+)+)+)','\x20briefing.','ETIMEDOUT','is\x20results','ude:\x0a1.\x20Ma','stringify','ava\x0a','ments\x0a2.\x20F','e\x20and\x20clea','cureCodeBr','generate\x20a','ity\x20improv','ver\x20connec','ollowing\x20o','ure\x20code:\x0a','pply\x20secur','t\x0a\x0aPlease\x20','discovered','abilities\x20','r.\x20Please\x20','nts\x20to\x20exp','lity\x20as\x20th','enerate\x20se','Unknown\x20er','toString','18zNuCzL','Please\x20gen','\x0aOriginal\x20','lain\x20secur','constructo','s\x20briefing','data','iginal\x20Cod','n\x20the\x20same','apply','ximately\x203','jAvvW','d\x20include:','ing\x20in\x20Eng','\x20-\x20','timeout','generateSe','g\x20in\x20appro','\x20in\x20Englis','s\x20Results:','hould\x20incl','3ZHAvcQ','ECONNREFUS','rabilities','model','he\x20server\x20','\x20major\x20vul','\x0a3.\x20Applie','cure\x20code\x20','8468919OUttRZ','ate','ring\x20the\x20f','\x0a1.\x20Number','\x0a```\x0a\x0aSecu','300\x20charac','briefing\x20i','error','LM\x20analysi','post','search','ity\x20analys','Ollama\x20API','he\x20briefin','ters.','\x0a\x0aThe\x20brie','ity\x20best\x20p','baseUrl','\x20of\x20vulner','ability\x0a5.','lish\x20compa','Network\x20er','2993466bGFQpf','\x20security\x20','status','ode\x20qualit','nect\x20to\x20Ol','jor\x20securi','2164928jFegmM','ities:\x0a\x0aOr','ditional\x20t','ions\x20or\x20ad','that\x20need\x20','\x0a```\x0a\x0aThe\x20','success','lama\x20serve','alysisBrie','es\x0a3.\x20Over','nalysis\x20br','write\x20the\x20','ents\x0a\x0aPlea','all\x20securi','isAxiosErr','\x0a\x0aRequirem','briefing\x20s','ief','classifica','``java\x0a','Ollama\x20ser','abilities\x0a','Please\x20wri','re\x20code\x20ba','ror:\x20','content','\x20best\x20prac','osGld','2932124kncifR','check\x20if\x20t','\x20the\x20follo','ixed\x20vulne','\x20all\x20secur','wing\x20secur','ription\x20of','3568350BxeByE','y\x20improvem','is\x20running','ecure\x20code','nerabiliti','ents:\x0a1.\x20G','e\x20original','/api/gener','generateAn','.\x20Maintain',':\x0a\x0aAnalysi','2.\x20Maintai','\x20Add\x20comme','Brief\x20desc','\x20code\x20and\x20','00-400\x20cha','tices\x0a4.\x20C','n\x20only\x20the','re\x20Code:\x0a`','ately\x20200-','es:\x0a','te\x20a\x20brief','de\x20and\x20sec'];a3_0x34a3=function(){return _0x688dfc;};return a3_0x34a3();}const a3_0xdb0f56=a3_0x2aa9;(function(_0x4580b6,_0x2edb81){const _0x12a718=a3_0x2aa9,_0x4389e2=_0x4580b6();while(!![]){try{const _0x3518cf=parseInt(_0x12a718(0x22c))/0x1+-parseInt(_0x12a718(0x220))/0x2*(-parseInt(_0x12a718(0x1bc))/0x3)+parseInt(_0x12a718(0x1fc))/0x4+parseInt(_0x12a718(0x203))/0x5+parseInt(_0x12a718(0x1a7))/0x6*(-parseInt(_0x12a718(0x1da))/0x7)+parseInt(_0x12a718(0x1e0))/0x8+-parseInt(_0x12a718(0x1c4))/0x9;if(_0x3518cf===_0x2edb81)break;else _0x4389e2['push'](_0x4389e2['shift']());}catch(_0x33a2f1){_0x4389e2['push'](_0x4389e2['shift']());}}}(a3_0x34a3,0xbc2ed));function a3_0x2aa9(_0x2717ba,_0x552831){_0x2717ba=_0x2717ba-0x1a1;const _0x3b9502=a3_0x34a3();let _0x4255f3=_0x3b9502[_0x2717ba];return _0x4255f3;}const a3_0x2ef00a=(function(){let _0x4e15e2=!![];return function(_0x17f859,_0x1181e7){const _0x35d1a7=_0x4e15e2?function(){const _0x4bb912=a3_0x2aa9;if(_0x1181e7){const _0x268af4=_0x1181e7[_0x4bb912(0x1b0)](_0x17f859,arguments);return _0x1181e7=null,_0x268af4;}}:function(){};return _0x4e15e2=![],_0x35d1a7;};}()),a3_0x4255f3=a3_0x2ef00a(this,function(){const _0x1b4d93=a3_0x2aa9;return a3_0x4255f3[_0x1b4d93(0x1a6)]()[_0x1b4d93(0x1ce)](_0x1b4d93(0x22e)+'+$')[_0x1b4d93(0x1a6)]()[_0x1b4d93(0x1ab)+'r'](a3_0x4255f3)[_0x1b4d93(0x1ce)]('(((.+)+)+)'+'+$');});a3_0x4255f3();import a3_0x531c85 from'axios';import{appConfig}from'../config/appConfig.js';import{logger}from'../utils/logger.js';export class LLMService{[a3_0xdb0f56(0x1d5)];[a3_0xdb0f56(0x1bf)];constructor(){const _0x1910f0=a3_0xdb0f56;this[_0x1910f0(0x1d5)]=appConfig[_0x1910f0(0x227)][_0x1910f0(0x1d5)],this[_0x1910f0(0x1bf)]=appConfig[_0x1910f0(0x227)][_0x1910f0(0x1bf)];}async[a3_0xdb0f56(0x20b)+a3_0xdb0f56(0x1e8)+'f'](_0x277fbe){const _0x1ea0f0=a3_0xdb0f56;try{const _0x17a800=_0x1ea0f0(0x1f6)+'te\x20a\x20simpl'+_0x1ea0f0(0x236)+_0x1ea0f0(0x225)+_0x1ea0f0(0x1b9)+_0x1ea0f0(0x21a)+_0x1ea0f0(0x1fe)+_0x1ea0f0(0x201)+_0x1ea0f0(0x1cf)+_0x1ea0f0(0x231)+_0x1ea0f0(0x20d)+_0x1ea0f0(0x1ba)+'\x0a'+JSON[_0x1ea0f0(0x233)](_0x277fbe,null,0x2)+(_0x1ea0f0(0x1d3)+'fing\x20shoul'+_0x1ea0f0(0x1b3)+_0x1ea0f0(0x1c7)+_0x1ea0f0(0x1d6)+_0x1ea0f0(0x240)+'found\x20and\x20'+_0x1ea0f0(0x1f2)+'tion\x20by\x20se'+'verity\x0a2.\x20'+_0x1ea0f0(0x210)+_0x1ea0f0(0x202)+_0x1ea0f0(0x1c1)+_0x1ea0f0(0x207)+_0x1ea0f0(0x1e9)+_0x1ea0f0(0x1ed)+_0x1ea0f0(0x229)+'assessment'+'\x0a4.\x20Areas\x20'+_0x1ea0f0(0x1e4)+'improvemen'+_0x1ea0f0(0x23e)+_0x1ea0f0(0x1eb)+_0x1ea0f0(0x1ca)+_0x1ea0f0(0x22d)+_0x1ea0f0(0x216)+_0x1ea0f0(0x1c9)+_0x1ea0f0(0x1d2)),_0x5144f8={};_0x5144f8[_0x1ea0f0(0x1b6)]=0x493e0;const _0x3d1b62=await a3_0x531c85[_0x1ea0f0(0x1cd)](this['baseUrl']+(_0x1ea0f0(0x20a)+_0x1ea0f0(0x1c5)),{'model':this[_0x1ea0f0(0x1bf)],'prompt':_0x17a800,'stream':![]},_0x5144f8),_0x30e7df={};return _0x30e7df[_0x1ea0f0(0x1f9)]=_0x3d1b62[_0x1ea0f0(0x1ad)][_0x1ea0f0(0x21b)],_0x30e7df[_0x1ea0f0(0x1e6)]=!![],_0x30e7df;}catch(_0x33c88d){logger[_0x1ea0f0(0x1cb)](_0x1ea0f0(0x22a)+'generate\x20L'+_0x1ea0f0(0x1cc)+_0x1ea0f0(0x1ac)+':',_0x33c88d);let _0x3921b3='Unknown\x20er'+_0x1ea0f0(0x21e);if(a3_0x531c85[_0x1ea0f0(0x1ee)+'or'](_0x33c88d)){if(_0x33c88d[_0x1ea0f0(0x21f)]===_0x1ea0f0(0x1bd)+'ED')_0x3921b3=_0x1ea0f0(0x223)+'nect\x20to\x20Ol'+'lama\x20serve'+_0x1ea0f0(0x1a1)+_0x1ea0f0(0x1fd)+_0x1ea0f0(0x1c0)+_0x1ea0f0(0x205)+'.';else{if(_0x33c88d[_0x1ea0f0(0x21f)]==='ETIMEDOUT')_0x3921b3=_0x1ea0f0(0x1f4)+_0x1ea0f0(0x23a)+_0x1ea0f0(0x221)+'ut';else _0x33c88d[_0x1ea0f0(0x21b)]?_0x3921b3=_0x1ea0f0(0x1d0)+'\x20error:\x20'+_0x33c88d[_0x1ea0f0(0x21b)]['status']+_0x1ea0f0(0x1b5)+JSON[_0x1ea0f0(0x233)](_0x33c88d['response'][_0x1ea0f0(0x1ad)]):_0x3921b3=_0x1ea0f0(0x1d9)+_0x1ea0f0(0x1f8)+_0x33c88d[_0x1ea0f0(0x228)];}}else _0x33c88d instanceof Error&&(_0x3921b3=_0x33c88d['message']);const _0x5a40e1={};return _0x5a40e1[_0x1ea0f0(0x1f9)]='Failed\x20to\x20'+_0x1ea0f0(0x238)+_0x1ea0f0(0x1ea)+_0x1ea0f0(0x22b),_0x5a40e1[_0x1ea0f0(0x1e6)]=![],_0x5a40e1['error']=_0x3921b3,_0x5a40e1;}}async[a3_0xdb0f56(0x1b7)+a3_0xdb0f56(0x21c)](_0x148845,_0x522fc2){const _0x2fe3c2=a3_0xdb0f56,_0x59f381={};_0x59f381[_0x2fe3c2(0x1b2)]=function(_0x2d34e1,_0x37475c){return _0x2d34e1 instanceof _0x37475c;};const _0x576fd3=_0x59f381;try{const _0x44533b=_0x2fe3c2(0x1a8)+'erate\x20secu'+_0x2fe3c2(0x1f7)+'sed\x20on\x20the'+'\x20following'+_0x2fe3c2(0x211)+_0x2fe3c2(0x23f)+_0x2fe3c2(0x1db)+'vulnerabil'+_0x2fe3c2(0x1e1)+_0x2fe3c2(0x1ae)+'e:\x0a```java'+'\x0a'+_0x148845+('\x0a```\x0a\x0aDisc'+'overed\x20Vul'+_0x2fe3c2(0x207)+_0x2fe3c2(0x217))+JSON[_0x2fe3c2(0x233)](_0x522fc2,null,0x2)+(_0x2fe3c2(0x1ef)+_0x2fe3c2(0x208)+_0x2fe3c2(0x1a4)+_0x2fe3c2(0x1c3)+'that\x20fixes'+_0x2fe3c2(0x200)+'ity\x20vulner'+_0x2fe3c2(0x1f5)+_0x2fe3c2(0x20e)+_0x2fe3c2(0x1af)+'\x20functiona'+_0x2fe3c2(0x1a3)+_0x2fe3c2(0x209)+_0x2fe3c2(0x21d)+_0x2fe3c2(0x23d)+_0x2fe3c2(0x1d4)+'ractices\x0a4'+_0x2fe3c2(0x20c)+'\x20code\x20read'+_0x2fe3c2(0x1d7)+_0x2fe3c2(0x20f)+_0x2fe3c2(0x1a2)+_0x2fe3c2(0x1aa)+_0x2fe3c2(0x239)+'ements\x0a\x0aPl'+'ease\x20retur'+_0x2fe3c2(0x214)+'\x20secure\x20co'+'de\x20(withou'+_0x2fe3c2(0x224)+_0x2fe3c2(0x1e3)+_0x2fe3c2(0x1e2)+_0x2fe3c2(0x226)),_0x2d6861={};_0x2d6861[_0x2fe3c2(0x1b6)]=0x493e0;const _0x119189=await a3_0x531c85[_0x2fe3c2(0x1cd)](this['baseUrl']+(_0x2fe3c2(0x20a)+_0x2fe3c2(0x1c5)),{'model':this[_0x2fe3c2(0x1bf)],'prompt':_0x44533b,'stream':![]},_0x2d6861),_0x28df54={};return _0x28df54[_0x2fe3c2(0x1f9)]=_0x119189[_0x2fe3c2(0x1ad)]['response'],_0x28df54[_0x2fe3c2(0x1e6)]=!![],_0x28df54;}catch(_0x1fdf85){logger['error']('Failed\x20to\x20'+'generate\x20s'+_0x2fe3c2(0x206)+':',_0x1fdf85);let _0x1e2ae3=_0x2fe3c2(0x1a5)+_0x2fe3c2(0x21e);if(a3_0x531c85[_0x2fe3c2(0x1ee)+'or'](_0x1fdf85)){if(_0x1fdf85[_0x2fe3c2(0x21f)]==='ECONNREFUS'+'ED')_0x1e2ae3=_0x2fe3c2(0x223)+_0x2fe3c2(0x1de)+_0x2fe3c2(0x1e7)+'r.\x20Please\x20'+_0x2fe3c2(0x1fd)+_0x2fe3c2(0x1c0)+_0x2fe3c2(0x205)+'.';else{if(_0x1fdf85[_0x2fe3c2(0x21f)]===_0x2fe3c2(0x230))_0x1e2ae3='Ollama\x20ser'+_0x2fe3c2(0x23a)+'tion\x20timeo'+'ut';else _0x1fdf85[_0x2fe3c2(0x21b)]?_0x1e2ae3=_0x2fe3c2(0x1d0)+'\x20error:\x20'+_0x1fdf85[_0x2fe3c2(0x21b)]['status']+_0x2fe3c2(0x1b5)+JSON[_0x2fe3c2(0x233)](_0x1fdf85[_0x2fe3c2(0x21b)][_0x2fe3c2(0x1ad)]):_0x1e2ae3=_0x2fe3c2(0x1d9)+_0x2fe3c2(0x1f8)+_0x1fdf85[_0x2fe3c2(0x228)];}}else _0x576fd3[_0x2fe3c2(0x1b2)](_0x1fdf85,Error)&&(_0x1e2ae3=_0x1fdf85[_0x2fe3c2(0x228)]);const _0x2c3672={};return _0x2c3672[_0x2fe3c2(0x1f9)]=_0x148845,_0x2c3672[_0x2fe3c2(0x1e6)]=![],_0x2c3672[_0x2fe3c2(0x1cb)]=_0x1e2ae3,_0x2c3672;}}async[a3_0xdb0f56(0x1b7)+a3_0xdb0f56(0x237)+a3_0xdb0f56(0x1f1)](_0x10b5c2,_0x189da8){const _0x37be48=a3_0xdb0f56,_0x26b067={};_0x26b067['osGld']=function(_0x3c752e,_0x3d45cb){return _0x3c752e===_0x3d45cb;};const _0x5eb846=_0x26b067;try{const _0x39eeba=_0x37be48(0x1f6)+_0x37be48(0x218)+_0x37be48(0x1b4)+_0x37be48(0x1d8)+_0x37be48(0x1c6)+_0x37be48(0x23b)+'riginal\x20co'+_0x37be48(0x219)+_0x37be48(0x23c)+_0x37be48(0x1a9)+'Code:\x0a```j'+_0x37be48(0x234)+_0x10b5c2+(_0x37be48(0x1c8)+_0x37be48(0x215)+_0x37be48(0x1f3))+_0x189da8+(_0x37be48(0x1e5)+_0x37be48(0x1f0)+_0x37be48(0x1bb)+_0x37be48(0x232)+_0x37be48(0x1df)+'ty\x20improve'+_0x37be48(0x235)+_0x37be48(0x1ff)+_0x37be48(0x1be)+_0x37be48(0x1c2)+'d\x20security'+_0x37be48(0x1fa)+_0x37be48(0x213)+_0x37be48(0x1dd)+_0x37be48(0x204)+_0x37be48(0x1ec)+'se\x20write\x20t'+_0x37be48(0x1d1)+_0x37be48(0x1b8)+_0x37be48(0x1b1)+_0x37be48(0x212)+_0x37be48(0x222)),_0x20af0d={};_0x20af0d[_0x37be48(0x1b6)]=0x493e0;const _0x638eca=await a3_0x531c85['post'](this[_0x37be48(0x1d5)]+(_0x37be48(0x20a)+_0x37be48(0x1c5)),{'model':this['model'],'prompt':_0x39eeba,'stream':![]},_0x20af0d),_0x41cdfd={};return _0x41cdfd[_0x37be48(0x1f9)]=_0x638eca[_0x37be48(0x1ad)]['response'],_0x41cdfd[_0x37be48(0x1e6)]=!![],_0x41cdfd;}catch(_0x1063f9){logger[_0x37be48(0x1cb)]('Failed\x20to\x20'+'generate\x20s'+_0x37be48(0x206)+'\x20briefing:',_0x1063f9);let _0x4c7c93=_0x37be48(0x1a5)+'ror';if(a3_0x531c85['isAxiosErr'+'or'](_0x1063f9)){if(_0x1063f9[_0x37be48(0x21f)]===_0x37be48(0x1bd)+'ED')_0x4c7c93=_0x37be48(0x223)+_0x37be48(0x1de)+_0x37be48(0x1e7)+_0x37be48(0x1a1)+_0x37be48(0x1fd)+_0x37be48(0x1c0)+_0x37be48(0x205)+'.';else{if(_0x5eb846[_0x37be48(0x1fb)](_0x1063f9[_0x37be48(0x21f)],_0x37be48(0x230)))_0x4c7c93=_0x37be48(0x1f4)+_0x37be48(0x23a)+'tion\x20timeo'+'ut';else _0x1063f9[_0x37be48(0x21b)]?_0x4c7c93='Ollama\x20API'+'\x20error:\x20'+_0x1063f9[_0x37be48(0x21b)][_0x37be48(0x1dc)]+'\x20-\x20'+JSON[_0x37be48(0x233)](_0x1063f9[_0x37be48(0x21b)][_0x37be48(0x1ad)]):_0x4c7c93=_0x37be48(0x1d9)+'ror:\x20'+_0x1063f9[_0x37be48(0x228)];}}else _0x1063f9 instanceof Error&&(_0x4c7c93=_0x1063f9[_0x37be48(0x228)]);const _0x359775={};return _0x359775[_0x37be48(0x1f9)]=_0x37be48(0x22a)+'generate\x20s'+_0x37be48(0x206)+_0x37be48(0x22f),_0x359775[_0x37be48(0x1e6)]=![],_0x359775[_0x37be48(0x1cb)]=_0x4c7c93,_0x359775;}}}
|