si458
7d59210d05
swap powershell write to command instead
...
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-11-06 15:37:26 +00:00
si458
b39235643e
more wmic replacements
...
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-11-04 15:09:38 +00:00
Bryan Roe
675996ccf2
Filtered out exception that can get thrown when JS attempts to restart self, which is normal, because the exception says the process is shutting down. Only happens on macOS
2022-06-30 15:09:06 -07:00
Bryan Roe
b517637981
Fixed 2 issues causing Agent Update to fail on very old agents
...
1. Added null check on callback, because old agents may return null
2. if needStreamFix was set on an old agent, and hash check fails, added retry without fix, as the fix was not needed on some very old agents.
3. Updated retry timeout to 20 seconds instead of 60 seconds
2022-06-28 13:01:56 -07:00
Bryan Roe
d5ed5247fe
tweaked if() for agentupdate
2021-11-16 13:31:00 -08:00
Bryan Roe
82dd5b02b0
Updated agentupdate command to canonicalize path when checking
2021-11-16 10:23:26 -08:00
Ylian Saint-Hilaire
bc948328cb
Added more user permissions removal. #3065
2021-08-28 09:51:03 -07:00
Ylian Saint-Hilaire
41ecece9a9
Completed user access rights removal feature, #3065
2021-08-27 14:42:28 -07:00
Bryan Roe
8e0f30ae35
Added work around for agents older than v0.4.7-o that have an HTTP bug where the initial fragment can be duplicated
2021-08-16 23:50:03 -07:00
Bryan Roe
b58d7837a3
Added polyfill for Array.findIndex() if missing
2021-08-16 11:59:32 -07:00
Bryan Roe
bf1e30237c
Added missing workaround for reserved characters in uri
2021-08-15 11:12:50 -07:00
Bryan Roe
189941bd44
Added PATH and LANG env variable to terminal, using parent, if defined.
2021-08-11 14:03:47 -07:00
Bryan Roe
d70665e7d6
Fixed bug where child process does not set TERM env variable if env block is passed to child.
2021-08-10 15:00:12 -07:00
Bryan Roe
a937577f4b
Updated Temp/Windows SelfUpdate
2021-06-09 14:08:22 -07:00
Bryan Roe
414848cd49
Put changes back after release
2021-06-04 11:54:22 -07:00
Ylian Saint-Hilaire
44de38a91d
Recovery core revert.
2021-06-04 11:48:34 -07:00
Bryan Roe
ab8b3095dd
Added polyfill for Array.find() when missing, needed for Windows/Temp self update
2021-06-04 11:46:04 -07:00
Ylian Saint-Hilaire
13409348c2
Reverted recoverycore.js
2021-06-04 11:26:19 -07:00
Bryan Roe
e58d37d76f
Updated self update for Temporary mode on Windows
2021-06-03 18:05:04 -07:00
Bryan Roe
bcb45580bd
Fixed support for Self-Update on Windows when running in Temporary Mode
2021-06-03 09:57:53 -07:00
Bryan Roe
dea0d96add
Merge branch 'master' of https://github.com/Ylianst/MeshCentral into master
2021-03-05 17:31:00 -08:00
Bryan Roe
0456060304
Updated agentupdate on windows, to workaround older agents that did not format process.cwd() correctly
2021-03-05 17:30:39 -08:00
Ylian Saint-Hilaire
77e3acad08
Improved agent meshcore self-update debugging.
2021-03-04 16:27:43 -08:00
Bryan Roe
50ef7a1f08
Fixed typo in filename for posix agentupdate
2021-02-08 23:28:49 -08:00
Bryan Roe
ee3c60a6bd
Updated windows update, so that it will attempt to kill any zombie processes
2021-02-05 14:45:43 -08:00
Bryan Roe
6629a86339
Fixed bug in execve() on linux and bsd
2021-02-02 22:32:09 -08:00
Bryan Roe
9bad51196b
Fixed selfupdate for Alpine
2021-01-28 21:32:59 -08:00
Ylian Saint-Hilaire
6f6040d742
Fixed meshcore agent update when used with AgentPort.
2021-01-28 15:49:42 -08:00
Ylian Saint-Hilaire
29c6b7877e
Fixed meshcore update faliure case.
2021-01-28 13:41:19 -08:00
Bryan Roe
fe9baf0e8f
Fixed open descriptor issue with agentupdate on linux/freebsd
2021-01-27 00:43:58 -08:00
Bryan Roe
e2201b1d9f
Fixed incorrect console message
2021-01-26 21:53:20 -08:00
Bryan Roe
05573d9bb9
Added retry logic to self-update
2021-01-18 22:08:12 -08:00
Ylian Saint-Hilaire
67fd1e7825
Updated meshcores.
2021-01-18 16:11:15 -08:00
Ylian Saint-Hilaire
7a0f18ddee
All new mesh agents.
2021-01-18 16:07:56 -08:00
Bryan Roe
1df705e5ab
updated cert check and added linux_execv()
2021-01-18 16:05:28 -08:00
Bryan Roe
872cdfbc9c
Updated recovery self-update to skip authentication check if agent doesn't expose control channel cert, and server did not supply credentials.
2021-01-17 21:57:32 -08:00
Bryan Roe
2faede16d4
fixed console command arg parsing on recovery core
2021-01-17 19:38:42 -08:00
Bryan Roe
564d789e35
fixed recoverycore eval
2021-01-17 18:59:21 -08:00
Bryan Roe
74ffd77eda
added 'eval' and 'setdebug' console commands to recovery core
2021-01-17 18:43:21 -08:00
Bryan Roe
70df889935
1. Updated recovery core 'files' implementation
...
2. Removed dead code from recovery core
3. Fixed bug in switch statement in meshcore
2021-01-17 18:36:53 -08:00
Bryan Roe
fb9c146ccc
updated to add support for freebsd() self update
2021-01-17 15:11:56 -08:00
Bryan Roe
0f9c71e1bc
Merge branch 'master' of https://github.com/Ylianst/MeshCentral into master
...
# Conflicts:
# agents/recoverycore.js
2021-01-17 11:58:18 -08:00
Bryan Roe
7209fb6f39
simplified chmod on update
2021-01-17 11:54:23 -08:00
Ylian Saint-Hilaire
cd84af5cb9
Added tasklimiter and improvements to agent meshcore update system.
2021-01-16 23:35:39 -08:00
Bryan Roe
0a44d8c873
Updated agent-update ARCHID detection on macOS to workaround bug in specific older versions
2021-01-16 14:33:06 -08:00
Bryan Roe
10f1b77006
Removed debug lines that were accidentally left in
2021-01-16 13:12:30 -08:00
Bryan Roe
060a34363f
Updated to use FFI/_wexecve() on windows
2021-01-16 02:00:40 -08:00
Bryan Roe
562f8a6ceb
Updated agentupdate
2021-01-14 23:57:52 -08:00
Ylian Saint-Hilaire
82f3a40ba6
More support for agent update using meshcore.
2021-01-14 20:27:15 -08:00
Bryan Roe
f00e565d8b
Merge branch 'master' of https://github.com/Ylianst/MeshCentral into master
2021-01-14 17:08:40 -08:00