Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from uiautomator import device as d
- from uiautomator import Device
- import os
- import time
- """ Settings for uiautomator. Device('') is serial number """
- os.environ["ANDROID_HOME"]="C:\Users\joe\AppData\Local\Android\sdk"
- d = Device('TA9610ZLF5')
- d = Device('TA9610ZLF5', adb_server_host='127.0.0.1', adb_server_port=5037)
- """ Coordinates for each number 0-9, the showseed button, and the pay button """a
- showseed = [585,720]
- numbers=[\
- [350,940],\
- [155,663],\
- [352,663],\
- [550,663],\
- [155,761],\
- [360,761],\
- [550,761],\
- [155,845],\
- [360,845],\
- [550,845]]
- pay = [200,1050]
- """ Address I sent the money to on a successful try """
- aaddress = "1Q5T3Z4skkgDqTZKjQGQJJgdmq3EDUEXUR"
- """ Coordinates for each click """
- def clicker(number):
- d.click(number[0],number[1])
- """ Very simple overall. 6 nested for loops to go through every possible number """
- """ The somewhat confusing ifs in each loop allow the user to pick up pintry for """
- """ wherever they left off """
- # Notes on which pintry's I've tried went here
- def main():
- pintry = [0,0,0,0,0,0]
- for a in range(0,10):
- if pintry[0]!=0:
- if pintry[0]!=a and (pintry[0]+1)%10!=a: continue
- pintry[0] = a
- for b in range(0,10):
- if pintry[1]!=0:
- if pintry[1]!=b and (pintry[1]+1)%10!=b: continue
- pintry[1] = b
- for c in range(0,10):
- if pintry[2]!=0:
- if pintry[2]!=c and (pintry[2]+1)%10!=c: continue
- pintry[2] = c
- for d in range(0,10):
- if pintry[3]!=0:
- if pintry[3]!=d and (pintry[3]+1)%10!=d: continue
- pintry[3] = d
- for e in range(0,10):
- if pintry[4]!=0:
- if pintry[4]!=e and (pintry[4]+1)%10!=e: continue
- pintry[4] = e
- for f in range(0,10):
- if pintry[5]!=0:
- if pintry[5]!=f and (pintry[5]+1)%10!=f: continue
- pintry[5] = f
- """ This section was for testing whether or not
- there were doubles in the pin being tested--
- I was pretty sure my pin had doubles """
- #trypin = False
- #already = False
- #for x in range(0,5):
- # if x<4 and (pintry[x]==pintry[x+1]==pintry[x+2]):
- # trypin = False
- # already = True
- # if (pintry[x]==pintry[x+1]) and already:
- # trypin = False
- # if (pintry[x]==pintry[x+1]) and not already:
- # trypin = True
- # already = True
- #if not trypin: continue
- print "It has been " + str(time.time() - start) + " seconds"
- time.sleep(0.1)
- clicker(pay)
- clicker(showseed)
- print "Trying " + str(pintry) + "."
- for num in pintry: clicker(numbers[num])
- start = time.time()
- main()
- #specific()
Add Comment
Please, Sign In to add comment