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

Commit Graph

  • 72db242dee Added ability to end stdin on child_process spawned process Bryan Roe 2019-09-06 21:41:48 -07:00
  • dabeb6e2ba Updated Windows, so GetHostNameW is dynamically bound, so that it can fallback to gethostname on platforms that lack support, such as Windows Server 2008 R2 Bryan Roe 2019-08-29 09:56:12 -07:00
  • 48590a7dff Added update() to getService() on Windows Bryan Roe 2019-08-28 00:44:14 -07:00
  • 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. Bryan Roe 2019-08-27 15:12:49 -07:00
  • d7f0424d2c Updated crash handler on linux, so that if a core file would've been generated on crash, it will reset/restart the signal handler, so that a core file will be generated after logging the crash. Bryan Roe 2019-08-27 15:00:18 -07:00
  • 72e665908a Added flag for CRASH_HANDLER=0 in case it is explicitly needed Bryan Roe 2019-08-27 14:58:30 -07:00
  • 31ccab899a Added ability to get/set rlimits on non windows platforms Bryan Roe 2019-08-27 14:05:08 -07:00
  • 898f606062 Updated field offsets for AMTInfo Bryan Roe 2019-08-27 12:02:30 -07:00
  • e384a1a680 Added startType to getService() for MacOS Bryan Roe 2019-08-27 11:19:12 -07:00
  • fd7a0a0f5b Added startType property to getService() for Linux/systemd and FreeBSD Bryan Roe 2019-08-27 11:04:43 -07:00
  • c983afdd4b Added 'startType' property for getService result on Windows and Linux (Upstart/InitV) Bryan Roe 2019-08-27 02:38:12 -07:00
  • 5a79e119fd Added comment describing new coreDumpEnabled flag Bryan Roe 2019-08-26 17:07:32 -07:00
  • 356cadb599 Added setting for coreDumpLocation Bryan Roe 2019-08-26 16:57:52 -07:00
  • fa6836d17a Added ability to generate Dump file on crash, on Windows Bryan Roe 2019-08-26 14:16:39 -07:00
  • ede1ed71d5 Added UTF8 helper method that puts the string on the stack Bryan Roe 2019-08-26 14:15:43 -07:00
  • fcea5a600a Fixed bug where if a proxy isn't set, it could cause a segfault on FreeBSD Bryan Roe 2019-08-24 00:45:12 -07:00
  • 84882e0b52 Fixed the following bugs on Windows: Bryan Roe 2019-08-23 17:07:12 -07:00
  • 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() Bryan Roe 2019-08-23 00:02:00 -07:00
  • 51018a2192 updated os.name() for linux, to return first result if PRETTY_NAME is not found Bryan Roe 2019-08-22 21:21:42 -07:00
  • 5e006bc0a9 Added work-around if linux-dbus isn't updated Bryan Roe 2019-08-22 17:26:52 -07:00
  • fbd67d2c9c 1. Updated linux-dbus to support querying if a service is present 2. Updated toaster, so it will check if org.freedesktop.Notification is installed Bryan Roe 2019-08-22 16:57:12 -07:00
  • e666a5f7b9 Fixed compiler warning Bryan Roe 2019-08-22 16:54:04 -07:00
  • 5e47259913 Added logic to check PATH on linux to make sure /sbin is included for current process Bryan Roe 2019-08-22 13:40:20 -07:00
  • b78545514e Added work around if zenity version check fails, which only happens on extremely old zenity when run as service Bryan Roe 2019-08-22 10:52:21 -07:00
  • b0545c070d Updated notify-send fallback, so that it will only try to su to logged in user if the current user is root. Bryan Roe 2019-08-22 00:55:39 -07:00
  • a0ffbc1e90 Fixed error case for linux notifications, by checking zenity version, to do fallback for notify-send, if it exists, otherwise using zenity --info, with a faked timeout if necessary. Bryan Roe 2019-08-22 00:36:15 -07:00
  • 0469531f02 Added zenity.version Bryan Roe 2019-08-21 22:50:53 -07:00
  • 994aaaf30d 1. Fixed timeout for KDE dialogs 2. Updated to support timeout on older zenity platforms Bryan Roe 2019-08-21 16:55:28 -07:00
  • 1360835f1b 1. Updated libfinder for Linux for cases when ldconfig is not on PATH 2. Updated websockets, so it will autofragment into 30k chunks, as a temp workaround for platforms like CentOS 5.11 until I find the underlying issue Bryan Roe 2019-08-21 11:46:38 -07:00
  • dda535a817 Built OpenSSL 1.1.1c and libturbojpeg 1.4.2 on CentOS 5.11 Bryan Roe 2019-08-20 11:30:26 -07:00
  • c65ae059d0 Added additional build flags: FSWATCH_DISABLE LEGACY_LD Bryan Roe 2019-08-20 11:29:36 -07:00
  • 8292a609ea Added support for non-english username and hostname on Windows. Server modifications still needed for hostname display. Bryan Roe 2019-08-19 13:53:37 -07:00
  • 07cfa46500 Fixed bug where VkKeyScan wasnt properly masking the results Bryan Roe 2019-08-15 23:52:27 -07:00
  • afa2ad1723 Updated behavior so VkKeyScan codes outside of the range 0-255 are ignored, fixing a crash in powershell Bryan Roe 2019-08-15 13:35:44 -07:00
  • e3ec71f5e8 Fixed compiler warning Bryan Roe 2019-08-14 14:52:39 -07:00
  • 6f8e813024 Modifed win-terminal, so it throws an exception if concurrent sessions are attempted. (Not supported, so throwing an exception allows us to propagate an error) Bryan Roe 2019-08-13 22:34:48 -07:00
  • e87d1d5db1 Fixed compiler warnings Bryan Roe 2019-08-13 22:17:21 -07:00
  • 0d0b4aa1cf Added handler, so that if KVM Child Process exits, a message will be dispatched upstream Bryan Roe 2019-08-12 16:00:50 -07:00
  • bc2ef6a3f4 Added support for fetching system proxy settings from gnome Bryan Roe 2019-08-12 11:27:15 -07:00
  • 7fa076a0cb Changed property definition of wget and process.arch to be getters, so that the wget module won't be cached at startup. Bryan Roe 2019-08-10 00:25:50 -07:00
  • a0e53bee0b Compiled OpenSSL 1.1.1c for Linux with Ubuntu 10.04 LTS Bryan Roe 2019-08-09 18:21:45 -07:00
  • 2f439ac716 1. Added comments to agentcore.c 2. Updated user-sessions to use getent passwd instead of /etc/passwd 3. Added user-sessions.getHomeFolder() for linux 4. Added gnome helper to fetch proxy settings from gnome Bryan Roe 2019-08-09 18:20:40 -07:00
  • b3accf17c1 Fixed typo, causing bug where service.conf wasn't committed when systemd tried to enable the service, resulting in the service not being configured to AUTO_START, when AUTO_START is specified. MeshCentral_v0.3.9-o Bryan Roe 2019-08-09 01:22:37 -07:00
  • 9ae4eef5b7 1. Updated win-registry to be able to read REG_EXPAND_SZ types 2. Updated service-manager to support UTF8 on Windows Bryan Roe 2019-08-08 17:32:58 -07:00
  • b77a2f9687 Updated to support UTF8 encoded argv parameters on windows Bryan Roe 2019-08-08 16:54:22 -07:00
  • b34eee2dca 1. Added 'getUsername' for windows 2. Added UTF8/Wide conversions for _GenericMarshal 3. Added UTF8 support for win-registry and process-manager Bryan Roe 2019-08-08 15:37:17 -07:00
  • 10332b3775 Updated user consent dialog box on windows to popup as a foreground window Bryan Roe 2019-08-07 17:21:43 -07:00
  • 7e5ddc6767 Updated error reporting for service.restart() on windows MeshCentral_v0.3.9-k Bryan Roe 2019-08-07 16:26:08 -07:00
  • 66273f8950 1. Updated waitExit() for windows to support a timeout 2. Updated ProcessPipe for Windows, to disable inheritance on detach 3. Updated service-manager to support restart on self for windows Bryan Roe 2019-08-07 15:23:13 -07:00
  • a89a3204c1 1. Added ability to query if Select was interrupted with APC 2. Updated So that before readableStream and 'exit' are dispatched, APC's are unrolled if 'select' was interrupted, preventing stack corruption caused by trying to make a re-entrant winsock call, which is not supported by winsock. Bryan Roe 2019-08-07 11:32:33 -07:00
  • d5962cd1b2 Modified service.stop() on Windows to use a promise, so you can verify the run state Bryan Roe 2019-08-06 18:14:39 -07:00
  • 09590fa779 Updated Release builds to enable Deadlock detection Bryan Roe 2019-08-05 13:37:43 -07:00
  • 19366a1ee1 Applied same stderr fix to QFE Bryan Roe 2019-08-05 11:15:49 -07:00
  • c0fcf75f58 Fixed bug, where stderr was not subscribed, causing the stream to pause if stderr is written to, which will happen on Win Server when fetching AV state. If stream is paused, the waitExit() line will hang Bryan Roe 2019-08-05 11:12:00 -07:00
  • 4cef81719e 1. Fixed upper limit for inline JS on command line 2. Updated win-info to be able to fetch list of installed apps MeshCentral_v0.3.8-y Bryan Roe 2019-07-31 15:14:01 -07:00
  • 0c7290723c Optimized getService() on MacOS to use a property getter for some properties to speed things up when enumerating Bryan Roe 2019-07-31 10:29:22 -07:00
  • 8ffac90514 Implemented enumerateService for MacOS Bryan Roe 2019-07-31 00:54:28 -07:00
  • 7a319f4302 Implemented enumerateService() for Linux and FreeBSD Bryan Roe 2019-07-30 23:47:43 -07:00
  • 5a85f2dc47 add 'description' to getService() for init and upstart on linux Bryan Roe 2019-07-30 17:30:36 -07:00
  • 245a130b50 Fixed compiler warnings Bryan Roe 2019-07-30 15:45:03 -07:00
  • 91ca33e466 Added osinfo, partitions, and memory to Windows Bryan Roe 2019-07-30 15:00:38 -07:00
  • f393b6e229 added defrag and pendingReboot Bryan Roe 2019-07-30 13:55:49 -07:00
  • 0d3bc77bde Renamed win-info Added AV Info Bryan Roe 2019-07-29 23:37:29 -07:00
  • 26f676a069 Added ability to query HotFix Status for Windows Bryan Roe 2019-07-29 22:54:59 -07:00
  • baffe1d115 Fixed bug with enumerateService() Bryan Roe 2019-07-29 18:50:57 -07:00
  • 06a96d61a6 Merge branch 'master' of https://github.com/Ylianst/MeshAgent Bryan Roe 2019-07-25 15:04:34 -07:00
  • 2bb8bd3190 Initial rev, to support locking the desktop on MacOS, Windows, and Linux. Bryan Roe 2019-07-25 15:04:06 -07:00
  • d700f16325 updated user-sessions on linux, so that if 'who' is not supported, consoleUid will return root. This fixes platforms such as puppy, where the platform is logged in as root. Bryan Roe 2019-07-25 15:03:28 -07:00
  • cbc183bfdb Modified, so 32-bit PowerShell is used from SysWow64 on 64-bit windows, to work around issue where PowerShell will respawn itself Bryan Roe 2019-07-24 22:11:05 -07:00
  • bd0bf102cd Added product_uuid and MacOS support Bryan Roe 2019-07-24 17:22:39 -07:00
  • a831086cfe Added support for Windows PowerShell Bryan Roe 2019-07-24 14:58:11 -07:00
  • d701b9a3e9 First rev, for Windows and Linux Bryan Roe 2019-07-23 16:17:35 -07:00
  • 3efdc27478 1. Updated so that APCs are used for thread dispatching for Read/Exit on Windows 2. Updated to add support for child_process.waitExit() on Windows. Bryan Roe 2019-07-23 16:16:53 -07:00
  • 69fe1a74e4 fixed compiler warning Bryan Roe 2019-07-23 16:13:07 -07:00
  • 22b8e6ca7c Added build notes for FreeBSD Bryan Roe 2019-07-22 17:16:03 -07:00
  • 1b78195987 Updated comments in makefile, and update test for FreeBSD Bryan Roe 2019-07-22 16:38:22 -07:00
  • 4f89b363ee Added support to lock MacOS desktop Bryan Roe 2019-07-19 13:09:37 -07:00
  • 531041a17e Fixed MacOS compiler warning Bryan Roe 2019-07-19 13:09:19 -07:00
  • 804843eb32 Updated, so on INIT platforms when crash restart is specified, parameters can still be passed Bryan Roe 2019-07-19 11:16:54 -07:00
  • e67ad2f265 Add support for HTTPS_PROXY env variable Daniel Varnai 2019-07-19 10:19:15 +01:00
  • 5b7f892496 Udpated service-manager, so crash restart is supported on INIT platforms that are not UPSTART Bryan Roe 2019-07-18 14:12:26 -07:00
  • 58f0230c7a fixed compiler warning Bryan Roe 2019-07-17 17:14:41 -07:00
  • 02f3d8a76f Updated proxy check, to look at /etc/profile.d/proxy_setup if it exists Bryan Roe 2019-07-17 14:08:46 -07:00
  • 134461448e Added workaround for 'busybox' as service type Bryan Roe 2019-07-16 15:12:52 -07:00
  • 735ac0f0c9 Fixed compiler warnings Bryan Roe 2019-07-16 15:12:21 -07:00
  • 424720211d Updated NetInfo, so desc is omitted if it's blank (MacOS/FreeBSD). Updated os.networkInterfaces() for FreeBSD Bryan Roe 2019-06-25 23:39:35 -07:00
  • 29efb10ce6 Merge branch 'master' of https://github.com/Ylianst/MeshAgent Bryan Roe 2019-06-25 23:17:38 -07:00
  • 654af73a9a update mesh.NetInfo for MacOS and FreeBSD Bryan Roe 2019-06-25 23:17:29 -07:00
  • 608c77106f Merge branch 'master' of https://github.com/Ylianst/MeshAgent Bryan Roe 2019-06-25 10:47:15 -07:00
  • bf3eabda1c Fixed line endings, which caused compilation error with clang Bryan Roe 2019-06-25 10:46:58 -07:00
  • e2bcd832b5 Fixed infinite loop bug... Check if OnSendOK needs to be sent Bryan Roe 2019-06-24 17:23:32 -07:00
  • fc8fba9f62 Fixed bug with os.hostname() Bryan Roe 2019-06-24 16:45:30 -07:00
  • 7237586206 fixed indentation Bryan Roe 2019-06-24 16:09:12 -07:00
  • f629d47896 freebsd Bryan Roe 2019-06-24 16:05:00 -07:00
  • a665f77155 update freebsd message-box Bryan Roe 2019-06-24 15:55:34 -07:00
  • 444601dea7 Updated message-box for freebsd Bryan Roe 2019-06-24 15:33:02 -07:00
  • 74530d5a5f Added workaround for findPath from service, for freebsd Bryan Roe 2019-06-24 15:20:21 -07:00
  • 2c6f9780ee added missing platform check for freebsd in findPath() Bryan Roe 2019-06-24 15:05:45 -07:00
  • ddff71dd79 freebsd update for proxy detection, when running as service Bryan Roe 2019-06-24 15:02:10 -07:00
  • c054a38247 Updated proxy detect for freebsd Bryan Roe 2019-06-24 13:08:23 -07:00