Bryan Roe
1eae8ef45e
Updated so environment block is constructed in parent instead of child, when used for execve() on linux.
2021-09-07 16:24:44 -07:00
Bryan Roe
67a949207f
Updated for OpenBSD
2021-08-30 12:06:36 -07:00
Bryan Roe
667bb3103d
Fixed bug in edge case write() logic
2021-08-23 23:48:02 -07:00
Bryan Roe
2b1d5916bb
Modified behavior of child process on posix so when passing env vars it is passed to execve, instead of setting in current process, and inheriting using execv.
2021-05-19 15:29:07 -07:00
Bryan Roe
704edbb802
Updated metadata
2021-01-28 02:11:05 -08:00
Bryan Roe
a728ba40de
Added NULL checks
2021-01-26 13:47:20 -08:00
Bryan Roe
5ca3b3cc6a
Updated xterm setting to 256color
2021-01-11 10:19:41 -08:00
Bryan Roe
e0ec2a405d
Added memory check to prevent potential crash
2020-12-31 13:13:23 -08:00
Bryan Roe
fa4b217943
Fixed memory leak that occurs if agent is shutdown while spawned processes are still open.
2020-12-03 18:20:11 -08:00
Bryan Roe
77834337fd
1. Fixed process HANDLE leak on windows
...
2. Replaced semaphore with spinlock on event emitter object.
2020-11-26 11:30:23 -08:00
Bryan Roe
a2892996fb
IOActive update for size_t vs int for buffer lengths
2020-10-16 00:48:34 -07:00
Bryan Roe
73b1d5e77c
Converted atoi to safer alternative
2020-09-24 15:50:27 -07:00
Bryan Roe
9890200f25
Added MIPS24KC (OpenWRT) Support
2020-08-19 17:40:34 -07:00
Bryan Roe
8dc669699e
Added mitigation for signal handling with vfork
2020-07-07 17:05:47 -07:00
Bryan Roe
b2a99c7497
Added NULL/Canary check on metadata update method
2020-06-12 16:32:39 -07:00
Bryan Roe
10a9e7226e
1. Added support for UTF8 wnvironment variables for window's child_process
...
2. Updated message-box and toaster to support UTF8 on Windows
2020-06-09 19:37:37 -07:00
Bryan Roe
6834a34ca6
1. Fixed NULL reference crash that could occur if ILibProcessPipe metadata is NULL when fdsnapshot is called
...
2. Updated MacOS KVM to set metadata on child process
2020-06-07 01:13:21 -07:00
Bryan Roe
5fa79bdee0
Fixed compiler warnings
2020-05-28 01:00:59 -07:00
Bryan Roe
a7b30fb729
Updated metadata
2020-05-22 12:18:46 -07:00
Bryan Roe
2a0cc4435d
Fixed #ifdef
2020-05-22 00:31:48 -07:00
Bryan Roe
32935e0102
Updated metadata handling
2020-05-22 00:27:01 -07:00
Bryan Roe
655e607e01
Fixed #ifdef
2020-05-20 13:14:39 -07:00
Bryan Roe
f2d63ea116
Updated metadata for descriptor tracking
2020-05-19 17:21:07 -07:00
Bryan Roe
56cc4c1328
Improved descriptor tracking
2020-05-19 14:47:52 -07:00
Bryan Roe
97ad48f2f2
1. Added ILibChain_WriteEx()
...
2. Updated ILibChain_Continue() on windows to take an optional list of HANDLE**
3. Updated net.socket IPC on Windows to use ILibChain_ReadEx and ILibChain_WriteEx
4. Fixed child_process.waitExit() on windows to pass only the wait handles for the process
5. Added GetWaitHandles() to ILibProcessPipe
2020-05-15 17:25:49 -07:00
Bryan Roe
9a4f2edfef
Fixed compiler warning, and updated fix
2020-05-11 14:17:25 -07:00
Bryan Roe
a4c5430879
Updated windows path to use ReadEx when overlapped is supported
2020-05-09 11:02:16 -07:00
Bryan Roe
b2b78a3dbe
Fixed so current node can be removed while being dispatched
2020-05-08 19:37:16 -07:00
Bryan Roe
7dc8ee4ef4
Added memory ownership for buffer
2020-05-07 18:19:14 -07:00
Bryan Roe
2ae485dad8
Fixed dwErrorStatus check
2020-05-07 11:27:05 -07:00
Bryan Roe
9668b8d77d
Update to use new threading model for windows
2020-05-07 10:29:49 -07:00
Bryan Roe
5fb0cef7db
1. Removed debug message from child-container
...
2. Fixed WriteEx() behavior
3. Fixed AddWaitHandle() to use APC if called from wrong thread
4. Fixed net.ipcSocket to return correct value if write completed right away
2020-05-05 16:12:23 -07:00
Bryan Roe
d26701c731
Updated ReadEx
2020-05-05 13:27:03 -07:00
Bryan Roe
969909cca7
Updated WriteEx
2020-05-05 02:00:07 -07:00
Bryan Roe
1bd4e3d07c
Updated Windows Chain logic, to use WSAEventSelect and WaitForMultipleObjectsEx
2020-05-04 17:25:55 -07:00
Bryan Roe
941ac6e192
1. Added NULL check
...
2. Added process._exit()
3. Fixed CancelIOEx usage
2020-05-03 19:40:32 -07:00
Bryan Roe
71bd469551
fix
2020-04-29 03:01:44 -07:00
Bryan Roe
417cab5a83
Fixed typo
2020-04-18 14:24:24 -07:00
Bryan Roe
743a38eeeb
1. Updated WaitHandle_Add2 to no use APC to dispatch to event loop, becuase winsock is not re-entrant, and don't want to risk corruption
...
2. Updated memory handling for async methods in Generic Marshal
2020-04-18 13:53:38 -07:00
Bryan Roe
937ae3b5d2
Added pid check for forkpty() initialization
2020-02-05 13:07:56 -08:00
Bryan Roe
ee10dbeb17
Fixed #include for FreeBSD
2020-02-05 11:13:25 -08:00
Bryan Roe
91ec72b34d
Fixed #include for FreeBSD/MacOS
2020-02-05 11:04:09 -08:00
Bryan Roe
afe0deacb2
Fixed bug where interactive shell was redirecting stderr
2020-02-04 17:15:51 -08:00
Bryan Roe
32592bd622
1. Updated environment variables, so that string values are coerced
...
2. Added ability to specify termios struct values via environment variables
2020-02-04 15:23:52 -08:00
Bryan Roe
3c7d5effb2
1. Added pty and tcsetsize to child_process
...
2. Added ILibProcessPipe_Process_GetPTY to ILibProcessPipe
2020-01-27 17:08:45 -08:00
Bryan Roe
a9ef6d0f61
1. Fixed detached processes on Windows
...
2. Updated service-manager on Windows to add an uninstaller into Program Manager
3. Updated service-manager on Windows to try to delay spawn a process to delete a service, which is required if the service to be uninstalled is the currently running process.
2020-01-15 14:53:12 -08:00
Bryan Roe
4998eb173f
Fixed edge case bug on Windows, where a Resume could result in ReadFile getting called before getOverlappedResult was called, corrupting the read buffer.
2019-12-23 17:11:12 -08:00
Bryan Roe
8356cbf190
Added missing #ifdef around Windows Specific fixes
2019-12-05 10:56:13 -08:00
Bryan Roe
37acfa64f0
Fixed windows race condition between garbage collecting spawned process and exit handler, if the memory was reclaimed at just the right time
2019-11-28 09:57:04 -08:00
Bryan Roe
bac3533d29
Added missing #ifdef
2019-10-31 10:59:46 -07:00