Ylianst / MeshAgent

MeshAgent used along with MeshCentral to remotely manage computers. Many variations of the background management agent are included as binaries in the MeshCentral project.
https://meshcentral.com
213 stars 84 forks source link

I want to change win-userconsent.js and win-dialog.js in modules from MeshAgent. #184

Open amoljagdalepucsd opened 1 year ago

amoljagdalepucsd commented 1 year ago

Hi Mesh central Community , I want to change win-userconsent.js and win-dialog.js in modules and build the agent but changes made in agent-installer.js is not reflecting Can you help me in this. @si458

heldner commented 5 months ago

Hi @amoljagdalepucsd! You need to import modified js after build meshagent, it's explained in #167. For linux, it will be these command:

 ./meshagent_x86-64 -export

edit files in modules_expanded dir, then make encode\compile ILibDuktape_Polyfills.c

./meshagent_x86-64 -exec "require('code-utils').shrink({modulesPath:'${PWD}/modules',filePath:'${PWD}/microscript/ILibDuktape_Polyfills.c'});process.exit();"

then build agent again

si458 commented 1 month ago

ALSO, just discovered, you can actually just place the .js files next to meshagent.exe, restart meshagent and it loads that module if it exists!