Advertisement
Guest User

dyarjamal

a guest
Feb 25th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import os
  4. import subprocess
  5.  
  6. print("************************************************************************")
  7. os.system("figlet DyarSahdi Tools")
  8. print("************************************************************************")
  9.  
  10. def menu():
  11. print("[1]- Service SSH Start")
  12. print("[2]- Service Apache Start")
  13. print("[3]- Service MySql Start")
  14. print("[4]- Service Beef Start")
  15. print("[5-] Service Dradis Start")
  16. print("[6-] Exit Tool")
  17. menu_input=input("Select Another Tools:")
  18. if menu_input==1:
  19. ssh()
  20. elif menu_input==2:
  21. apache()
  22. elif menu_input==3:
  23. mysql()
  24. elif menu_input==4:
  25. beef()
  26. elif menu_input==5:
  27. dradis()
  28. elif menu_input==6:
  29. exit()
  30.  
  31.  
  32. def ssh():
  33.  
  34.  
  35. subprocess.call(['service','ssh','start'])
  36.  
  37.  
  38. def apache():
  39.  
  40.  
  41. subprocess.call(['service','apache','start'])
  42.  
  43. def mysql():
  44.  
  45. subprocess.call(['service','mysql','start'])
  46.  
  47. def beef():
  48.  
  49. subprocess.call(['service','beef','start'])
  50.  
  51. def dradis():
  52.  
  53. subprocess.call(['service','dradis','start'])
  54.  
  55.  
  56. if __name__ == "__main__":
  57. try:
  58. menu()
  59. except KeyboardInterrupt:
  60. sys.exit(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement