A trip wire hooked to my 20 gauge coach gun would work too.
But the neighbors might complain.
Had a thought last night...
Something that has worked temporarily (remember that these are extremely smart animals)
Soak a few rag/newspaper wad/tennis ball with ammonia. Toss them into the attic / crawl space.
With their keen sense of smell, they can't deal with the irritant.
Will only last for a couple of days until the ammonia evaporates, but it will clear them out long enough to seal up the entry points.