Person A connects a $15,000 mining rig to his computer and starts churning out many terahashes per second, in the form of "shares".
Person B connects nothing to his computer, but instead modifies cgminer to pretend that it is communicating with a $15,000 mining rig and generates the exact same number of terahashes per second, however they are all faked random nonsense.
What is there to prevent person B from doing this?
Or to put it another way, what is the process by which a share is actually verified to have been performed on real hardware, since (AFAIK) a share typically does not include a successful PoW that results in new coins?