Init RDP analyzer

This commit is contained in:
Josh Liburdi 2015-02-14 13:16:48 -08:00
parent 4bcb9d2d92
commit 46713fb5c7
14 changed files with 1161 additions and 1 deletions

View file

@ -0,0 +1,48 @@
#ifndef ANALYZER_PROTOCOL_RDP_RDP_H
#define ANALYZER_PROTOCOL_RDP_RDP_H
#include "events.bif.h"
#include "analyzer/protocol/tcp/TCP.h"
#include "rdp_pac.h"
namespace analyzer { namespace rdp {
class RDP_Analyzer : public tcp::TCP_ApplicationAnalyzer {
public:
RDP_Analyzer(Connection* conn);
virtual ~RDP_Analyzer();
// Overriden from Analyzer.
virtual void Done();
virtual void DeliverStream(int len, const u_char* data, bool orig);
virtual void Undelivered(uint64 seq, int len, bool orig);
// Overriden from tcp::TCP_ApplicationAnalyzer.
virtual void EndpointEOF(bool is_orig);
static analyzer::Analyzer* InstantiateAnalyzer(Connection* conn)
{ return new RDP_Analyzer(conn); }
// static bool Available()
// {
// TODO: After you define your events, || them together here.
// See events.bif for more information
//return ( rdp_event );
// }
protected:
binpac::RDP::RDP_Conn* interp;
bool had_gap;
};
} } // namespace analyzer::*
#endif