OBF-XIn

37.111.212.207-/sdcard/Hex1.py.py

Aug 18th, 2023
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. import subprocess
  2. import os
  3.  
  4. def check_storage_permission():
  5.     try:
  6.         subprocess.run(["termux-storage-get"], check=True)
  7.         print("\033[1;32m[•] STORAGE PERMISSION IS ALREADY GRANTED ✅🤞 ")
  8.     except subprocess.CalledProcessError:
  9.         print("\033[1;32m[•] STORAGE PERMISSION IS NOT GRANTED.⚔️ \n[•] REQUESTING PERMISSION TYPE 'y' GET PERMISSION ✅ \n[•] MOREOVER, YOU CANNOT USE THIS TOOL ‼️ ")
  10.         request_permission()
  11.  
  12. def request_permission():
  13.     try:
  14.         subprocess.run(["termux-setup-storage"], check=True)
  15.         print("\033[1;32m[•] STORAGE PERMISSION GRANTED SUCCESSFULLY ✅🤞 ")
  16.         print('[•] INSTALLING MISSING MODULE PLEASE WAIT..!!')
  17.         os.system('pip install httpx')
  18.         import hexmax
  19.         hexmax.SW4JON_menu()
  20.     except subprocess.CalledProcessError:
  21.         print("\033[1;32m[•] FAILED TO GRANT STORAGE PERMISSION ⚔️ ")
  22.  
  23. if __name__ == "__main__":
  24.     os.system('clear')
  25.     check_storage_permission()
  26.  
Add Comment
Please, Sign In to add comment