1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef FORWARDCHANNEL_H
- #define FORWARDCHANNEL_H
- #include "CovertChannel.h"
- /**
- * @class Sniffer
- *
- * Sniffs the network.
- *
- * Sniffer class which will sniff on a network interface. It is supposed to
- * forward the packets to an analyzer or modifyer so we can hide data in the
- * traffic.
- */
- class ForwardChannel : public CovertChannel {
- public:
- /**
- * Creates a Sniffer.
- *
- * Creates a Sniffer and sets the network interface for sniffing.
- *
- * @param interface name of the interface for sniffing
- */
- ForwardChannel(const std::string &innerInterface, const std::string &outerInterface, const std::string &filter);
- /**
- * Destroys the Sniffer.
- *
- * Destructor of the Sniffer.
- */
- virtual ~ForwardChannel();
- protected:
- virtual bool handleChannelToInner(Tins::PDU &pdu);
- virtual bool handleChannelToOuter(Tins::PDU &pdu);
- };
- #endif
|