mirror of https://github.com/infosecn1nja/C3.git
Fix documentation for CloseConnection
parent
40a2dea268
commit
f84c7501b2
|
@ -29,7 +29,7 @@ namespace MWR::C3::Interfaces::Connectors
|
|||
/// Called every time new implant is being created.
|
||||
/// @param connectionId unused.
|
||||
/// @param data unused. Prints debug information if not empty.
|
||||
/// @para isX64 unused.
|
||||
/// @param isX64 unused.
|
||||
/// @returns ByteVector copy of data.
|
||||
ByteVector PeripheralCreationCommand(ByteView connectionId, ByteView data, bool isX64) override;
|
||||
|
||||
|
@ -40,9 +40,9 @@ namespace MWR::C3::Interfaces::Connectors
|
|||
ByteVector TestErrorCommand(ByteView arg);
|
||||
|
||||
/// Close desired connection
|
||||
/// @arguments arguments for command. connection Id in string form.
|
||||
/// @param connectionId id of connection (RouteId) in string form.
|
||||
/// @returns ByteVector empty vector.
|
||||
MWR::ByteVector CloseConnection(ByteView arguments) override;
|
||||
MWR::ByteVector CloseConnection(ByteView connectionId) override;
|
||||
|
||||
/// Represents a single connection with implant.
|
||||
struct Connection : std::enable_shared_from_this<Connection>
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace MWR::C3::Interfaces::Connectors
|
|||
/// Called every time new implant is being created.
|
||||
/// @param connectionId adders of beacon in C3 network .
|
||||
/// @param data parameters used to create implant. If payload is empty, new one will be generated.
|
||||
/// @para isX64 indicates if relay staging beacon is x64.
|
||||
/// @param isX64 indicates if relay staging beacon is x64.
|
||||
/// @returns ByteVector correct command that will be used to stage beacon.
|
||||
ByteVector PeripheralCreationCommand(ByteView connectionId, ByteView data, bool isX64) override;
|
||||
|
||||
|
@ -91,9 +91,9 @@ namespace MWR::C3::Interfaces::Connectors
|
|||
MWR::ByteVector GeneratePayload(ByteView binderId, std::string pipename, bool arch64, uint32_t block);
|
||||
|
||||
/// Close desired connection
|
||||
/// @arguments arguments for command. connection Id in string form.
|
||||
/// @param connectionId id of connection (RouteId) in string form.
|
||||
/// @returns ByteVector empty vector.
|
||||
MWR::ByteVector CloseConnection(ByteView arguments) override;
|
||||
MWR::ByteVector CloseConnection(ByteView connectionId) override;
|
||||
|
||||
/// Initializes Sockets library. Can be called multiple times, but requires corresponding number of calls to DeinitializeSockets() to happen before closing the application.
|
||||
/// @return value forwarded from WSAStartup call (zero if successful).
|
||||
|
|
|
@ -142,12 +142,12 @@ namespace MWR::C3
|
|||
/// Called every time new peripheral is being created.
|
||||
/// @param connectionId adders of peripheral in C3 network .
|
||||
/// @param data all parameters used to create peripheral. Specific for each connector.
|
||||
/// @para isX64 indicates if relay staging peripheral is x64.
|
||||
/// @param isX64 indicates if relay staging peripheral is x64.
|
||||
/// @returns ByteVector correct command that will be used to stage peripheral.
|
||||
virtual ByteVector PeripheralCreationCommand(ByteView connectionId, ByteView data, bool isX64 = false) = 0;
|
||||
|
||||
/// Close desired connection
|
||||
/// @arguments connectionId for command. connection Id in string form.
|
||||
/// @param connectionId id of connection (RouteId) in string form.
|
||||
/// @returns ByteVector empty vector.
|
||||
virtual ByteVector CloseConnection(ByteView connectionId) = 0;
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ namespace MWR::C3
|
|||
virtual ByteVector PeripheralCreationCommand(ByteView connectionId, ByteView data, bool isX64) { return data; }
|
||||
|
||||
/// Close desired connection
|
||||
/// @arguments connectionId for command. connection Id in string form.
|
||||
/// @param connectionId id of connection (RouteId) in string form.
|
||||
/// @returns ByteVector empty vector.
|
||||
virtual ByteVector CloseConnection(ByteView connectionId) = 0;
|
||||
|
||||
|
|
|
@ -73,12 +73,12 @@ namespace MWR::C3::Core
|
|||
/// Called every time new peripheral is being created.
|
||||
/// @param connectionId adders of peripheral in C3 network .
|
||||
/// @param data all parameters used to create peripheral. Specific for each connector.
|
||||
/// @para isX64 indicates if relay staging peripheral is x64.
|
||||
/// @param isX64 indicates if relay staging peripheral is x64.
|
||||
/// @returns ByteVector correct command that will be used to stage peripheral.
|
||||
ByteVector PeripheralCreationCommand(ByteView connectionId, ByteView data, bool isX64 = false) override;
|
||||
|
||||
/// Close desired connection
|
||||
/// @arguments connectionId for command. connection Id in string form.
|
||||
/// @param connectionId id of connection (RouteId) in string form.
|
||||
/// @returns ByteVector empty vector.
|
||||
ByteVector CloseConnection(ByteView connectionId) override;
|
||||
|
||||
|
|
Loading…
Reference in New Issue