That may be a difficulty question to answer legally.
In many countries, including my own, changing the IMEI is illegal. Even where it is not explicitly illegal itself it's commonly used in aid of crime (e.g. to work around blacklists of stolen phones). I'm not questioning your motives, just pointing out that posting information about this could get the forum into trouble, which makes it difficult for anyone to help with this.