Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- import subprocess
- print("************************************************************************")
- os.system("figlet DyarSahdi Tools")
- print("************************************************************************")
- def menu():
- print("[1]- Service SSH Start")
- print("[2]- Service Apache Start")
- print("[3]- Service MySql Start")
- print("[4]- Service Beef Start")
- print("[5-] Service Dradis Start")
- print("[6-] Exit Tool")
- menu_input=input("Select Another Tools:")
- if menu_input==1:
- ssh()
- elif menu_input==2:
- apache()
- elif menu_input==3:
- mysql()
- elif menu_input==4:
- beef()
- elif menu_input==5:
- dradis()
- elif menu_input==6:
- exit()
- def ssh():
- subprocess.call(['service','ssh','start'])
- def apache():
- subprocess.call(['service','apache','start'])
- def mysql():
- subprocess.call(['service','mysql','start'])
- def beef():
- subprocess.call(['service','beef','start'])
- def dradis():
- subprocess.call(['service','dradis','start'])
- if __name__ == "__main__":
- try:
- menu()
- except KeyboardInterrupt:
- sys.exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement