1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 15:23:39 +00:00
Commit Graph

98 Commits

Author SHA1 Message Date
Bryan Roe
54b291187b 1. Fixed compiler warning when NO_IFADDR is defined
2. Added pthread_timedjoin_np() workaround for older glibc/gcc
2020-04-23 16:47:57 -07:00
Bryan Roe
e7f46497bd Fixed bug in ScriptContainer on Windows, where a dispatch failed 2020-04-22 17:24:25 -07:00
Bryan Roe
71d4b1edca 1. Fixed compiler warnings
2. Updated thread cleanup/finalizer logic to rely on ctxd if necessary
2020-04-20 17:01:53 -07:00
Bryan Roe
5ba1288cdf Modified JS runtime to use ILibMemory_Extra to point to udata structure,
then used that for consistency checks
2020-04-17 15:05:47 -07:00
Bryan Roe
a714468636 Added gateway support to MeshAGent.NetInfo and OS.networkInterfaces() for macOS 2020-03-18 16:41:21 -07:00
Bryan Roe
ffcffafeb5 1. modified os.platform() to return process.platform, for consistency
2. updated os.name() on Windows to try to fetch name and id from registry
2020-02-24 10:11:42 -08:00
Bryan Roe
4d7aa678bd Fixed build for No_OpenSSL build mode 2020-02-14 09:14:17 -08:00
Bryan Roe
5476ad8b5f 1. added 'slaveKvmLog' flag to msh, to enable Linux Child KVM logging
2. added support for child process core dumps in Linux (Note: core location must be writable by the process)
2019-10-25 13:42:07 -07:00
Bryan Roe
8eb3bd76e4 1. updated process.kill() to support optional signals
2. added 'SIGCHLD'
2019-10-18 17:37:48 -07:00
Bryan Roe
b2f3e28c33 1. Fixed windows null dereference crash
2. Updated Linux KVM support check, to check if X is apawned, which fixes cases where X libraries are present, but X isn't running.
2019-09-19 15:15:29 -07:00
Bryan Roe
17839ec388 Added missing ifndef to prevent modifying rlimit on windows 2019-09-11 10:29:46 -07:00
Bryan Roe
da6cf39dd2 Added 'index' to networkInterfaces() on windows
Added missing #define
Added IPAddress helper
2019-09-08 19:30:31 -07:00
Bryan Roe
303bde7654 Updated, so on non-windows platforms, when coreDumpLocation is set or reset, the process.rlimit is adjusted to enable/disable generating a core file. 2019-08-27 15:12:49 -07:00
Bryan Roe
31ccab899a Added ability to get/set rlimits on non windows platforms 2019-08-27 14:05:08 -07:00
Bryan Roe
356cadb599 Added setting for coreDumpLocation 2019-08-26 16:57:52 -07:00
Bryan Roe
fa6836d17a Added ability to generate Dump file on crash, on Windows 2019-08-26 14:16:39 -07:00
Bryan Roe
3ef2c541f4 1. Updated failover for os.name() on linux to check DISTRIB_DESCRIPTION
2. Fixed substring bug, that chopped off the last character of os.name()
2019-08-23 00:02:00 -07:00
Bryan Roe
51018a2192 updated os.name() for linux, to return first result if PRETTY_NAME is not found 2019-08-22 21:21:42 -07:00
Bryan Roe
424720211d Updated NetInfo, so desc is omitted if it's blank (MacOS/FreeBSD). Updated os.networkInterfaces() for FreeBSD 2019-06-25 23:39:35 -07:00
Bryan Roe
fc8fba9f62 Fixed bug with os.hostname() 2019-06-24 16:45:30 -07:00
Bryan Roe
f8eca4008a Fixed line ending 2019-06-18 11:39:45 -07:00
Bryan Roe
318b58ad3c Fixed typo 2019-06-18 10:43:41 -07:00
Bryan Roe
00d0066b2a Added os.nics() helper for freebsd 2019-06-17 18:19:52 -07:00
Bryan Roe
c51dcb4e8d update os.name() for freebsd 2019-06-17 16:46:22 -07:00
Bryan Roe
124c0d386f Initial modifications to support FreeBSD 2019-06-17 15:45:46 -07:00
Bryan Roe
68fd05d4c8 Fixed linux compiler warning 2019-06-13 10:49:29 -07:00
Bryan Roe
1fc476d31e 1. Added process.pid on windows
2. Added user-sessions.consoleUid() on windows
3. updated message-box to dispatch to consoleUid when necessary on Windows
2019-05-17 14:23:51 -07:00
Bryan Roe
7cf000571d 1. Fixed compiler warning
2. Updated so process.exit() throws exception when called in agent mode
2019-05-14 14:52:39 -07:00
Bryan Roe
2015b668f2 Added commitHash to process.versions.meshAgent 2019-05-09 14:58:42 -07:00
Bryan Roe
7b98af6a60 Added process.versions 2019-05-08 18:30:13 -07:00
Bryan Roe
429b645a54 1. Added ability to modify environment variables on ScriptContainers
2. Fixed bug, where child ScriptContainer would exit if return value had a JSON parse error
2019-03-12 22:23:30 -07:00
Bryan Roe
268b0dd26f 1. Fixed compiler warning
2. Fixed bug where process.arch wasn't defined
3. Integrated PE_Parser on windows
2019-03-04 18:24:07 -08:00
Bryan Roe
cefd3018d9 1. Added more cleanup for signal handlers
2. Updated, so signal is only registered if there are listeners on the event
2019-02-20 18:22:15 -08:00
Bryan Roe
32f8179137 Added cleanup for signal descriptor 2019-02-20 16:02:37 -08:00
Bryan Roe
f6762fd724 1. Added SIGTERM even for linux/macos
2. Hooked up 'serviceStop' event for linux/macos
2019-02-20 15:55:06 -08:00
Bryan Roe
05400ea3aa Fixed compiler warning 2019-02-11 14:43:24 -08:00
Bryan Roe
2d8c213b9d Rebuilt http-digest in pure JS to fix some issues 2019-02-11 14:07:48 -08:00
Bryan Roe
e9f8626be8 Added missing Canary checks, and altered engine_free to wipe memory 2019-02-01 13:02:14 -08:00
Bryan Roe
e3f1d7121c Added process.cwd() 2019-02-01 01:12:32 -08:00
Bryan Roe
61de975f3a 1. Unified how JS modules can be integrated, by creating an ILibDuktape_Polyfills_JS_Init() method.
2. Updated behavior so when modules are queried, local filesystem takes precedence on search results
3. Updated 'promise' integration to use the new method above
4. Added 'win-registry' integration on windows, so it can be used by agentcore.c
2019-01-28 15:56:41 -08:00
Bryan Roe
97a2e5b12c Updated so compiles for MIPS correctly 2019-01-23 14:32:52 -08:00
Bryan Roe
71a9d2ba17 Added MacOS support
Fixed 'child' race condition
Fixed compiler warnings
2019-01-11 12:28:03 -08:00
Ylian Saint-Hilaire
3c80473a94 Major agent update. 2018-09-05 11:01:17 -07:00
Ylian Saint-Hilaire
4b5c77b4fd Many improvements. 2018-02-11 21:11:58 -08:00
Ylian Saint-Hilaire
508646044e Much improved, better stability, lots of fixes 2018-01-12 11:50:04 -08:00
Ylian Saint-Hilaire
becf71557f Improved agent that can update the MeshCentral1 agent 2017-11-09 16:07:39 -08:00
Ylian Saint-Hilaire
34e09c2304 MeshAgent for MeshCentral2 Beta2 with improved crypto. 2017-10-25 21:08:41 -07:00
Ylian Saint-Hilaire
75d86eb4c8 First commit of MeshAgent for MeshCentral 2017-10-12 14:28:03 -07:00