Sirshark10

VanGen

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