I've discovered a trick to "free swop" your ship with crashed ships on planets, it wont work on space stations and you dont get the upgraded slots etc.
Typically you'd answer a distress beacon to loot the ships resources after dismantling its equipment, which alone is usually worth about 90 000...