Virus on Mikrotik (?) + formatting (?) router

This is what happened to you:
http://forum.mikrotik.com/t/advisory-vulnerability-exploiting-the-winbox-port-solved/118771/1

And I would recommend the added step of doing a Netinstall to insure your device is clean.
https://wiki.mikrotik.com/wiki/Manual:Netinstall