Recently I nabbed a friendly feral using a portable dog kennel and placing his favorite food inside. He wasn't happy when I shut the door behind him.
He returned in the kennel and we kept him there over night like Emeraldgreen suggests and let him loose in the morning. We used a kitten litter box inside the kennel.
Good luck!
Bookmarks