PcapPlusPlus
21.05
|
#include <SSHLayer.h>
Public Member Functions | |
std::string | getIdentificationMessage () |
size_t | getHeaderLen () const |
std::string | toString () const |
Public Member Functions inherited from pcpp::SSHLayer | |
void | parseNextLayer () |
void | computeCalculateFields () |
OsiModelLayer | getOsiModelLayer () const |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () const |
uint8_t * | getData () const |
size_t | getDataLen () const |
uint8_t * | getLayerPayload () const |
size_t | getLayerPayloadSize () const |
bool | isAllocatedToPacket () const |
void | copyData (uint8_t *toArr) const |
uint8_t * | getDataPtr (size_t offset=0) const |
Static Public Member Functions | |
static SSHIdentificationMessage * | tryParse (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
Static Public Member Functions inherited from pcpp::SSHLayer | |
static SSHLayer * | createSSHMessage (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
static bool | isSSHPort (uint16_t portSrc, uint16_t portDst) |
A class that represnets SSH identification message as described in RFC 4253: https://tools.ietf.org/html/rfc4253#section-4.2
The message content is typically a string that contains the protocol version, software version and a few more details. This string can be retrieved using the getIdentificationMessage() method
|
inlinevirtual |
Implements pcpp::Layer.
std::string pcpp::SSHIdentificationMessage::getIdentificationMessage | ( | ) |
|
virtual |
Implements pcpp::Layer.
|
static |
A static method that takes raw data and tries to parse it as an SSH identification message using the heuristics described in the SSHLayer.h file description. It returns a SSHIdentificationMessage instance if such a message can be identified or NULL otherwise.
[in] | data | A pointer to the raw data |
[in] | dataLen | Size of the data in bytes |
[in] | prevLayer | A pointer to the previous layer |
[in] | packet | A pointer to the Packet instance where layer will be stored in |