summaryrefslogtreecommitdiff
path: root/server/src/server.c
AgeCommit message (Collapse)Author
2023-09-29server: remove O_NONBLOCK flag from client socketDanny Holman
Remove a line in server.c that set the client socket descriptor as non-blocking. Since the server is multithreaded we do not need non-blocking I/O. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-09-29Update versionDanny Holman
Update version information across all build files. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-09-29server: implement remote control connectionsDanny Holman
Implement a series of functions that facilitate remote control connections, i.e. connections that control session information, allow exfiltration of data, etc. from the command server. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-09-29server: remove input/output pump functionsDanny Holman
Remove the functions doing I/O on socket operations. These functions are designed for single-threaded applications or for non-blocking sockets; neither of which mini-rat has. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-07-24server: fixed a timeout bug in session controlDanny Holman
Fixed a bug inside the session control logic that disallowed a timeout value. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-06-13server: mark the worker socket as non-blockingDanny Holman
Mark the socket in the worker function as non-blocking and run poll(). This should be done in order to prevent a slow loris attack on the C&C server. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-01-04server: add server control functionsDanny Holman
Add functions that initialize and control the server listening socket. Signed-off-by: Danny Holman <dholman@gymli.org>