OpenNet is a c++11 library that contains all the structures required for network packet analysis.
Analyzing packets easily and conveniently through this library!
2021-11-21 ~ 2021-12-18
$ apt-get install qt5-default
$ apt-get install qtcreator
- Get the source code and change to it. e.g., cloning with git:
$ git clone https://github.com/wifievent/opennet.git
$ cd app
- Run QMake to configure the build tree.
$ qmake
$ make
- If you're using QT Framework, add the following statement in your project's .pro file.
# This is the relative location, which depends on the location of the downloaded opennet library
include(../../../opennet/opennet.pri)
#include "pcapdevice.h"
#include "arpspoof.h"
int main(int argc, char *argv[])
{
ArpSpoof arpspoof_;
TcpBlock tcpblock_;
bool res = arpspoof_.open();
if (!res) return;
arpspoof_.prepare();
tcpblock_.writer_ = &arpspoof_;
res = tcpblock_.open();
if (!res) return;
return 0;
}