summaryrefslogtreecommitdiff
path: root/server/src/mini-rat.c
AgeCommit message (Collapse)Author
2023-11-08server: shift some functions to the clientHEADmasterDanny Holman
Instead of calling a separate function in the server for each attack action, just send an instruction to the victim to perform the action. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-11-08server: print the client ouput in full do not splitDanny Holman
Don't split the client output and print line-by-line, just print the full buffer unmodified. This requires fewer steps and the lines will be separated anyway. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-10-02server: close log-file when server exitsDanny Holman
The server should close the handle to the logging file on server exit. 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: write output to a file/socket descriptorDanny Holman
Instead of printing to stdout, print to a file or socket descriptor. This will allow remote control connections to be implemented relatively easily. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-07-26server: fix run_exec printing garbage dataDanny Holman
Fix a bug in which run_exec would print garbage values into the socket and to stdout. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-07-25server: fix incorrect inequality in print_hostinfoDanny Holman
Fix a bug in which print_hostinfo would check for a positive return value from read_session instead of a negative value. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-07-24server: add a proper timeout message to hostinfoDanny Holman
Add a proper timeout message to the print_hostinfo function. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-06-13server: add helper functions to the main fileDanny Holman
Add several helper functions to the main file of the C&C server that perform actions requested by the user. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-02-15fixup! main: add a command line processorDanny Holman
2023-02-15main: add a command line processorDanny Holman
Add a function that processes incoming user commands. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-01-04server: add a main header and source fileDanny Holman
Add a main header and source file so that every required header is checked against the config.h generated by autoconf. Signed-off-by: Danny Holman <dholman@gymli.org>