The thing is, the hackers put files everywhere. If it were me and all I basically had was a forum, I'd nuke all files (keeping a backup of config.inc.php, main.inc.php and any other config files) and re-install. Should be no problem and you'll still have all members, posts, pm's, forums, etc.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.