Git Product home page Git Product logo

jpcappacketwebapi's People

Watchers

 avatar

jpcappacketwebapi's Issues

IPV4数据分析

获取IPV4数据分析

API

http://locahost:8080/api/ipv4/list

Method : GET

###Response

{
    "code": "SUCCESS",
    "message": null,
    "data": [
           {
              version: 4,           //IP版本
              rsvTos: 1,           //服务类型
              priority: 1,           //优先级
              length: 20,         //长度
              ident: 1,             //标识
              moreFrag: false,    //More Frag?
              dontFrag: true,     //Don't Frag?
              offset: 1,             //片偏移
              hopLimit: 1,        //生存时间
              protocol: 1,        //协议
              srcIp: "xxxxx",   //源IP
              dstIp: "xxxxx"   //目的IP
        },
        {
              version: 4,           //IP版本
              rsvTos: 1,           //服务类型
              priority: 1,           //优先级
              length: 20,         //长度
              ident: 1,             //标识
              moreFrag: false,    //More Frag?
              dontFrag: true,     //Don't Frag?
              offset: 1,             //片偏移
              hopLimit: 1,        //生存时间
              protocol: 1,        //协议
              srcIp: "xxxxx",   //源IP
              dstIp: "xxxxx"   //目的IP
        },
         ……
     ]
}

获取网卡信息列表

获取网卡信息列表

API

http://localhost:8080/api/network/list

Method:GET

Request

Response

{
  "code": "SUCCESS",
  "message": null,
  "data": [
    {
      "id": 1,
      "name": "wlp5s0",
      "address": "192.168.50.223",
      "otherAddress": "fe80:0:0:0:b00b:2a93:319e:bc76"
    },
    {
      "id": 2,
      "name": "any",
      "address": "192.168.50.223",
      "otherAddress": "fe80:0:0:0:b00b:2a93:319e:bc76"
    },
    {
      "id": 3,
      "name": "lo",
      "address": "127.0.0.1",
      "otherAddress": "0:0:0:0:0:0:0:1"
    },
    {
      "id": 4,
      "name": "enp3s0",
      "address": "127.0.0.1",
      "otherAddress": "0:0:0:0:0:0:0:1"
    },
    {
      "id": 5,
      "name": "bluetooth0",
      "address": "127.0.0.1",
      "otherAddress": "0:0:0:0:0:0:0:1"
    },
    {
      "id": 6,
      "name": "nflog",
      "address": "127.0.0.1",
      "otherAddress": "0:0:0:0:0:0:0:1"
    },
    {
      "id": 7,
      "name": "nfqueue",
      "address": "127.0.0.1",
      "otherAddress": "0:0:0:0:0:0:0:1"
    },
    {
      "id": 8,
      "name": "usbmon1",
      "address": "127.0.0.1",
      "otherAddress": "0:0:0:0:0:0:0:1"
    },
    {
      "id": 9,
      "name": "usbmon2",
      "address": "127.0.0.1",
      "otherAddress": "0:0:0:0:0:0:0:1"
    }
  ]
}

TCP and UDP数据分析

获取TCP数据分析

API

http://locahost:8080/api/ipv4/tcp/list

Method : GET

###Response

{
    "code": "SUCCESS",
    "message": null,
    "data": [
           {
              srcPort: 2,                //源端口
              dstPort: 1,                 //目的端口
              urg: 1,                       //URG
              ack: false,               //ACK
              psh: false,                //PSH
              rst: false,                 //RST
              syn: true,                 //SYN
              fin: false,                   //FIN
              window: 1,             //窗口大小
              urgentPointer: 1,         //紧急指针
              data:"xxxx"
        },
        {
              srcPort: 2,                //源端口
              dstPort: 1,                 //目的端口
              urg: 1,                       //URG
              ack: false,               //ACK
              psh: false,                //PSH
              rst: false,                 //RST
              syn: true,                 //SYN
              fin: false,                   //FIN
              window: 1,             //窗口大小
              urgentPointer: 1  ,       //紧急指针
             data:"xxxx"
        },
         ……
     ]
}

获取UDP数据分析

API

http://locahost:8080/api/ipv4/udp/list

Method : GET

###Response

{
    "code": "SUCCESS",
    "message": null,
    "data": [
           {
              srcPort: 2,                //源端口
              dstPort: 1,                 //目的端口
              length: 111              //长度
        },
        {
              srcPort: 2,                //源端口
              dstPort: 1,                 //目的端口
              length: 111              //长度
        },
         ……
     ]
}

获取各类型数据的数量

获取各类型数据的数量

Method:GET

http:/localhost:8080/api/count

Response

{
     "code": SUCCESS,
     “message": null,
     "data":{
                   "ipv4": 100,
                   "tcp": 70,
                   "udp":29,
                    "arp": 7
         }
}

ARP数据分析

获取ARP数据分析

API

http://locahost:8080/api/arp/list

Method : GET

###Response

{
    "code": "SUCCESS",
    "message": null,
    "data": [
           {
              hardtype: 2,           //硬件类型
              prototype: 1,           //协议类型
              hlen: 111,           //硬件地址长度
              plen: 20,         //协议地址长度
              ident: 1,             //标识
              senderHardaddr: "XXX",    //发送者硬件地址
              senderProtoaddr: "XXX",     //发送者协议地址
              targetHardaddr: "XXX",             //目标硬件地址
              targetProtoaddr: "XXX",        //目标协议地址
        },
        {
              hardtype: 2,           //硬件类型
              prototype: 1,           //协议类型
              hlen: 111,           //硬件地址长度
              plen: 20,         //协议地址长度
              ident: 1,             //标识
              senderHardaddr: "XXX",    //发送者硬件地址
              senderProtoaddr: "XXX",     //发送者协议地址
              targetHardaddr: "XXX",             //目标硬件地址
              targetProtoaddr: "XXX",        //目标协议地址
        },
         ……
     ]
}

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.