Skip to content

Commit b0351d4

Browse files
committed
added more characters in cyrillic!
1 parent 5154506 commit b0351d4

File tree

2 files changed

+113
-4
lines changed

2 files changed

+113
-4
lines changed

punycode_chars.json

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
1-
"punycode_table": {
2-
"a": "а", "b": "в", "r": "г", "e": "е",
3-
"k": "к", "o": "о", "p": "р", "c": "с",
4-
"y": "у", "x": "х"
1+
{
2+
"punycode_table": {
3+
"A": "A",
4+
"B": "B",
5+
"C": "C",
6+
"D": "D",
7+
"E": "E",
8+
"F": "F",
9+
"G": "G",
10+
"H": "H",
11+
"I": "І",
12+
"J": "Ј",
13+
"K": "К",
14+
"L": "L",
15+
"M": "М",
16+
"N": "N",
17+
"O": "О",
18+
"P": "Р",
19+
"Q": "Ԛ",
20+
"R": "R",
21+
"S": "Ѕ",
22+
"T": "T",
23+
"U": "U",
24+
"V": "V",
25+
"W": "W",
26+
"X": "Х",
27+
"Y": "Y",
28+
"Z": "Z",
29+
"a": "а",
30+
"b": "b",
31+
"c": "с",
32+
"d": "d",
33+
"e": "е",
34+
"f": "f",
35+
"g": "g",
36+
"h": "h",
37+
"i": "і",
38+
"j": "ј",
39+
"k": "k",
40+
"l": "l",
41+
"m": "m",
42+
"n": "n",
43+
"o": "о",
44+
"p": "р",
45+
"q": "ԛ",
46+
"r": "r",
47+
"s": "ѕ",
48+
"t": "t",
49+
"u": "u",
50+
"v": "v",
51+
"w": "w",
52+
"x": "х",
53+
"y": "у",
54+
"z": "z"
55+
}
556
}

sepunycoder

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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

Comments
 (0)