1
mirror of git://git.acid.vegas/random.git synced 2024-09-28 13:20:30 +00:00

Added confusables script

This commit is contained in:
Dionysus 2023-05-12 22:40:13 -04:00
parent be17311980
commit 8cde9a65ee
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

94
confusables.py Normal file
View File

@ -0,0 +1,94 @@
#!/usr/bin/env python
# confusables - developed by acidvegas in python (https://git.acid.vegas/random)
'''
This script contains a dictionary of keyboard typable characters unicode variants that are very similar.
Other possible variants exist, for now we are only matching the ones that do not "look" like unicode.
This can be used to evade spam filtering by replacing characters with their similar unicode variants.
'''
import random
def confuse(data):
confused = str()
for char in data:
if char in confusable:
confused += random.choice(list(confusable[char]))
else:
confused += char
return confused
confusable = {
' ':' ',
'.':'܂․.⡀',
'!':'ǃ',
'$':'',
'%':'',
'&':'',
':':'ː˸։׃',
';':';',
'<':'',
'=':'',
'>':'',
'?':'',
'@':'',
'0':'OΟОՕ𐊒𐊫𐐄𐐬𐓂𐓪',
'1':'lı',
'2':'Ƨ𝟐𝟤𝟮𝟸',
'3':'ƷȜЗӠ',
'4':'',
'5':'Ƽ',
'6':'б',
'7':'𐓒',
'8':'𐌚𝟖𝟠𝟪𝟴',
'9':'',
'A':'ΑАᎪᗅᴀꓮꭺA𐊠',
'B':'ΒВ𐊂𐊡𝐁𝐵𝑩𝔹𝖡𝗕𝘉𝘽𝚩𝜝𝝗𝞑',
'C':'СᏟᑕℂⅭ⊂ⲤꓚC𐊢𐐕',
'D':'ᎠᗞᗪⅮꓓꭰD𝐃𝐷𝑫𝔻𝖣𝗗𝘋𝘿𝙳',
'E':'ΕЕᎬ⋿ⴹꓰꭼE𐊆',
'F':'ϜᖴꓝꞘF𐊇𐊥𝟋',
'G':'ɢԌᏀᏳᏻꓖꮐG𝐆𝐺𝑮𝔾𝖦𝗚𝘎𝙂𝙶',
'H':'ʜΗНнᎻᕼⲎꓧH𐋏𝐇𝐻𝑯𝖧𝗛𝘏𝙃𝚮𝛨𝜢𝝜𝞖',
'J':'ͿЈᎫᒍᴊꓙꞲꭻJ𝐉 𝐽 𝑱𝕁𝖩𝗝 𝙹',
'K':'ΚК',
'L':'ʟᏞᒪⅬⳐⳑꓡꮮL𐐛𐑃',
'M':'ΜϺМ𐊰𐌑𝐌𝑀𝑴𝕄𝖬𝗠𝘔𝙈𝙼𝚳𝛭𝜧𝝡𝞛',
'N':'ɴΝⲚꓠN',
'O':'OΟОՕ𐊒𐊫𐐄𐐬𐓂𐓪',
'P':'ΡРᏢᑭᴘᴩℙⲢꓑꮲP𐊕𝐏𝑃𝑷𝖯𝗣𝘗𝙋𝙿𝚸𝛲𝜬𝝦𝞠',
'Q':'𝐐𝑄𝑸𝖰𝗤𝘘𝙌𝚀',
'R':'ƦʀᎡᏒᖇᚱꓣꭱꮢR𐒴',
'S':'ЅՏ𐊖𐐠',
'T':'ΤТтᎢᴛ⊤⟙ⲦꓔꭲT𐊗𐊱𐌕',
'U':'Ս𐓎',
'V':'Ѵ٧۷',
'W':'Ԝ',
'X':'ΧХ𐊐𐊴𐌗𐌢',
'Y':'ΥϒУҮ𐊲',
'Z':'Ζ𐋵',
'a':'ɑαа𝐚𝑎𝒂𝕒𝖆𝖺𝗮𝘢𝙖𝚊𝛂𝛼𝜶𝝰𝞪',
'b':'ƄЬ𝐛𝑏𝒃𝖇𝖻𝗯𝘣𝙗𝚋',
'c':'ϲс𐐽𝐜𝑐𝒄𝕔𝖈𝖼𝗰𝘤𝙘𝚌',
'd':'ԁ𝐝𝑑𝒅𝒹𝓭𝖽𝗱𝘥𝙙𝚍',
'e':'еҽ𝐞𝕖𝖾𝗲𝚎',
'f':'',
'g':'ƍɡց𝐠𝑔𝒈𝓰𝔤𝕘𝖌𝗀𝗴𝘨𝙜𝚐',
'h':'һ𝒉𝕙𝗁𝗵𝘩𝙝𝚑',
'j':'ϳј𝐣𝚓',
'k':'𝐤𝑘𝒌𝕜𝖐𝗄𝗸𝘬𝙠𝚔',
'm':'',
'n':'ոռ𝗇𝗻𝘯𝙣𝚗',
'o':'OΟОՕ𐊒𐊫𐐄𐐬𐓂𐓪',
'p':'ρϱр𝑝𝕡𝗉𝗽𝘱𝙥𝚙𝛒𝜌𝝆𝞀𝞺',
'q':'ԛ𝐪𝕢𝗊𝗾𝘲𝙦𝚚',
'r':'г𝐫𝗋𝗿𝚛',
's':'ѕ𐑈',
't':'𝘁𝚝',
'u':'ʋυս𐓶',
'v':'νѵ',
'w':'ɯѡԝա',
'x':'×х𝐱𝑥𝒙𝔵𝕩𝖝𝗑𝘅𝘹𝙭𝚡',
'y':'ɣγуүỿ',
'z':''
}