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

44 Commits

Author SHA1 Message Date
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
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
0aa0a8cfa4 Added ILibBase64DecodeEx 2019-03-04 14:29:52 -08:00
Bryan Roe
b25a54c8b5 Fixed race condition, where on Linux when you compact the DB, it may not unlock before it reopens 2019-03-01 15:31:43 -08:00
Bryan Roe
4c05359e33 Fixed how the request transform stream buffers data 2019-03-01 10:26:04 -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
b9af163039 Added ability to log control channel messages 2019-02-14 14:03:33 -08:00
Bryan Roe
ed92a0b21c Fixed capitalization of include, when NOTLS is built 2019-02-13 16:36:38 -08:00
Bryan Roe
995c4015b0 Added functionality so if 'webSocketMaskOverride' is specified in the db, the optimization to disable masking for TLS protected websockets is disabled 2019-02-12 13:43:42 -08:00
Bryan Roe
ae72740a18 1. Updated ILibProcessPipe, so that buffer will grow as necessary
2. Updated Windows KVM, to add an accumulator for JUMBO commands
2019-02-06 16:32:31 -08:00
Bryan Roe
26a3ccefd0 Added missing includes, if NOTLS is specified for Linux 2019-02-04 12:49:44 -08:00
Bryan Roe
e9f5209552 Changed how the ForceUnblockPipe works on Linux, to not use fdopen/fdclose.
Also modified, so when flushing the ForceUnblockPipe, if the descriptor is invalid, it will recreate it, fixing a 100% CPU issue on linux, that seems to happen after a self-update.
2019-02-02 22:49:20 -08:00
Bryan Roe
817f2786e2 Updated 'ChainViewer' 2019-02-02 02:55:12 -08:00
Bryan Roe
aeaa229e31 1. Modified WebRTC_DataChannel to use union, to simplify struct def
2. Added ChainLink MetaData
3. Added 'ChainViewer' to allow JS to debug Chain events
2019-02-01 23:33:02 -08:00
Bryan Roe
1b5a6d0bc6 Updated selfupdate to use fork/execv instead of command
Updated SelfUpdate logging
Added SelfUpdate debugging helpers
2019-02-01 17:22:33 -08:00
Bryan Roe
bd16538a8e Fixed compiler warnings on MacOS 2019-02-01 01:13:07 -08:00
Bryan Roe
5995742cef Added db key to log update messages to aid in debugging update failures. 2019-01-31 14:40:52 -08:00
Bryan Roe
1f4f3185bd Updated JS WebRTC debug hooks 2019-01-29 22:41:35 -08:00
Bryan Roe
97a2e5b12c Updated so compiles for MIPS correctly 2019-01-23 14:32:52 -08:00
Bryan Roe
9351108e60 Fixed typo in macro 2019-01-18 17:03:13 -08:00
Bryan Roe
f65a5935dd Fixed compiler warnings 2019-01-18 15:28:28 -08:00
Bryan Roe
e5600ea6b0 Added missing fseek 2019-01-18 14:58:13 -08:00
Bryan Roe
4f5d3bcfe4 Fixed file format to be consistent between 32/64 bit... Updated so it will auto update old format to new format 2019-01-18 14:26:16 -08:00
Bryan Roe
2366122d58 Fixed bug where clearing proxy setting, didn't clear all the settings 2019-01-17 22:59:27 -08:00
Bryan Roe
ba28e98ef7 1. Fixed bug where the last result data length could include the NULL terminator if the input string length was too long.
2. Updated DB calls, to Get/Put will truncate the NULL terminator if it is specified in the key name
3. Updated COMPACT, so keynames will be fixed if it contains a NULL terminator
2019-01-17 18:05:26 -08:00
Bryan Roe
f39beca4aa 1. Fixed bug where pendingBytesToSend went negative
2. Fixed bug where if bytesSent was -1, it caused allocated buffer to be offset incorrectly
2019-01-16 15:50:02 -08:00
Bryan Roe
43eb327870 Updated so compiles on MacOS 2019-01-11 13:39:09 -08:00
Bryan Roe
99ff50fcb8 Updated so compiles on OSX
Fixed Semaphores which were completely broken on OSX. Now uses Grand Central Dispatch Semaphores
Disabled WatchDog for Non-Isolated ScriptContainer
Updated Canary check, so it fails if the pointer is NULL
Added thread join helper
Updated RunOnMicrostackThread, to make availahle an ABORT handler
started to add SSL tracing capability for debug
2019-01-11 13:38:12 -08:00
Bryan Roe
2363e36bcb Fixed on Linux, so db is opened exclusively, and fails/exits if it can't do it
Updated from SHA256 to SHA384
Added helper to see if db exist
Fixed deprecation problem on windows
Added an explicit unlock
Added fix, to prevent memory corruption if a db record is corrupt
2019-01-11 13:34:22 -08:00
Bryan Roe
372a20e841 Updated SSL_TRACE
Fixed logic error that occurs if the server returns an invalid/incorrect status code when making a websocket request
2019-01-11 12:44:46 -08:00
Bryan Roe
0af4b403dd Added helper code (commented out), to aid in wireshark debugging DTLS 2019-01-11 12:43:23 -08:00
Bryan Roe
a3f69396f6 Added MacOS support
Added ability to spawn process with specific user, under linux
Fixed edge case memory leak caused when we were trying to QueueUserAPC to a thread we were already on, which also caused a 3 second delay.
Changed WindowsRunLoop, to detect bad HANDLEs, and event an error on them, and remove them from list
Fixed linux bug, where a spawned child called 'exit' instead of '_exit' in an error condition
2019-01-11 12:42:16 -08:00
Bryan Roe
c0db749e8e Added ability to use external cert 2019-01-11 12:39:44 -08:00
Bryan Roe
eaff1c25e4 Added domain socket support on Linux and MacOS 2019-01-11 12:37:59 -08:00
Ylian Saint-Hilaire
3c80473a94 Major agent update. 2018-09-05 11:01:17 -07:00
Ylian Saint-Hilaire
4b5c77b4fd Many improvements. 2018-02-11 21:11:58 -08:00
Ylian Saint-Hilaire
508646044e Much improved, better stability, lots of fixes 2018-01-12 11:50:04 -08:00
Ylian Saint-Hilaire
becf71557f Improved agent that can update the MeshCentral1 agent 2017-11-09 16:07:39 -08:00
Ylian Saint-Hilaire
34e09c2304 MeshAgent for MeshCentral2 Beta2 with improved crypto. 2017-10-25 21:08:41 -07:00
Ylian Saint-Hilaire
75d86eb4c8 First commit of MeshAgent for MeshCentral 2017-10-12 14:28:03 -07:00