ForwardChannel.h 858 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef FORWARDCHANNEL_H
  2. #define FORWARDCHANNEL_H
  3. #include "CovertChannel.h"
  4. /**
  5. * @class Sniffer
  6. *
  7. * Sniffs the network.
  8. *
  9. * Sniffer class which will sniff on a network interface. It is supposed to
  10. * forward the packets to an analyzer or modifyer so we can hide data in the
  11. * traffic.
  12. */
  13. class ForwardChannel : public CovertChannel {
  14. public:
  15. /**
  16. * Creates a Sniffer.
  17. *
  18. * Creates a Sniffer and sets the network interface for sniffing.
  19. *
  20. * @param interface name of the interface for sniffing
  21. */
  22. ForwardChannel(const std::string &innerInterface, const std::string &outerInterface, const std::string &filter);
  23. /**
  24. * Destroys the Sniffer.
  25. *
  26. * Destructor of the Sniffer.
  27. */
  28. virtual ~ForwardChannel();
  29. protected:
  30. virtual bool handleChannelToInner(Tins::PDU &pdu);
  31. virtual bool handleChannelToOuter(Tins::PDU &pdu);
  32. };
  33. #endif