1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-27 06:43:17 +00:00

Commit Graph

  • 9205af5804 removed debug line Bryan Roe 2019-02-25 22:39:24 -08:00
  • 382ea03135 Updated file access, so the db can be queried while an agent is still active Bryan Roe 2019-02-25 21:43:48 -08:00
  • 683852f70a Fixed bug, where hook handler was always NULL when it was checked Bryan Roe 2019-02-22 10:14:21 -08:00
  • 69cd6a0c6b Updated upstart check, and added support for sysV/init Bryan Roe 2019-02-22 02:21:25 -08:00
  • d12afc14a6 1. Fixed Service Detection on SystemD, and changed to use auto-restart instead of systemctrl restart, to remove dependency on restart=always Bryan Roe 2019-02-21 08:15:32 -08:00
  • cefd3018d9 1. Added more cleanup for signal handlers 2. Updated, so signal is only registered if there are listeners on the event Bryan Roe 2019-02-20 18:22:15 -08:00
  • 176facc799 Updated 'newListener' and 'hookedEvent', to follow node, so that it is emitted before the listener is added Bryan Roe 2019-02-20 18:21:35 -08:00
  • 6bd4b027f5 Updated Self-Update, so that upstart is correctly used on upstart platforms Bryan Roe 2019-02-20 17:26:30 -08:00
  • 84fbd554eb Removed code comments for dead code Bryan Roe 2019-02-20 17:25:40 -08:00
  • 32f8179137 Added cleanup for signal descriptor Bryan Roe 2019-02-20 16:02:37 -08:00
  • f6762fd724 1. Added SIGTERM even for linux/macos 2. Hooked up 'serviceStop' event for linux/macos Bryan Roe 2019-02-20 15:55:06 -08:00
  • 25b5f88bba Updated AUTO_START Bryan Roe 2019-02-20 14:24:10 -08:00
  • 6128d2102d Updated Windows Bryan Roe 2019-02-20 14:02:33 -08:00
  • 597c73b677 Updated init and systemd Bryan Roe 2019-02-20 13:02:44 -08:00
  • 9ba3fbf4a1 Updated, so on linux, if env variable for proxy isn't set, it'll check /etc/environment to see if proxy is set. Bryan Roe 2019-02-19 13:52:32 -08:00
  • e370491f98 Fixed compiler warning Bryan Roe 2019-02-19 11:02:23 -08:00
  • 5da959c16a 1. Added metadata to _GenericMarshal 2. Added BootStrapCore functionality Bryan Roe 2019-02-18 21:45:58 -08:00
  • 19b53f1cd4 1. Fixed, so state is cleaned up correctly if you exit instead of disconnect 2. Fixed, so 'end' is propagated to the websocket when terminal exits. Bryan Roe 2019-02-15 23:31:22 -08:00
  • f6eed29c31 Modified behavior on Windows to match that on Linux... If the db is wiped, new certs will be generated. Also updated the Mesh Agent Service Installer on windows, so that the db is wiped on install. MeshCentral_v0.2.8-n Bryan Roe 2019-02-15 15:02:42 -08:00
  • ec112d2d22 Fixed compiler warning Bryan Roe 2019-02-15 13:53:55 -08:00
  • a9cb689ec3 Removed dead code, and added 'eventNames' Bryan Roe 2019-02-15 00:48:57 -08:00
  • c4a56475fa Fixed bug in Url swap for bad migration Bryan Roe 2019-02-14 17:09:52 -08:00
  • 09eac9f968 Added fix, to correct the server uri obtained from Meshcentral.com migration Bryan Roe 2019-02-14 16:07:36 -08:00
  • b9af163039 Added ability to log control channel messages Bryan Roe 2019-02-14 14:03:33 -08:00
  • ed92a0b21c Fixed capitalization of include, when NOTLS is built Bryan Roe 2019-02-13 16:36:38 -08:00
  • 2f657f31e5 1. Updated 'addMethod' on emitter, to return this, so you can chain multiple together 2. Updated wget return value to expose an 'abort' event Bryan Roe 2019-02-13 16:05:51 -08:00
  • 76fac42a5f Added 'abort' to wget and clientRequest Bryan Roe 2019-02-13 15:57:32 -08:00
  • 65e44f0a9d Removed 'nocontinue' functionality from piped streams Bryan Roe 2019-02-13 15:57:02 -08:00
  • 353b4b2181 Added 'wget' Bryan Roe 2019-02-13 11:09:05 -08:00
  • 6918c90253 Renamed '_eventHook' on EventEmitter to 'newListener' to match node definition Bryan Roe 2019-02-12 21:40:08 -08:00
  • 9542a14ada added missing Proxy support for non TLS connections Bryan Roe 2019-02-12 17:57:22 -08:00
  • d491aeb98f Added NULL check on uncaught exceptions Bryan Roe 2019-02-12 17:56:27 -08:00
  • e6dca12458 Updated comments Bryan Roe 2019-02-12 16:55:50 -08:00
  • ea62661a2d Added ability to specify a JS Debugger Port in the db Bryan Roe 2019-02-12 16:54:34 -08:00
  • bfce186759 Updated Duktape_GetBuffer(), so if the object is null or undefined, it returns NULL instead of throwing an exception Bryan Roe 2019-02-12 16:54:04 -08:00
  • a52a8e0c9f Fixed behavior so WebSoketServer does not mask data, when talking to clients, to fix interop issue with Chrome Bryan Roe 2019-02-12 16:34:23 -08:00
  • 09a2c17104 Changed UINT_PTR to uintptr_t Bryan Roe 2019-02-12 14:15:28 -08:00
  • 99f688d01a Documented list of agent configuration db keys Bryan Roe 2019-02-12 14:03:14 -08:00
  • 995c4015b0 Added functionality so if 'webSocketMaskOverride' is specified in the db, the optimization to disable masking for TLS protected websockets is disabled Bryan Roe 2019-02-12 13:43:42 -08:00
  • 92abf51a8d Updated, so httpStream and WebSocketStream are identified as http or https depending if the underlying socket is a net.socket or tls.socket. Also, updated the noMasking flag on WebSocket, so it's only set if it s an https.WebSocketStream. Bryan Roe 2019-02-11 22:14:22 -08:00
  • eaf4d408a8 Updated linux clipboard Bryan Roe 2019-02-11 17:43:41 -08:00
  • cce3d7694b Added more methods Bryan Roe 2019-02-11 17:19:17 -08:00
  • 57a8d5df1c Added DescriptorEvents Bryan Roe 2019-02-11 17:18:50 -08:00
  • 05400ea3aa Fixed compiler warning Bryan Roe 2019-02-11 14:43:24 -08:00
  • 2d8c213b9d Rebuilt http-digest in pure JS to fix some issues Bryan Roe 2019-02-11 14:07:48 -08:00
  • 86d0b0fd18 fixed compiler warning Bryan Roe 2019-02-10 21:53:41 -08:00
  • a10bd1a205 added ability to read clipboard for windows Bryan Roe 2019-02-09 19:22:27 -08:00
  • e8594d6b64 Added Clipboard helper Bryan Roe 2019-02-09 00:14:54 -08:00
  • 9697af5215 Updated so 'Finish' is emitted when "Ready" is called, after 'End' is emitted; Bryan Roe 2019-02-08 15:25:38 -08:00
  • 52d0510e7b Added String.padStart polyfill Bryan Roe 2019-02-08 15:23:39 -08:00
  • 6afb6e5316 1. Modified, so if connection: close is specified, it won't try to reuse the socket 2. Added 'generateNonce' helper method Bryan Roe 2019-02-08 15:23:10 -08:00
  • 8f1501a343 Added listenerCount Bryan Roe 2019-02-08 10:39:35 -08:00
  • ae72740a18 1. Updated ILibProcessPipe, so that buffer will grow as necessary 2. Updated Windows KVM, to add an accumulator for JUMBO commands Bryan Roe 2019-02-06 16:32:31 -08:00
  • 8d8099f0d4 added inline JS support to Service Bryan Roe 2019-02-05 19:05:03 -08:00
  • 2096619903 Enable Jumbo Support on Windows KVM Bryan Roe 2019-02-04 17:10:37 -08:00
  • 26a3ccefd0 Added missing includes, if NOTLS is specified for Linux Bryan Roe 2019-02-04 12:49:44 -08:00
  • 82e25a12ea Fixed Build configuration for Release_NoOpenSSL_x64, which was pointing to wrong configuration in solution file Added missing link for ncrypt for NoOpenSSL configuration Bryan Roe 2019-02-04 12:32:49 -08:00
  • e9f5209552 Changed how the ForceUnblockPipe works on Linux, to not use fdopen/fdclose. Also modified, so when flushing the ForceUnblockPipe, if the descriptor is invalid, it will recreate it, fixing a 100% CPU issue on linux, that seems to happen after a self-update. Bryan Roe 2019-02-02 22:49:20 -08:00
  • 817f2786e2 Updated 'ChainViewer' Bryan Roe 2019-02-02 02:55:12 -08:00
  • aeaa229e31 1. Modified WebRTC_DataChannel to use union, to simplify struct def 2. Added ChainLink MetaData 3. Added 'ChainViewer' to allow JS to debug Chain events Bryan Roe 2019-02-01 23:33:02 -08:00
  • 88c63b2976 Added ability to inline JS on the command line Bryan Roe 2019-02-01 17:22:56 -08:00
  • 1b5a6d0bc6 Updated selfupdate to use fork/execv instead of command Updated SelfUpdate logging Added SelfUpdate debugging helpers Bryan Roe 2019-02-01 17:22:33 -08:00
  • 032e350bf9 Updated uninstallService to be sync on linux instead of async Bryan Roe 2019-02-01 13:02:43 -08:00
  • e9f8626be8 Added missing Canary checks, and altered engine_free to wipe memory Bryan Roe 2019-02-01 13:02:14 -08:00
  • bd16538a8e Fixed compiler warnings on MacOS Bryan Roe 2019-02-01 01:13:07 -08:00
  • e3f1d7121c Added process.cwd() Bryan Roe 2019-02-01 01:12:32 -08:00
  • da44eddf29 Fixed edge case that could cause an infinite loop Bryan Roe 2019-01-31 22:38:56 -08:00
  • 5995742cef Added db key to log update messages to aid in debugging update failures. Bryan Roe 2019-01-31 14:40:52 -08:00
  • ca0ff0403a updated service install to be sync on linux instead of async Bryan Roe 2019-01-31 14:39:56 -08:00
  • 0cb052fcc6 Added additional check to verify if emitter was finalized Bryan Roe 2019-01-31 14:38:51 -08:00
  • a6cbc1a9c1 Fixed typo in comments Bryan Roe 2019-01-30 23:39:52 -08:00
  • 56cf77e147 Added comments about Linux KVM with regards to X and DM Edited comments on installing libjpeg headers. Bryan Roe 2019-01-30 23:37:23 -08:00
  • 12a7e3e4a0 fixed misspelling in message Bryan Roe 2019-01-30 23:20:37 -08:00
  • 52ff7ba04c 1. Updated user-sessions.consoleUid() to not try to parse 'from'. It just returns the uid of any user listed in 'who'. This fixes Fedora, but should still work with all the other distros. 2. Updated, so if it can't find an Xauthority, it propagates an error, asking if the user configured DM to use X. This makes it, so on something like Fedora, it pops up a more intuitive error, that the user can fix, rather than just a generic, XOpenDisplay() error. Bryan Roe 2019-01-30 23:17:39 -08:00
  • 60df8bbd56 Fixed bug, where _write didn't return a value. This is important, because of bugfix with Polyfill for stream, which accidentally ignored this return value Bryan Roe 2019-01-30 21:30:08 -08:00
  • cef67a1c8e Updated, so if ignoreProxyFile is specified in db, it will not try to use a proxy Bryan Roe 2019-01-30 13:03:37 -08:00
  • 1f4f3185bd Updated JS WebRTC debug hooks Bryan Roe 2019-01-29 22:41:35 -08:00
  • 305f04ad2e Updated behavior, so if a websocket write occurs on a non microstack thread, and it needs to merge buffers, it will allocate off the heap instead of the stack, to prevent a stack overflow if a very large amount of data is passed in. Bryan Roe 2019-01-29 17:14:44 -08:00
  • dfbe5bca50 Added proxy detection logic for MacOS Bryan Roe 2019-01-29 14:44:20 -08:00
  • ba0c2f645e Updated behavior, so if a HECI descriptor has a read error, it will emit 'error' instead of 'end' MeshCentral_v0.2.7-b Bryan Roe 2019-01-29 10:46:16 -08:00
  • 0557787ceb Updated behavior of getJSModule so that the order of precedence matches the recent changes to require() Bryan Roe 2019-01-29 00:37:29 -08:00
  • 258c1396c7 Added proxy detection logic on windows Bryan Roe 2019-01-28 15:57:11 -08:00
  • 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 Bryan Roe 2019-01-28 15:56:41 -08:00
  • f38ec1df08 Added 'isRoot' for Windows implementation, to match Linux and MacOS Bryan Roe 2019-01-28 15:54:31 -08:00
  • a3780d8fa1 Added enumeration support Bryan Roe 2019-01-28 12:04:46 -08:00
  • ba4028d2d6 1. fixed bug, where return value was set incorrectly when calling _write 2. updated behavior, so if unshift is called with zero length buffer, it is a no-op Bryan Roe 2019-01-28 10:42:20 -08:00
  • 559928de5b The following updates, fix KVM for openSUSE and other distros with similar behavior MeshCentral_v0.2.6-x Bryan Roe 2019-01-24 11:19:33 -08:00
  • bf6e9ce1e0 test script Bryan Roe 2019-01-24 07:54:48 -08:00
  • cf856b0d1d Added default value of ':0' if $DISPLAY is not set MeshCentral_v0.2.6-w Bryan Roe 2019-01-23 18:42:42 -08:00
  • 74d8bd9aac Fixed compiler warning Bryan Roe 2019-01-23 17:50:18 -08:00
  • 6c6c0ff9ab Updated, so if XOpenDisplay() fails, an error is propagated back up Bryan Roe 2019-01-23 17:17:05 -08:00
  • 14a65d4bca Updated LocalMacAddress check, so resetNodeId will only be determined if the list of local MACs contains something other than zeros. Bryan Roe 2019-01-23 16:39:30 -08:00
  • d6500322b9 Updated, so double-click events are propagated from browser to agent. On MacOS, this is then used to simulate double-click, as Linux/Windows doesn't need to explicitly simulate double-click. Bryan Roe 2019-01-23 15:54:40 -08:00
  • 5c01a68c26 updated comments Bryan Roe 2019-01-23 14:37:59 -08:00
  • 00dd28b4a2 Merge branch 'master' of https://github.com/Ylianst/MeshAgent Bryan Roe 2019-01-23 14:33:40 -08:00
  • 97a2e5b12c Updated so compiles for MIPS correctly Bryan Roe 2019-01-23 14:32:52 -08:00
  • ebbeb07c45 Added double click stub for MacOS. Ylian Saint-Hilaire 2019-01-23 13:21:43 -08:00
  • 3a0f519f54 Fixed bug, where if Duktape_GetContextGuidHex() returned non-NULL, an attempt to modify immutable memory was attempted Bryan Roe 2019-01-23 11:37:42 -08:00
  • 3b514cd526 fixed typo MeshCentral_v0.2.6-u Bryan Roe 2019-01-22 17:05:44 -08:00
  • 69947b9c8c Fixed bug where resolution was only sent on first KVM connection Bryan Roe 2019-01-22 16:30:41 -08:00