Sc build


SUBMITTED BY: Ibnu77

DATE: Dec. 28, 2023, 1:59 p.m.

UPDATED: Dec. 28, 2023, 11:12 p.m.

FORMAT: Text only

SIZE: 4.3 kB

HITS: 577

  1. import os
  2. import base64
  3. import hashlib
  4. from Crypto.Cipher import AES
  5. import json
  6. from datetime import datetime
  7. import requests
  8. raw_url = input("Input LINK URL: ")
  9. headers = {
  10. 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
  11. }
  12. class AESCrypt:
  13. AES_BLOCK_SIZE = 16
  14. HASH_ALGORITHM = 'SHA-256'
  15. IV = b'\x00' * AES_BLOCK_SIZE
  16. @staticmethod
  17. def generate_key(password):
  18. hashed_key = hashlib.sha256(password.encode()).digest()
  19. return hashed_key
  20. @staticmethod
  21. def pad_message(message):
  22. padding_length = AESCrypt.AES_BLOCK_SIZE - (len(message) % AESCrypt.AES_BLOCK_SIZE)
  23. padded_message = message + (chr(padding_length) * padding_length).encode()
  24. return padded_message
  25. @staticmethod
  26. def unpad_message(padded_message):
  27. padding_length = padded_message[-1]
  28. return padded_message[:len(padded_message) - padding_length]
  29. @staticmethod
  30. def decrypt(password, encoded_ciphertext):
  31. key = AESCrypt.generate_key(password)
  32. cipher = AES.new(key, AES.MODE_CBC, AESCrypt.IV)
  33. ciphertext = base64.b64decode(encoded_ciphertext)
  34. decrypted_message = cipher.decrypt(ciphertext)
  35. unpadded_message = AESCrypt.unpad_message(decrypted_message)
  36. return unpadded_message.decode()
  37. def fetch_and_decode_raw_content(raw_link, headers):
  38. try:
  39. response = requests.get(raw_link, headers=headers)
  40. response.raise_for_status() # Raise an HTTPError for bad responses
  41. return response.text
  42. except requests.RequestException as e:
  43. print(f"Error fetching raw content: {e}")
  44. return None
  45. def add_info_to_data(data):
  46. info_data = {
  47. "[</>] [SnifferBy]": "EnzoZxx",
  48. "[</>] [Telegram]": "https://t.me/XDecrytorId",
  49. "[</>] [Tools]": "Python Decrypt x Keep Json 1.0.3 ©"
  50. }
  51. data["Info"] = info_data
  52. def main():
  53. enzo_password = "ZnVja2JveQ=="
  54. password = base64.b64decode(enzo_password).decode('utf-8')
  55. try:
  56. # Fetch and decode raw content
  57. decrypted_text = fetch_and_decode_raw_content(raw_url, headers)
  58. # Check if decryption is successful before proceeding
  59. if decrypted_text:
  60. encrypted_data = json.loads(AESCrypt.decrypt(password, decrypted_text))
  61. decrypted_data = []
  62. for entry in ["Servers", "Networks", "SSLNetworks"]:
  63. for network in encrypted_data.get(entry, []):
  64. for key in ["SNIHost", "Payload"]:
  65. if key in network:
  66. network[key] = AESCrypt.decrypt(password, network[key])
  67. if "ProxySettings" in network and "Squid" in network["ProxySettings"]:
  68. network["ProxySettings"]["Squid"] = AESCrypt.decrypt(password, network["ProxySettings"]["Squid"])
  69. decrypted_data.append(encrypted_data)
  70. folder_name = "/storage/emulated/0/EnzoSniffer/"
  71. os.makedirs(folder_name, exist_ok=True)
  72. file_path = os.path.join(folder_name, "[ScbuildData]SnifferBY_ENzoZxx.txt")
  73. add_info_to_data(encrypted_data)
  74. output_data = {"Info": encrypted_data.pop("Info"), **encrypted_data}
  75. with open(file_path, "w") as output_file:
  76. json.dump(output_data, output_file, indent=4, ensure_ascii=False)
  77. timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
  78. number_of_entries = sum(len(encrypted_data.get(entry, [])) for entry in ["Servers", "Networks", "SSLNetworks"])
  79. success_message = (
  80. f"* Decryption Successful {number_of_entries}\n"
  81. f"* Timestamp: {timestamp}\n"
  82. f"* SnifferBy: EnzoZxx\n"
  83. f"* =========================================="
  84. )
  85. print(success_message)
  86. except json.JSONDecodeError as e:
  87. print(f"Error decoding JSON: {e}")
  88. except requests.RequestException as e:
  89. print(f"Error making the request: {e}")
  90. except Exception as e:
  91. print(f"Error: {e}")
  92. if __name__ == "__main__":
  93. main()

comments powered by Disqus