it may not be illegal but it is retarded. a corporation ostensibly needs to be a going concern, not just a way to shield assets from creditors.
besides, you don’t own a business or home anyway so what is the point, are you a deadbeat trying to hide your assets from creditors? If so, in a lawsuit a plaintiff against you could simply pierce the corporate shield anyway so you will derive no benefit.
oh, I would not take any more advice from your so-called friend who suggested the idea as the idea is terribly stupid.