To apply onshore for an Australian visa, there are certain criteria to be met. Most visas require you to be on a substantive visa meaning a proper visa and not a bridging visa.
For student visa holders there is a once off grace period offered to students who may have forgotten that their visa has expired. However, if it has been more than 28 days, you cannot meet this requirement and you must look at alternative visas or determine whether an exemption is available.