|
| 1 | +#!/usr/bin/python3 |
| 2 | +import time |
| 3 | +import os |
| 4 | +def translte_to_cyrillic(text): |
| 5 | + punycode_table = { |
| 6 | + 'A': 'A', 'B': 'B', 'C': 'C', 'D': 'D', 'E': 'E', 'F': 'F', 'G': 'G', 'H': 'H', 'I': 'І', 'J': 'Ј', 'K': 'К', 'L': 'L', 'M': 'М', 'N': 'N', 'O': 'О', 'P': 'Р', 'Q': 'Ԛ', 'R': 'R', 'S': 'Ѕ', 'T': 'T', 'U': 'U', 'V': 'V', 'W': 'W', 'X': 'Х', 'Y': 'Y', 'Z': 'Z', |
| 7 | + 'a': 'а', 'b': 'b', 'c': 'с', 'd': 'd', 'e': 'е', 'f': 'f', 'g': 'g', 'h': 'h', 'i': 'і', 'j': 'ј', 'k': 'k', 'l': 'l', 'm': 'm', 'n': 'n', 'o': 'о', 'p': 'р', 'q': 'ԛ', 'r': 'r', 's': 'ѕ', 't': 't', 'u': 'u', 'v': 'v', 'w': 'w', 'x': 'х', 'y': 'у', 'z': 'z' |
| 8 | +} |
| 9 | + |
| 10 | + result = '' |
| 11 | + for char in text: |
| 12 | + if char.lower() in punycode_table: |
| 13 | + if char.isupper(): |
| 14 | + result += punycode_table[char.lower()].upper() |
| 15 | + else: |
| 16 | + result += punycode_table[char.lower()] |
| 17 | + else: |
| 18 | + result += char |
| 19 | + |
| 20 | + return result |
| 21 | + |
| 22 | +# Colors |
| 23 | +green_color = "\033[1;32m" |
| 24 | +end_color = "\033[0m" |
| 25 | +red_color = "\033[1;31m" |
| 26 | +blue_color = "\033[1;34m" |
| 27 | +yellow_color = "\033[1;33m" |
| 28 | +purple_color = "\033[1;35m" |
| 29 | +turquoise_color = "\033[1;36m" |
| 30 | +gray_color = "\033[1;37m" |
| 31 | + |
| 32 | +# Print Welcome Banner |
| 33 | +banner=r'''{} |
| 34 | + ______ _______ ______ _ |
| 35 | + / _____|_______|_____ \ | | |
| 36 | +( (____ _____ _____) ) _ ____ _ _ ____ ___ __| |_____ ____ |
| 37 | + \____ \| ___) | ____/ | | | _ \| | | |/ ___) _ \ / _ | ___ |/ ___) |
| 38 | + _____) ) |_____| | | |_| | | | | |_| ( (__| |_| ( (_| | ____| | |
| 39 | +(______/|_______)_| |____/|_| |_|\__ |\____)___/ \____|_____)_| |
| 40 | + (____/ Social Engineering Punycoder |
| 41 | + by @hackermater |
| 42 | +{}'''.format(green_color, end_color) |
| 43 | +lines = banner.split('\n') |
| 44 | +for line in lines: |
| 45 | + print(line) |
| 46 | + time.sleep(0.08) |
| 47 | + |
| 48 | +# Get user Input for Text to Translate |
| 49 | +user_input = input("🔓 Enter the text to translate to Cyrillic: ") |
| 50 | +user_input_https = input("🔗 Do you want to add \"https://\" protocol? (y/n): ") |
| 51 | +output_text = translte_to_cyrillic(user_input) |
| 52 | +if user_input_https == "y": |
| 53 | + output_text = "https://" + output_text |
| 54 | + print("👀 Translated text:", output_text) |
| 55 | +elif user_input_https == "n": |
| 56 | + print("👀 Translated text:", output_text) |
| 57 | +else: |
| 58 | + print("👀 Translated text:", output_text) |
0 commit comments