Code Monkey home page Code Monkey logo

bpflex's Introduction

BPFlex

An eBPF framework designed for deploying eBPF programs in native C.

Steps:

git clone https://github.com/karthickpython/BPFlex.git

cd BPFlex

sudo bash bpftool_installer.sh

cd libbpflex

make

sudo ./tcpstates

View unique active TCP host connections in 'unique_active.txt' and passive connection in unique_passive.txt within the same directory.

tcpstats application created to obtain metrics for the number of unique connections, along with connection details, including the creating process name, process ID, thread ID, 5-tuple information, and connection establishment latency.

Example output:

Time: 16:42:56 Process Name: Chrome_ChildIOT S_IP: 10.15.202.91 SPort: 56922 D_IP: 136.143.180.20 DPort: 443 ThreadID: 2146 PID: 2125 Latency: 291.224

Time: 16:43:10 Process Name: irq/150-iwlwifi S_IP: 10.15.202.91 SPort: 59442 D_IP: 136.143.191.162 DPort: 443 ThreadID: 556 PID: 556 Latency: 254.175

Time: 16:45:41 Process Name: Socket Thread S_IP: 10.15.202.91 SPort: 45360 D_IP: 34.149.100.209 DPort: 443 ThreadID: 22059 PID: 21967 Latency: 3.114

bpflex's People

Contributors

karthickpython avatar mrkksparrow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.