Illegal no. You only profited from something you knew was a scam, by your own admission. The ill-gotten is my opinion only.