mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Init RDP analyzer
This commit is contained in:
parent
4bcb9d2d92
commit
46713fb5c7
14 changed files with 1161 additions and 1 deletions
48
src/analyzer/protocol/rdp/RDP.h
Normal file
48
src/analyzer/protocol/rdp/RDP.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue