mistletoexw / jpcappacketwebapi Goto Github PK
View Code? Open in Web Editor NEWUse Java Jpcap To Get & Analysis WebPacket
Use Java Jpcap To Get & Analysis WebPacket
{
"code": "SUCCESS",
"message": null,
"data":{
IPV4: 100,
TCP: 70,
UDP: 25,
ARP: 10
}
}
###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
},
……
]
}
###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"
},
……
]
}
###Response
{
"code": "SUCCESS",
"message": null,
"data": [
{
srcPort: 2, //源端口
dstPort: 1, //目的端口
length: 111 //长度
},
{
srcPort: 2, //源端口
dstPort: 1, //目的端口
length: 111 //长度
},
……
]
}
###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", //目标协议地址
},
……
]
}
{
"code": SUCCESS,
“message": null,
"data":{
"ipv4": 100,
"tcp": 70,
"udp":29,
"arp": 7
}
}
无
{
"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"
}
]
}
{
"code": "SUCCESS",
"message": null,
"data": null
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.