Sirshark10

Vanity

Nov 1st, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local args = {...}
  2. local function gen()
  3.     local val = 10
  4.     if type(args[2]/2) == "number" then
  5.        val = args[2]
  6.     end
  7.     local str = ""
  8.     local k = math.random(1,tonumber(val))
  9.     local i = 0
  10.     while string.len(str) < k do
  11.         i = i+1
  12.         local num = math.random(1,255)
  13.         if num >= 48 and num <= 57 or num >= 65 and num <= 90 or num >= 97 and num <= 122 then
  14.             str = str..string.char(num)
  15.         end
  16.         if i%(k/2) == 0 and k > 100 then
  17.             sleep(0)
  18.         end
  19.     end
  20.     return str
  21. end
  22.  
  23. local function kgen(pass)
  24.     local LocENV = {}
  25.     local INP = ""
  26.     setmetatable(LocENV,{__index=_G})
  27.     local k = http.get("https://pastebin.com/raw/1aK1i8VK")
  28.     local j = http.get("https://pastebin.com/raw/4nRg9CHU")
  29.     load(j.readAll(),"JSON","t",LocENV)()
  30.     load(k.readAll(),"KLUA","t",LocENV)()
  31.     local str = ""
  32.     if pass == nil then
  33.         for i=1, 600000 do
  34.             local n = math.random(1,255)
  35.             INP = INP..string.char(n)
  36.             print(string.char(n).." "..i)
  37.             if i%10000 == 0 then
  38.                 sleep(0)
  39.                 file = fs.open("PASS","a")
  40.                 file.write(INP)
  41.                 file.close()
  42.                 INP = ""
  43.             end
  44.         end
  45.     else
  46.         INP = pass
  47.     end
  48.     local hp = LocENV.ToPriv(INP)
  49.     local mkey = hp
  50.     local addr = LocENV.makev2address(mkey)
  51.     if string.find(addr,args[1]) then
  52.         http.post("https://krist.ceriat.net/login","privatekey="..mkey)
  53.     end
  54.     return INP, addr, mkey
  55.    
  56. end
  57. local i = 0
  58. local A = ""
  59. while true do
  60.     i = i+1
  61.     local pass, addr, mkey = kgen(gen())
  62.     if string.find(addr,args[1]) then
  63.         print("-")
  64.         http.post("https://krist.ceriat.net/login","privatekey="..mkey)
  65.         file = fs.open(".vanity","a")
  66.         file.write(pass.."| |"..addr.."\n")
  67.         file.close()
  68.     end
  69.     print(pass.." | "..addr.." | "..i)
  70. A = A.."\n"..pass.." | "..addr
  71. if i%100 == 0 then
  72.     print("")
  73.     print("Dumping to file...")
  74.     file = fs.open(".addresses","a")
  75.     file.write(A)
  76.     file.close()
  77.     A = ""
  78.     print("Resume")
  79.     print("")
  80. end
  81. end
Add Comment
Please, Sign In to add comment