1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 12:13:16 +00:00
Commit Graph

253 Commits

Author SHA1 Message Date
Bryan Roe
780ef826c3 Added 'isService' property to MeshAgent object 2019-03-06 16:40:05 -08:00
Bryan Roe
2a8347be26 Added 'isMe' to service object for linux 2019-03-06 16:39:18 -08:00
Bryan Roe
9ffefcdd09 integrated task-scheduler 2019-03-06 15:21:04 -08:00
Bryan Roe
75b55823ef 1. Added '.manager' singleton to service-manager.js
2. Updated fs.writeFileSync to support options.mode
3. Updated Linux Task Scheduler
2019-03-06 15:09:45 -08:00
Bryan Roe
f667e9c8f9 Initial Linux parsing 2019-03-06 12:20:30 -08:00
Bryan Roe
c3f01ac2bf initial support for windows 2019-03-06 00:20:30 -08:00
Bryan Roe
0dc02d1495 Updated default service type to manual on Windows. Updated, to add ability to copy dependency files, using a different name 2019-03-05 15:50:28 -08:00
Bryan Roe
496a0b7508 1. integrated service-host
2. Fixed bug where windows service didn't delete the binary on uninstall
2019-03-05 14:59:44 -08:00
Bryan Roe
e9676388ec Fixed bug, where cguid was set whenever agent was connected, rather than only for agent db 2019-03-05 14:58:49 -08:00
Bryan Roe
5fbcf23045 Added '-nodeid' command switch, to display Agent Node ID 2019-03-05 10:51:57 -08:00
Bryan Roe
0ad37730c0 Updated wget, to support options 2019-03-04 23:54:58 -08: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
c8c366ff5a Fixed compiler warning 2019-03-04 18:22:51 -08:00
Bryan Roe
a7544b6b7a added filehash helper 2019-03-04 17:10:00 -08:00
Bryan Roe
b2cdfe38a5 1. Fixed compiler warning
2. Added appLocation() to service-manager
2019-03-04 15:58:35 -08:00
Bryan Roe
ee63b099ec 1. Updated clipboard/native polyfill, to workaround 16k string literal limit
2. Integrated service-manager, user-sessions, and process-manager
2019-03-04 14:30:53 -08:00
Bryan Roe
0aa0a8cfa4 Added ILibBase64DecodeEx 2019-03-04 14:29:52 -08:00
Bryan Roe
692a3b52ba Updated init.d service, so it supports parameters 2019-03-04 14:29:19 -08:00
Bryan Roe
8a923d57c9 1. Added plumbing for a Recovery agentcore
2. Added service control features for linux Service Manager
2019-03-03 22:04:21 -08:00
Bryan Roe
adbff6baf8 1. Added Buffer helper method
2. Added Certificate helper method
2019-03-02 19:27:39 -08:00
Bryan Roe
b25a54c8b5 Fixed race condition, where on Linux when you compact the DB, it may not unlock before it reopens MeshCentral_v0.2.9-p 2019-03-01 15:31:43 -08:00
Bryan Roe
c130fb9d89 Fixed bug that caused crash if you tried to attach a debugger when the module is missing 2019-03-01 13:36:50 -08:00
Bryan Roe
7b74feade5 1. Fixed bug that caused tls.error event to be emitted incorrectly
2. Fixed IPv6 Support for Linux
2019-03-01 13:19:14 -08:00
Bryan Roe
7a4bf91c33 Pushed correct file this time... 2019-03-01 10:33:37 -08:00
Bryan Roe
83ebe7dc0e Fixed, so that it 'bind' is listened for instead of 'connect' 2019-03-01 10:26:34 -08:00
Bryan Roe
4c05359e33 Fixed how the request transform stream buffers data 2019-03-01 10:26:04 -08:00
Bryan Roe
014cabfe79 Unverified fix for localmode multicast 2019-02-28 19:21:44 -08:00
Bryan Roe
83bb49fcc1 Fixed crash in finalizer on linux, that could occur in an error condition 2019-02-26 16:13:38 -08:00
Bryan Roe
2633fc2928 Fixed bug in Domain Socket detection logic on linux 2019-02-26 15:59:38 -08:00
Bryan Roe
623983b3d4 Fixed crash that can occur on linux if an error occurs 2019-02-26 15:59:15 -08:00
Bryan Roe
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 2019-02-25 23:14:50 -08:00
Bryan Roe
9205af5804 removed debug line 2019-02-25 22:39:24 -08:00
Bryan Roe
382ea03135 Updated file access, so the db can be queried while an agent is still active 2019-02-25 21:43:48 -08:00
Bryan Roe
683852f70a Fixed bug, where hook handler was always NULL when it was checked 2019-02-22 10:14:21 -08:00
Bryan Roe
69cd6a0c6b Updated upstart check, and added support for sysV/init 2019-02-22 02:21:25 -08:00
Bryan Roe
d12afc14a6 1. Fixed Service Detection on SystemD, and changed to use auto-restart instead of systemctrl restart, to remove dependency on restart=always 2019-02-21 08:15:32 -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
176facc799 Updated 'newListener' and 'hookedEvent', to follow node, so that it is emitted before the listener is added 2019-02-20 18:21:35 -08:00
Bryan Roe
6bd4b027f5 Updated Self-Update, so that upstart is correctly used on upstart platforms 2019-02-20 17:26:30 -08:00
Bryan Roe
84fbd554eb Removed code comments for dead code 2019-02-20 17:25:40 -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
25b5f88bba Updated AUTO_START 2019-02-20 14:24:10 -08:00
Bryan Roe
6128d2102d Updated Windows 2019-02-20 14:02:33 -08:00
Bryan Roe
597c73b677 Updated init and systemd 2019-02-20 13:02:44 -08:00
Bryan Roe
9ba3fbf4a1 Updated, so on linux, if env variable for proxy isn't set, it'll check /etc/environment to see if proxy is set. 2019-02-19 13:52:32 -08:00
Bryan Roe
e370491f98 Fixed compiler warning 2019-02-19 11:02:23 -08:00
Bryan Roe
5da959c16a 1. Added metadata to _GenericMarshal
2. Added BootStrapCore functionality
2019-02-18 21:45:58 -08:00
Bryan Roe
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.
2019-02-15 23:31:22 -08:00
Bryan Roe
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
2019-02-15 15:02:42 -08:00