A MAN who used a metal baton to carry out an unprovoked attack on a Dunbar resident in his own home was later found hiding in a cupboard.