Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
The server should close the handle to the logging file on server exit.
Signed-off-by: Danny Holman <dholman@gymli.org>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Add a proper timeout message to the print_hostinfo function.
Signed-off-by: Danny Holman <dholman@gymli.org>
|
|
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>
|
|
|
|
Add a function that processes incoming user commands.
Signed-off-by: Danny Holman <dholman@gymli.org>
|
|
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>
|