If you are not Australia citizen or permanent resident but hold a valid work visa, you are generally entitled to workers compensation like other fly-in-fly-out workers. Even if your work visa has ran out, you may still entitled to fly in fly out workers compensation if you are injured at work in WA, and meet the definition of worker.
The workers compensation legislation has provisions allowing an illegal contract of employment to be treated as a legal contract of employment.