While following a tutorial on python recon tools, I found a new way to access the command prompt on a school network. While there are other ways of bypassing security, it's nice to learn use Python's OS library.
Simply use the following code:
cmd = input("Command: ")
run = os.popen(cmd)
result = str(run.read())
Got any modifications or found an error with my post? Let me know.
Note: If this works on your network, I suggest alerting your admin like the good white hat you are.
Want to start making money as a white hat hacker? Jump-start your white-hat hacking career with our 2020 Premium Ethical Hacking Certification Training Bundle from the new Null Byte Shop and get over 60 hours of training from ethical hacking professionals.