If your Tor packets don’t pass through enough foreign Tor nodes, then they can find you. Sending bogus packets (with a destination) makes tracing harder, although it kind of destroys the Tor network.
And on the history hack, the best example I know of it is: