A server restore would be safer if you have it (but take it offline and update WP etc before putting back online or it will just get hacked again).
If no server level backup is available, then you also need to restore the database if you didn't (likely extra admin users and who knows what else hiding in there). If there's more than one site on the server you also need to worry about all other sites too as WO never quite got to implementing secure separation of sites.