-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebhacking_old_6.py
More file actions
40 lines (31 loc) · 935 Bytes
/
webhacking_old_6.py
File metadata and controls
40 lines (31 loc) · 935 Bytes
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
import base64
text = "admin".encode('utf-8')
text2 = "nimda".encode('utf-8')
def stringTobase64(s):
return base64.b64encode(s)
def base64Tostring(s):
return base64.b64decode(s).decode('utf-8')
for n in range(20):
text = stringTobase64(text)
text2 = stringTobase64(text2)
text = text.decode('utf-8')
text2 = text2.decode('utf-8')
text = text.replace('1','!')
text = text.replace("2","@")
text = text.replace("3","$")
text = text.replace("4","^")
text = text.replace("5","&")
text = text.replace("6","*")
text = text.replace("7","(")
text = text.replace("8",")")
text2 = text2.replace("1","!")
text2 = text2.replace("2","@")
text2 = text2.replace("3","$")
text2 = text2.replace("4","^")
text2 = text2.replace("5","&")
text2 = text2.replace("6","*")
text2 = text2.replace("7","(")
text2 = text2.replace("8",")")
print(text)
print("----------------------------")
print(text2)