This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HELP enb_active_bearers number of GTP-U tunnels established currently | |
# TYPE enb_active_bearers gauge | |
enb_active_bearers 1 | |
# HELP enb_active_sessions number of session established currently | |
# TYPE enb_active_sessions gauge | |
enb_active_sessions 5 | |
# HELP enb_messages_received_total number of messages received by messagge type | |
# TYPE enb_messages_received_total counter | |
enb_messages_received_total{src="172.21.1.12:36412",type="Attach Response"} 5 | |
# HELP enb_messages_sent_total number of messages sent by messagge type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import dpkt | |
import sys | |
import socket | |
cli_mac = bytes(bytearray.fromhex('080042000001')) | |
srv_mac = bytes(bytearray.fromhex('080042000002')) | |
ethtype = dpkt.ethernet.ETH_TYPE_IP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import dpkt | |
import sys | |
import socket | |
from binascii import hexlify as hx | |
outfile = open(sys.argv[1], 'wb') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import dpkt | |
import sys | |
import binascii | |
with open(sys.argv[1], "rb") as f: | |
pcr = dpkt.pcap.Reader(f) | |
x = 1 | |
for t, buf in pcr: |