-
Notifications
You must be signed in to change notification settings - Fork 0
/
honey.py
49 lines (45 loc) · 2.07 KB
/
honey.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
def multipleReplace(text, wordDict):
for key in wordDict:
text = text.replace(key, wordDict[key])
return text
dict = {
'⎼': 'r',
'⎺': 'o',
'├': 't',
'â””': 'm',
'≤': 'y',
'âŒ': 'c',
'⎻': 'p',
'┤': 'u',
'âŠ': 'e',
'·': '~',
'â‰': 'b',
'â‹': 'i',
'⎽': 's',
'┌': 'l',
'â–’': 'a',
'│': 'x',
'Ï€': '{',
'┬': 'w',
'â': 'd',
'°': 'f',
'±': 'g',
'£': '}',
'â¤': 'h',
'┼':'n'
}
s = '''root@myLOVELYcomputer:~/cybrics# ls -la
total 12
drwxr-xr-x 2 root root 4096 Jul 22 2019 .
drwxr-xr-x 21 root root 4096 Jul 22 2019 ..
-rw-r--r-- 1 root root 44 Jul 22 2019 flag
root@myLOVELYcomputer:~/cybrics# echo $'\e(0'
⎼⎺⎺├@└≤LOVELYâŒâŽºâ””⎻┤├âŠâŽ¼:·/âŒâ‰¤â‰âŽ¼â‹âŒâŽ½# ┌⎽ -┌▒
├⎺├▒┌ 12
â⎼┬│⎼-│⎼-│ 2 ⎼⎺⎺├ ⎼⎺⎺├ 4096 J┤┌ 22 2019 .
â⎼┬│⎼-│⎼-│ 21 ⎼⎺⎺├ ⎼⎺⎺├ 4096 J┤┌ 22 2019 ..
-⎼┬-⎼--⎼-- 1 ⎼⎺⎺├ ⎼⎺⎺├ 44 J┤┌ 22 2019 °┌▒±
⎼⎺⎺├@└≤LOVELYâŒâŽºâ””⎻┤├âŠâŽ¼:·/âŒâ‰¤â‰âŽ¼â‹âŒâŽ½# âŒâ–’├ °┌▒±
âŒâ‰¤â‰âŽ¼â‹âŒâŽ½Ï€â¤0┌≤_âŒâŽ¼4⎻_1⎽_├â¤â‹âŽ½_▒┌13┼â‹$â¤_0⎼_┬4├?£
⎼⎺⎺├@└≤LOVELYâŒâŽºâ””⎻┤├âŠâŽ¼:·/âŒâ‰¤â‰âŽ¼â‹âŒâŽ½# '''
print(multipleReplace(s, dict))