Ethics question

For all the philosophers and ethicists out there, a question.

Is it unethical to cheat at an illegal enterprise? And for an example, I present the concept of using software to beat online poker sites.

…at least, I’m assuming that it’s illegal to gamble in online poker games in the US. I know lots of people play… but is it technically legal?