All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and messenger.
With regard to the first part of your question regarding the violation of the terms and conditions of the owner of the software program, according to the preponderant opinion, it is an obligation to abide by those terms and it is not permissible to violate them. These conditions imply the possession of a utility to utilize it according to a determined extent and a specific manner. Based on such conditions, the contract has been concluded and agreed upon. So, violating such conditions constitutes a breach of the intellectual rights.
As for whatever was gained by way of using copied programs or violated utilities such as networks or electricity or a device purchased with forbidden wealth, the general answer is that there is no blame in benefiting from the money earned in that way, but one is liable for any violated utilities such as programs or networks or anything else. So, the one who violated those rights should reimburse the rights to their owners if possible. If this is not possible, he should give their value in charity while dedicating the reward to the owners of such utilities. If he does not know the exact amount, then he should give an amount by which he believes to be cleared of liability by doing so.
As regards the second part of the question about working with forged certificates and the ruling on the salary gained from that, we have already clarified the answer to this in Fataawa 84658 and 81709.
Allaah Knows best.