Skip to content

Instantly share code, notes, and snippets.

@jasonish
Created May 15, 2015 16:43
Show Gist options
  • Save jasonish/feff249bc3ff81256cae to your computer and use it in GitHub Desktop.
Save jasonish/feff249bc3ff81256cae to your computer and use it in GitHub Desktop.
Sample DNP3 request/response logging.
{
"dnp3": {
"application": {
"objects": [
{
"variation": 0,
"group": 1
}
],
"function_code": 1,
"control": {
"sequence": 13,
"uns": false,
"con": false,
"fin": true,
"fir": true,
"value": 205
}
},
"transport": {
"sequence": 25,
"fir": true,
"fin": true,
"value": 217
},
"dst": 1,
"src": 1,
"control": {
"function_code": 4,
"fcv": false,
"fcb": false,
"pri": true,
"dir": true,
"value": 196
},
"type": "request"
},
"proto": "TCP",
"timestamp": "2015-04-01T14:54:12.641750-0600",
"flow_id": 106790066891968,
"pcap_cnt": 4888,
"event_type": "dnp3",
"src_ip": "192.168.9.102",
"src_port": 50600,
"dest_ip": "192.168.2.100",
"dest_port": 20000
}
{
"dnp3": {
"iin": {
"indicators": [
"device_restart",
"class_2_events",
"class_1_events"
],
"value": 34304
},
"application": {
"objects": [
{
"variation": 1,
"group": 1
}
],
"function_code": 129,
"control": {
"sequence": 13,
"uns": false,
"con": false,
"fin": true,
"fir": true,
"value": 205
}
},
"transport": {
"sequence": 25,
"fir": true,
"fin": true,
"value": 217
},
"dst": 1,
"src": 1,
"control": {
"function_code": 4,
"fcv": false,
"fcb": false,
"pri": true,
"dir": false,
"value": 68
},
"type": "response"
},
"proto": "TCP",
"timestamp": "2015-04-01T14:54:12.641750-0600",
"flow_id": 106790066891968,
"pcap_cnt": 4888,
"event_type": "dnp3",
"src_ip": "192.168.9.102",
"src_port": 50600,
"dest_ip": "192.168.2.100",
"dest_port": 20000
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment