Saturday, 5 October 2019

Is it possible to send array of functions over HTTP request to remote server then execute it ?

I manage multiple servers & for some complicated and various reasons i don't want to host in those remote servers any source code.What i basically want to do is to send a Post request, with a payload that contains an array of (encrypted ?) functions. the remote server will then receive the post request, loop over array of functions & exec them.i tried something like :var function_in_module = require('./function_in_module");var function_to_push = function_in_module.methodvar function_to_exec = [function_to_push ];​when i check the function_to_exec variable in the remote server, it returns [null].​any idea how to proceed ?

Submitted October 05, 2019 at 06:25PM by SuspiciousTaco

No comments:

Post a Comment