-
Notifications
You must be signed in to change notification settings - Fork 10
/
fuzzer.py
44 lines (37 loc) · 837 Bytes
/
fuzzer.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
from pwn import *
import random
target_num=206847083506555800000
offset=97*111*116
#aot
#dnyiicr
#iycidrn
#cirdyniaot
#cinrinn
#*98*100*110*119*97
#ao
goal=target_num/offset
test='abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
##ilnxKM
##ord 12679cdt%ay
#anagram dictionary
#http://samueltang.net/myonnineribble/stagefive-5880bb3cc95edcf2c43e70ad4b1bdf895cdc62bd/dictionary.php
length=len(test)
def randstring(length=7):
valid_letters='abcdefghijklmnopqrstuvwxyz'
return ''.join((random.choice(valid_letters) for i in xrange(length)))
def ordd(strr):
length=len(strr)
check_sum=1
for i in range(length):
check_sum=check_sum*ord(strr[i])
return check_sum
ok=0
string=[]
solution=0
while(solution!=10):
temp=randstring()
#print temp
if(ordd(temp)==goal):
print str(aot+temp)
ok=1
solution+=1