INNER CODE UNIT · Python
main
TeamDefronix/Cyberonix · cyberonix.py:288
def main():
update()
os.system("chmod +x *")
proc = subprocess.Popen([f"id"], stdout=subprocess.PIPE, shell=True)
#there keyfor success output and noththere for error output
(there, notthere) = proc.communicate()
there=there.decode()
if "root" not in there:
try:
subprocess.run('sudo cyberonix',shell=True, check = True)
except Exception as err:
os.system("sudo python3 cyberonix.py")
# os.system("sudo cyberonix")
exit()
while True:
os.system("clear")
banner.main()
list_attacks=["TOOLS","CHEATSHEET","Bug Bounty","Certifications & Roadmap","Write Ups","Man Page","exit"]