As per Lawkidunya, here below the five steps of confession in law are that.
1.Examine your conscience.
2.Be sincerely sorry for your sins.
3.Confess your sins.
4.Resolve to amend your life.
5.After your confession do the penance that your priest assigns.