Skip to content

A small utility, written in Python, to record and replay BMP packets

License

Notifications You must be signed in to change notification settings

paololucente/bmp_play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f559fb7 · Mar 30, 2022

History

22 Commits
Sep 19, 2021
Feb 1, 2019
Mar 19, 2022
Mar 30, 2022
Mar 28, 2022

Repository files navigation

bmp_play

A small utility, written in Python, to record and replay BMP packets very useful for devloping around the protocol.

Originally part of OpenBMP dev tools, it eventually disappeared from the known cyber space. The idea is to make this tool public again for the community to enjoy and improve.

To record: bmp_play.py -m record -p 1790 -f bmp.dump

To replay: bmp_play.py -m play -p 1790 -f bmp.dump -d 127.0.0.1

More Examples:

  • Replay a dump 3 times with 60 secs delay between the plays. Once finished, keep the TCP connection up:

    • bmp_play.py -m play -p 1790 -f bmp.dump -d 127.0.0.1 -l 3 -i 60 -k
  • Replay a dump forever with 120 secs delay between the plays:

    • bmp_play.py -m play -p 1790 -f bmp.dump -d 127.0.0.1 -l 0 -i 120

bmp_filter

A small utility, written in Python, to filter pre-recorded BMP packets by BMP message type.

bmp_filter.py -i /path/to/file.bmp -o /path/to/output/file.bmp --statistics-report --peer-down --peer-up --initiation