Bryan Roe
6e543689f5
Updates service-manager on MacOS so Start/Stop calls load/unload when necessary
2019-04-18 14:50:38 -07:00
Bryan Roe
ec1a39af53
Fixed bug on Upstart Linux platforms, where task didn't start correctly.
2019-04-18 11:43:18 -07:00
Bryan Roe
921c636bac
1. Added 'close' to getService() return object. (NOOP on Linux/MacOS)
...
2. Updated uninstallService on windows, to force close service handles.
2019-04-17 14:55:10 -07:00
Bryan Roe
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
2019-04-17 14:51:20 -07:00
Bryan Roe
3a99589493
Updated Duktape to v2.3.0
2019-04-17 14:50:16 -07:00
Bryan Roe
70e7836db1
Added random number helpers
2019-04-15 14:11:23 -07:00
Bryan Roe
094918c400
Fixed, so parameter passing to Service works correctly
2019-04-12 17:41:54 -07:00
Bryan Roe
3433332be5
Fixed linux compile error, and updated Self Update, to launch Diagnostic Agent
2019-04-12 15:45:41 -07:00
Bryan Roe
7f647b42d0
Removed debug print message
2019-04-12 13:34:07 -07:00
Bryan Roe
547cd9f530
Updated wincrypto to not use global vars for state
2019-04-10 15:34:31 -07:00
Bryan Roe
a6b68a310a
Fixed bug, where CoreModuleHash was not sent if core updates were disabled
2019-04-09 18:26:07 -07:00
Bryan Roe
9aae4c7508
1. Updated service-manager to support dependencies from Buffer
...
2. Updated service-host to have a 'create' method
2019-04-09 14:47:49 -07:00
Bryan Roe
61f768d88b
Updated Diagnostic AGent Cert generation to honor noCertStore flag
2019-04-09 10:06:15 -07:00
Bryan Roe
7bf31b0a28
1. Added setting for Windows Certificate Store
...
2. Updated so NodeID is only saved on Windows, if Certificate Store is used
2019-04-08 17:44:49 -07:00
Bryan Roe
a5000eee85
Updated, so windows will save NodeID to db
2019-04-08 15:42:08 -07:00
Bryan Roe
d457364197
Updated, so getService() on Windows will show owning user
2019-04-08 15:41:41 -07:00
Bryan Roe
41da3514d2
initial rev of Windows Certificate Store API
2019-04-06 23:04:06 -07:00
Bryan Roe
f7025b3629
Added cert generation helper for Diagnostic Agent use
2019-04-05 14:33:19 -07:00
Bryan Roe
5c09f92446
Updated wincrypto, so if windows crypto store is used, certs between diagnostic agent and regular agent don't collide
2019-04-04 14:25:44 -07:00
Bryan Roe
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
2019-04-03 17:39:22 -07:00
Bryan Roe
69f76902cd
Added ability to query Server Info, and Proxy Config
2019-04-01 17:34:36 -07:00
Bryan Roe
4e4a9f97a8
Implemented task-scheduler for MacOS
2019-03-29 03:03:27 -07:00
Bryan Roe
0e67ee8f48
Updated service-manager on MacOS so it can accomodate naming inconsistency between plist and service name
2019-03-28 21:46:35 -07:00
Bryan Roe
f10497b4b0
Updated service-manager for MacOS:
...
1. Added start, stop, restart
2. Added isRunning, isMe
2019-03-28 21:21:53 -07:00
Bryan Roe
7fd2945b62
Starting to add 'getService' for MacOS
2019-03-28 18:11:13 -07:00
Bryan Roe
9148dbb1de
service-manager update:
...
1. Added 'appWorkingDirectory()' to getService()
2. Fixed bug where init.d services didn't have working dir set
2019-03-28 16:44:33 -07:00
Bryan Roe
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
2019-03-27 22:45:47 -07:00
Bryan Roe
9c01623e55
Experimental 'reset' for heci
2019-03-27 15:13:26 -07:00
Bryan Roe
9db8b4d349
From Ylian:
...
Changed new Buffer to Buffer.alloc
Fixed Base64 encoding
Updated copyright
Updated meshcmd
2019-03-27 15:06:04 -07:00
Bryan Roe
31be55c945
Fixed bug, where Packet Validation failed, because HttpStream was always configured as server.
2019-03-27 15:00:39 -07:00
Bryan Roe
4bc5619137
Fixed typo
2019-03-26 22:58:17 -07:00
Bryan Roe
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
2019-03-26 22:10:29 -07:00
Bryan Roe
65ebe45873
Added WebServer protections against Malformed packets, invalid content-length, and overly large headers.
2019-03-26 01:05:27 -07:00
Bryan Roe
57a9de8a03
Updated service-manager:
...
1. Fixed bug with setting service description on Windows
2. Added ability to set failure restart options
2019-03-22 23:34:17 -07:00
Ylian Saint-Hilaire
47716cf387
Fixed agent status when not administrator.
2019-03-20 13:01:28 -07:00
Bryan Roe
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
2019-03-15 12:48:30 -07:00
Bryan Roe
0637752d92
Fixed, so if geXInfo returns null, it won't throw an exception
2019-03-15 12:46:57 -07:00
Bryan Roe
0048acf128
Updated to only use fs.Watch if it exists
2019-03-14 15:41:10 -07:00
Bryan Roe
fd7252d7d5
Fixed missing path for clean recipe on MacOS
2019-03-14 14:21:35 -07:00
Ylian Saint-Hilaire
ac1844f0b0
InstallFlags msh option in Windows agnet.
2019-03-14 13:18:18 -07:00
Bryan Roe
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.
2019-03-14 02:53:44 -07:00
Bryan Roe
3c694116e6
Updated dispatchWrite
2019-03-14 02:05:53 -07:00
Bryan Roe
d4a1a4545d
Added finalizer for DescriptorEvents.
2019-03-13 18:05:20 -07:00
Bryan Roe
0248c5cd66
Updated Linux Copy Clipboard
2019-03-13 17:35:44 -07:00
Bryan Roe
9d907dc5a3
Start to update linux clipboard write
2019-03-13 01:52:31 -07:00
Bryan Roe
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
2019-03-12 22:25:56 -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
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.
2019-03-12 11:20:20 -07:00
Bryan Roe
ec96a536eb
Added XSetSelectionOwner
2019-03-12 10:47:07 -07:00
Bryan Roe
499da726c5
Added code to fetch details about the XServer
2019-03-11 23:35:19 -07:00