I acquired a black-market weapon.(Sales are all registered, but for a small premium of 50%, one may buy a new pistol not far from the spaceport. They come in by the shipload, as they do anywhere the local rulers utter magic incantations to keep them out. Never let your religious beliefs get in the way of the law of supply and demand.)
And this doesn't even require a spaceport.