1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-29 15:53:30 +00:00

Commit Graph

  • 9319b61bfa Fixed bug with ReallocRaw macro, if the memoy location moves Bryan Roe 2019-05-01 16:10:11 -07:00
  • 8c6a230d1e 1. Fixed bug with createConnection() 2. Updated Windows IPC Bryan Roe 2019-04-30 15:15:20 -07:00
  • 3ebe0495fe Merge branch 'master' of https://github.com/Ylianst/MeshAgent Bryan Roe 2019-04-29 13:28:10 -07:00
  • 46a7d48b9e Specified missing calling convention Bryan Roe 2019-04-29 13:27:46 -07:00
  • 087298f032 Added ARMv8 64bit (aarch64) as agent id 26 + binary libraries. Ylian Saint-Hilaire 2019-04-28 11:38:09 -07:00
  • 1e58eaf103 Experimental Bryan Roe 2019-04-26 16:07:06 -07:00
  • 18e4dd4548 updated uninstall, so it removed diagnostic agent if present Bryan Roe 2019-04-24 15:05:04 -07:00
  • bc3e970b5c Fixed Windows KVM bug when you have multiple displays with differing DPI settings Bryan Roe 2019-04-24 13:01:31 -07:00
  • b5d2d39860 Added display helper Bryan Roe 2019-04-23 22:31:00 -07:00
  • 4fb189fa87 update CreatePseudoConsole Bryan Roe 2019-04-23 16:32:53 -07:00
  • 43858fe9ec Merge branch 'CreatePseudoConsole' of https://github.com/Ylianst/MeshAgent into CreatePseudoConsole Bryan Roe 2019-04-23 16:02:23 -07:00
  • 1ce957023a Experimental change to use CreatePseudoConsole Bryan Roe 2019-03-24 00:08:49 -07:00
  • 5f535d8664 Updated task-scheduler for MacOS Bryan Roe 2019-04-22 17:17:23 -07:00
  • 1adcae7957 Added 'isLoaded' and 'load' helper on MacOS Bryan Roe 2019-04-19 15:12:06 -07:00
  • c64a726f2d Updated service-manager for MacOS to better tolerate KeepAlive settings Bryan Roe 2019-04-19 14:22:28 -07:00
  • 6e543689f5 Updates service-manager on MacOS so Start/Stop calls load/unload when necessary Bryan Roe 2019-04-18 14:50:38 -07:00
  • ec1a39af53 Fixed bug on Upstart Linux platforms, where task didn't start correctly. Bryan Roe 2019-04-18 11:43:18 -07:00
  • 921c636bac 1. Added 'close' to getService() return object. (NOOP on Linux/MacOS) 2. Updated uninstallService on windows, to force close service handles. Bryan Roe 2019-04-17 14:55:10 -07:00
  • 5436a9d7a0 Fixed events.EventEmitter so that it doesn't try to set finalizer twice, which fixes a bug where finalizer could emit the ~ event twice Bryan Roe 2019-04-17 14:51:20 -07:00
  • 3a99589493 Updated Duktape to v2.3.0 Bryan Roe 2019-04-17 14:50:16 -07:00
  • 70e7836db1 Added random number helpers Bryan Roe 2019-04-15 14:11:23 -07:00
  • 094918c400 Fixed, so parameter passing to Service works correctly Bryan Roe 2019-04-12 17:41:54 -07:00
  • 3433332be5 Fixed linux compile error, and updated Self Update, to launch Diagnostic Agent Bryan Roe 2019-04-12 15:45:41 -07:00
  • 7f647b42d0 Removed debug print message Bryan Roe 2019-04-12 13:34:07 -07:00
  • 547cd9f530 Updated wincrypto to not use global vars for state Bryan Roe 2019-04-10 15:34:31 -07:00
  • a6b68a310a Fixed bug, where CoreModuleHash was not sent if core updates were disabled Bryan Roe 2019-04-09 18:26:07 -07:00
  • 9aae4c7508 1. Updated service-manager to support dependencies from Buffer 2. Updated service-host to have a 'create' method Bryan Roe 2019-04-09 14:47:49 -07:00
  • 61f768d88b Updated Diagnostic AGent Cert generation to honor noCertStore flag Bryan Roe 2019-04-09 10:06:15 -07:00
  • 7bf31b0a28 1. Added setting for Windows Certificate Store 2. Updated so NodeID is only saved on Windows, if Certificate Store is used Bryan Roe 2019-04-08 17:44:49 -07:00
  • a5000eee85 Updated, so windows will save NodeID to db Bryan Roe 2019-04-08 15:42:08 -07:00
  • d457364197 Updated, so getService() on Windows will show owning user Bryan Roe 2019-04-08 15:41:41 -07:00
  • 41da3514d2 initial rev of Windows Certificate Store API Bryan Roe 2019-04-06 23:04:06 -07:00
  • f7025b3629 Added cert generation helper for Diagnostic Agent use Bryan Roe 2019-04-05 14:33:19 -07:00
  • 5c09f92446 Updated wincrypto, so if windows crypto store is used, certs between diagnostic agent and regular agent don't collide Bryan Roe 2019-04-04 14:25:44 -07:00
  • f6ccbce1fb 1. Fixed return value of util_from_cer to be consistent with other util methods 2. Added DER support to tls.loadCertificate 3. Updated sign/verify methods Bryan Roe 2019-04-03 17:39:22 -07:00
  • 69f76902cd Added ability to query Server Info, and Proxy Config Bryan Roe 2019-04-01 17:34:36 -07:00
  • 4e4a9f97a8 Implemented task-scheduler for MacOS Bryan Roe 2019-03-29 03:03:27 -07:00
  • 0e67ee8f48 Updated service-manager on MacOS so it can accomodate naming inconsistency between plist and service name Bryan Roe 2019-03-28 21:46:35 -07:00
  • f10497b4b0 Updated service-manager for MacOS: 1. Added start, stop, restart 2. Added isRunning, isMe Bryan Roe 2019-03-28 21:21:53 -07:00
  • 7fd2945b62 Starting to add 'getService' for MacOS Bryan Roe 2019-03-28 18:11:13 -07:00
  • 9148dbb1de service-manager update: 1. Added 'appWorkingDirectory()' to getService() 2. Fixed bug where init.d services didn't have working dir set Bryan Roe 2019-03-28 16:44:33 -07:00
  • b54d09876c Updated service-manager: 1. Updated to allow specifying alternate target filename 2. Updated uninstallService, to use the application location specified by service, on linux and MacOS 3. Updated AppLocation on systemd to parse ExecStart Bryan Roe 2019-03-27 22:45:47 -07:00
  • 9c01623e55 Experimental 'reset' for heci Bryan Roe 2019-03-27 15:13:26 -07:00
  • 9db8b4d349 From Ylian: Changed new Buffer to Buffer.alloc Fixed Base64 encoding Updated copyright Updated meshcmd Bryan Roe 2019-03-27 15:06:04 -07:00
  • 31be55c945 Fixed bug, where Packet Validation failed, because HttpStream was always configured as server. Bryan Roe 2019-03-27 15:00:39 -07:00
  • 4bc5619137 Fixed typo Bryan Roe 2019-03-26 22:58:17 -07:00
  • ed18cb7944 1. Updated to use #define for maximum header size 2. Modified AsyncSocket_Disconnect, to shutdown SD_SEND/SHUT_RD, instead of RDWR/BOTH, because sent data could be lost if a reset was sent 3. Added hardening for http.server packet parsing Bryan Roe 2019-03-26 22:10:29 -07:00
  • 65ebe45873 Added WebServer protections against Malformed packets, invalid content-length, and overly large headers. Bryan Roe 2019-03-26 01:05:27 -07:00
  • 77eaf3d5f4 Experimental change to use CreatePseudoConsole Bryan Roe 2019-03-24 00:08:49 -07:00
  • 57a9de8a03 Updated service-manager: Bryan Roe 2019-03-22 23:34:17 -07:00
  • 47716cf387 Fixed agent status when not administrator. Ylian Saint-Hilaire 2019-03-20 13:01:28 -07:00
  • 45f5859f37 1. Added 'getEnvFromPid' to user-sessions, to read environment vars by PID 2 Updated getXInfo() in monitor-info, so it'll try to get XAUTHORITY from env vars is it can't determine it by looking at the XServer instance. MeshCentral_v0.3.0-m Bryan Roe 2019-03-15 12:48:30 -07:00
  • 0637752d92 Fixed, so if geXInfo returns null, it won't throw an exception Bryan Roe 2019-03-15 12:46:57 -07:00
  • 0048acf128 Updated to only use fs.Watch if it exists Bryan Roe 2019-03-14 15:41:10 -07:00
  • fd7252d7d5 Fixed missing path for clean recipe on MacOS Bryan Roe 2019-03-14 14:21:35 -07:00
  • ac1844f0b0 InstallFlags msh option in Windows agnet. Ylian Saint-Hilaire 2019-03-14 13:18:18 -07:00
  • 6352c35e22 Updated, so on upstart platforms, it uses initctl instead of service, to fix problems on older upstart platforms that don't map service to initctl. Bryan Roe 2019-03-14 02:53:44 -07:00
  • 3c694116e6 Updated dispatchWrite Bryan Roe 2019-03-14 02:05:53 -07:00
  • d4a1a4545d Added finalizer for DescriptorEvents. Bryan Roe 2019-03-13 18:05:20 -07:00
  • 0248c5cd66 Updated Linux Copy Clipboard Bryan Roe 2019-03-13 17:35:44 -07:00
  • 9d907dc5a3 Start to update linux clipboard write Bryan Roe 2019-03-13 01:52:31 -07:00
  • 6a8b7de44c 1. Updated monitor-info, so it no longer assumes DISPLAY = :0 2. Updated user-sessions to have better uid and username helpers on linux 3. Updated Clipboard dispatching Bryan Roe 2019-03-12 22:25:56 -07:00
  • 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 Bryan Roe 2019-03-12 22:23:30 -07:00
  • 2559a13f09 1. Updated so if XAUTHORITY or DISPLAY environment variables are not set, they will be computed, which fixes KVM on Kali, and other distributions that behave similarly. Bryan Roe 2019-03-12 11:20:20 -07:00
  • ec96a536eb Added XSetSelectionOwner Bryan Roe 2019-03-12 10:47:07 -07:00
  • 499da726c5 Added code to fetch details about the XServer Bryan Roe 2019-03-11 23:35:19 -07:00
  • d774dbe0e4 Fixed bug where if more than one XAUTHORITY was specified, the correct one wasn't always chosen Bryan Roe 2019-03-11 18:00:37 -07:00
  • 8fbb54d79e Fixed CreateVariable, so if a negative number is specified, it throws an exception, instead of critical exiting Bryan Roe 2019-03-09 00:44:36 -08:00
  • 37f4a5af3f 1. Integrated win-message-pump on windows 2. Updated clipboard to dispatch read/write to a user process Bryan Roe 2019-03-06 22:58:23 -08:00
  • 780ef826c3 Added 'isService' property to MeshAgent object Bryan Roe 2019-03-06 16:40:05 -08:00
  • 2a8347be26 Added 'isMe' to service object for linux Bryan Roe 2019-03-06 16:39:18 -08:00
  • 9ffefcdd09 integrated task-scheduler Bryan Roe 2019-03-06 15:21:04 -08:00
  • 75b55823ef 1. Added '.manager' singleton to service-manager.js 2. Updated fs.writeFileSync to support options.mode 3. Updated Linux Task Scheduler Bryan Roe 2019-03-06 15:09:45 -08:00
  • f667e9c8f9 Initial Linux parsing Bryan Roe 2019-03-06 12:20:30 -08:00
  • c3f01ac2bf initial support for windows Bryan Roe 2019-03-06 00:20:30 -08:00
  • 0dc02d1495 Updated default service type to manual on Windows. Updated, to add ability to copy dependency files, using a different name Bryan Roe 2019-03-05 15:50:28 -08:00
  • 496a0b7508 1. integrated service-host 2. Fixed bug where windows service didn't delete the binary on uninstall Bryan Roe 2019-03-05 14:59:44 -08:00
  • e9676388ec Fixed bug, where cguid was set whenever agent was connected, rather than only for agent db Bryan Roe 2019-03-05 14:58:49 -08:00
  • 5fbcf23045 Added '-nodeid' command switch, to display Agent Node ID Bryan Roe 2019-03-05 10:51:57 -08:00
  • 0ad37730c0 Updated wget, to support options Bryan Roe 2019-03-04 23:54:58 -08:00
  • 268b0dd26f 1. Fixed compiler warning 2. Fixed bug where process.arch wasn't defined 3. Integrated PE_Parser on windows Bryan Roe 2019-03-04 18:24:07 -08:00
  • c8c366ff5a Fixed compiler warning Bryan Roe 2019-03-04 18:22:51 -08:00
  • a7544b6b7a added filehash helper Bryan Roe 2019-03-04 17:10:00 -08:00
  • b2cdfe38a5 1. Fixed compiler warning 2. Added appLocation() to service-manager Bryan Roe 2019-03-04 15:58:35 -08:00
  • ee63b099ec 1. Updated clipboard/native polyfill, to workaround 16k string literal limit 2. Integrated service-manager, user-sessions, and process-manager Bryan Roe 2019-03-04 14:30:53 -08:00
  • 0aa0a8cfa4 Added ILibBase64DecodeEx Bryan Roe 2019-03-04 14:29:52 -08:00
  • 692a3b52ba Updated init.d service, so it supports parameters Bryan Roe 2019-03-04 14:29:19 -08:00
  • 8a923d57c9 1. Added plumbing for a Recovery agentcore 2. Added service control features for linux Service Manager Bryan Roe 2019-03-03 22:04:21 -08:00
  • adbff6baf8 1. Added Buffer helper method 2. Added Certificate helper method Bryan Roe 2019-03-02 19:27:39 -08:00
  • b25a54c8b5 Fixed race condition, where on Linux when you compact the DB, it may not unlock before it reopens MeshCentral_v0.2.9-p Bryan Roe 2019-03-01 15:31:43 -08:00
  • c130fb9d89 Fixed bug that caused crash if you tried to attach a debugger when the module is missing Bryan Roe 2019-03-01 13:36:50 -08:00
  • 7b74feade5 1. Fixed bug that caused tls.error event to be emitted incorrectly 2. Fixed IPv6 Support for Linux Bryan Roe 2019-03-01 13:19:14 -08:00
  • 7a4bf91c33 Pushed correct file this time... Bryan Roe 2019-03-01 10:33:37 -08:00
  • 83ebe7dc0e Fixed, so that it 'bind' is listened for instead of 'connect' Bryan Roe 2019-03-01 10:26:34 -08:00
  • 4c05359e33 Fixed how the request transform stream buffers data Bryan Roe 2019-03-01 10:26:04 -08:00
  • 014cabfe79 Unverified fix for localmode multicast Bryan Roe 2019-02-28 19:21:44 -08:00
  • 83bb49fcc1 Fixed crash in finalizer on linux, that could occur in an error condition Bryan Roe 2019-02-26 16:13:38 -08:00
  • 2633fc2928 Fixed bug in Domain Socket detection logic on linux Bryan Roe 2019-02-26 15:59:38 -08:00
  • 623983b3d4 Fixed crash that can occur on linux if an error occurs Bryan Roe 2019-02-26 15:59:15 -08:00
  • a3e3e22528 Updated behavior, so if Windows Service is run in console mode, it will write meta data to HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE Bryan Roe 2019-02-25 23:14:50 -08:00