go-mikrotik-rif

command module
v0.0.0-...-6298675 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 8 Imported by: 0

README

Mikrotik RIF decoder (Golang)

This is a tool that decodes the Mikrotik RIF files (the files that you provide to their support team).

Mikrotik have a tool on their website to inspect RIF files and for comparing the sections side by side. It's a very good tool, and I recommend using it if you can.

However, sometimes you can't upload your support file to their site. Maybe you want to vet what's in the file before you submit it.

Downloads

Download for Linux and Windows can be found on the Releases tab

Acknowledgements

This code is a Go port of an old Perl script originally written by paul@unsup.sbrk.co.uk. The credit for all of the decoding logic goes to that script. I have also included that script in this repository in case the Pastebin version ever goes offline.

Why not an already existing tool?

The following tools I already found, and my rebuttals for why I created this tool:

  • Mikrotik Website - Excellent. Highly recommend. You should use this unless you can't upload your RIF files without reading what's in them first, or if you don't have internet access, or don't want to create a Mikrotik account

  • http://k3dt.eu/supout-reader/ - Works. But you're uploading your RIF file to an unknown 3rd party. Also you can't view the entire RIF output at once (e.g. to copy/paste into a diff tool or something like that)

  • This old Perl script from the forum - it's been removed from the forum. This is the only place I can find it. It's not cross-platform (*nix only), replies on Perl (I couldn't get it to work due to missing dependencies), and is not portable (requires Perl, required dependencies, doesn't work on Windows). This script is what this work is based on.

Example usage

Linux:

./mikrotik-rif-linux /tmp/supout.rif

Windows:

.\mikrotik-rif-windows.exe C:\temp\supout.rif

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL