62-year-old Stewart Reid appeared at Peterhead Sheriff Court on Monday where he admitted threatening and abusive behaviour and possessing a knife.
The court heard that Reid, whose address was given as 1 Moray View in Portknockie, launched an attack at a house in High Street, New Aberdour at 4am on September 5 last year.
Reid, who knew the occupants of the house from when he lived in the village, sprayed a foul-smelling brown liquid through the letterbox from a bottle. He also splashed paint on the outside of the property before running from the scene.
However, he was caught soon after the attack by the son of the property owner who had saw him running from a lane. Police officers were called and discovered the knife while his car contained more bottles of both the manure and liquid mixture and paint.
Solicitor Gail Wiggins said her client was “embarrassed” by his actions. Sentence on Reid was deferred until February 23 for background reports.