Alyssa

Tumbler

Mar 7th, 2015
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.44 KB | None | 0 0
  1. import hashlib
  2. import urllib2
  3. import math
  4. import time
  5. import timeit
  6. import random
  7. import threading
  8. import string
  9. import sys
  10. carg = 0
  11. for arg in sys.argv:
  12.     if carg == 0:
  13.         fromPass = arg
  14.     elif carg == 1:
  15.         toAddr = arg
  16.     elif carg == 2:
  17.         timeOut = arg
  18.     carg = carg +1
  19. exitThread = 0
  20.  
  21. def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
  22.     return ''.join(random.choice(chars) for _ in range(size))
  23. def htb(j):
  24.     if j <= 6:
  25.         return "0"
  26.     elif j <= 13:
  27.         return "1"
  28.     elif j <= 20:
  29.         return "2"
  30.         elif j <= 27:
  31.                 return "3"
  32.         elif j <= 34:
  33.                 return "4"
  34.         elif j <= 41:
  35.                 return "5"
  36.         elif j <= 48:
  37.                 return "6"
  38.         elif j <= 55:
  39.                 return "7"
  40.         elif j <= 62:
  41.                 return "8"
  42.         elif j <= 69:
  43.                 return "9"
  44.         elif j <= 76:
  45.                 return "a"
  46.         elif j <= 83:
  47.                 return "b"
  48.         elif j <= 90:
  49.                 return "c"
  50.         elif j <= 97:
  51.                 return "d"
  52.         elif j <= 104:
  53.                 return "e"
  54.         elif j <= 111:
  55.                 return "f"
  56.         elif j <= 118:
  57.                 return "g"
  58.         elif j <= 125:
  59.                 return "h"
  60.         elif j <= 132:
  61.                 return "i"
  62.         elif j <= 139:
  63.                 return "j"
  64.         elif j <= 146:
  65.                 return "k"
  66.         elif j <= 153:
  67.                 return "l"
  68.         elif j <= 160:
  69.                 return "m"
  70.         elif j <= 167:
  71.                 return "n"
  72.         elif j <= 174:
  73.                 return "o"
  74.         elif j <= 181:
  75.                 return "p"
  76.         elif j <= 188:
  77.                 return "q"
  78.         elif j <= 195:
  79.                 return "r"
  80.         elif j <= 202:
  81.                 return "s"
  82.         elif j <= 209:
  83.                 return "t"
  84.         elif j <= 216:
  85.                 return "u"
  86.         elif j <= 223:
  87.                 return "v"
  88.         elif j <= 230:
  89.                 return "w"
  90.     elif j <= 237:
  91.         return "x"
  92.     elif j <= 244:
  93.         return "y"
  94.     elif j <= 251:
  95.         return "z"
  96.     else:
  97.         return "e" #because why not
  98. class mThread (threading.Thread):
  99.     def __init__(self, threadID, name):
  100.         threading.Thread.__init__(self)
  101.         self.threadID = threadID
  102.         self.name = name
  103.     def run(self):
  104.         print "Starting " + self.name
  105.         dhash(self.name)
  106.  
  107. def genAddr(rstr):
  108.     global thash2:
  109.     m = hashlib.sha256()
  110.     thash = "KRISTWALLET" + rstr
  111.     m.update(thash)
  112.     output = m.hexdigest()
  113.     m = hashlib.sha256()
  114.     thash2 = output + "-000"
  115.     m.update(thash2)
  116.     op2 = m.hexdigest()
  117.     prot = []
  118.     m = hashlib.sha256()
  119.     thash3 = op2
  120.     m.update(thash3)
  121.     stick = m.hexdigest()
  122.     n = 0
  123.     link = 0
  124.     while True:
  125.         if n < 9:
  126.             prot.insert(n,stick[:2])
  127.             m = hashlib.sha256()
  128.             th4 = stick
  129.             m.update(th4)
  130.             op3 = m.hexdigest()
  131.             m = hashlib.sha256()
  132.             th5 = op3
  133.             m.update(th5)
  134.             stick = m.hexdigest()
  135.             #stick is fine
  136.         n = n + 1
  137.         if n == 9:
  138.             break
  139.     n = 0
  140.     caddr = "k"
  141.     nc = 0
  142.     while True:
  143.         linkum = int(stick[1*2*n:2+(2*n)],16)
  144.         link = linkum % 9
  145.         if len(prot[link]) != 0:
  146.             tah = htb(int(prot[link],16))
  147.             caddr = caddr + tah
  148.             prot[link] = ''
  149.             n = n + 1
  150.         else:
  151.             m = hashlib.sha256()
  152.             th6 = stick
  153.             m.update(th6)
  154.             stick = m.hexdigest()
  155.         if n == 9:
  156.             break
  157.     return caddr
  158. fId = genAddr(fromPass)[:10]
  159. oldKey = thash2
  160. tot = urllib2.urlopen("http://65.26.252.225/quest/dia/krist/index.php?getbalance='+ fId)
  161. tot = int(tot)
  162. indSend = math.floor(tot / timeOut)
  163. lastSend = tot % timeOut
  164. nl = 0
  165. while true:
  166.     nlb = 0
  167.     while true:
  168.         thread.sleep(0.01)
  169.         randDummy = random.randint(1,100)
  170.         newPass = "TUMBLE+" + randDummy
  171.         newAcc = genAddr(newPass)[:10]
  172.         if n == timeOut:
  173.             send = urllib2.urlopen("http://65.26.252.225/quest/dia/krist/index.php?pushtx2&q=" + newAcc + "&pkey=" + oldKey + "&amt=" + str(lastSend))
  174.         else:
  175.             send = urllib2.urlopen("http://65.26.252.225/quest/dia/krist/index.php?pushtx2&q=" + newAcc + "&pkey=" + oldKey + "&amt=" + str(indSend))
  176.         oldKey = thash2
  177.         nlb = nlb+1
  178.         if nlb == 100:
  179.             if n == timeOut:
  180.                 send = urllib2.urlopen("http://65.26.252.225/quest/dia/krist/index.php?pushtx2&q=" + newAcc + "&pkey=" + oldKey + "&amt=" + str(lastSend))
  181.             else:
  182.                 send = urllib2.urlopen("http://65.26.252.225/quest/dia/krist/index.php?pushtx2&q=" + toAddr + "&pkey=" + oldKey + "&amt=" + str(indSend))
  183.             break
  184.     nl = nl+1
  185.     if n == timeOut +1:
  186.         break
Advertisement
Add Comment
Please, Sign In to add comment