The golden pistol in Modern Warfare 2 is a mod rather than a glitch. It requires transferring modified files to your console by cable, which means altering the game's data — and that's a bannable offence on Xbox Live if you're caught.
So it's less a hidden trick than a risk you'd be taking on. Within the actual game, the gold-finish weapons you earn through progression are the intended version, and the Desert Eagle's standard finish looks sharp enough that most players don't feel they're missing much.