Random five character string added to URLs?

I have seen this in SEO-poisoning type of webpage defacement. They
anchor a javascript in the main website "frame" and it generates
optimization "links" using a numeric suffix or ?argument so that they
appear as separate links. If the crawler is recognized (e.g.,
googlebot) then the SEO page is returned.