Skip to content

wifievent/opennet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Library "OpenNet"

OpenNet is a c++11 library that contains all the structures required for network packet analysis.

Analyzing packets easily and conveniently through this library!


✨ Development language


💻 Development period

2021-11-21 ~ 2021-12-18


🏃 Prerequisites

     $ apt-get install qt5-default
     $ apt-get install qtcreator

⚙️ Building opennet with QMake

  1. Get the source code and change to it. e.g., cloning with git:
     $ git clone https://github.com/wifievent/opennet.git
     $ cd app
  1. Run QMake to configure the build tree.
     $ qmake
     $ make

🧵 How to link library

  • 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) 

📝 Examples

#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;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages