Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
- characters = {}
- for i=1,#chars,1 do
- table.insert(characters,string.sub(chars,i,i))
- end
- crypto = peripheral.find("cryptographic accelerator")
- function sha256(data)
- hashes = hashes + 1
- return crypto.hash("sha-256",data)
- end
- local function makeaddressbyte(j)
- if j <= 6 then return "0"
- elseif j <= 13 then return "1"
- elseif j <= 20 then return "2"
- elseif j <= 27 then return "3"
- elseif j <= 34 then return "4"
- elseif j <= 41 then return "5"
- elseif j <= 48 then return "6"
- elseif j <= 55 then return "7"
- elseif j <= 62 then return "8"
- elseif j <= 69 then return "9"
- elseif j <= 76 then return "a"
- elseif j <= 83 then return "b"
- elseif j <= 90 then return "c"
- elseif j <= 97 then return "d"
- elseif j <= 104 then return "e"
- elseif j <= 111 then return "f"
- elseif j <= 118 then return "g"
- elseif j <= 125 then return "h"
- elseif j <= 132 then return "i"
- elseif j <= 139 then return "j"
- elseif j <= 146 then return "k"
- elseif j <= 153 then return "l"
- elseif j <= 160 then return "m"
- elseif j <= 167 then return "n"
- elseif j <= 174 then return "o"
- elseif j <= 181 then return "p"
- elseif j <= 188 then return "q"
- elseif j <= 195 then return "r"
- elseif j <= 202 then return "s"
- elseif j <= 209 then return "t"
- elseif j <= 216 then return "u"
- elseif j <= 223 then return "v"
- elseif j <= 230 then return "w"
- elseif j <= 237 then return "x"
- elseif j <= 244 then return "y"
- elseif j <= 251 then return "z"
- else return "e"
- end
- end
- function makev2address(password)
- local key = sha256("KRISTWALLET" .. password) .. "-000"
- local protein = {}
- local stick = sha256(sha256(key))
- local n = 0
- local link = 0
- local v2 = "k"
- repeat
- if n < 9 then protein[n] = string.sub(stick,0,2)
- stick = sha256(sha256(stick)) end
- n = n + 1
- until n == 9
- n = 0
- repeat
- link = tonumber(string.sub(stick,1+(2*n),2+(2*n)),16) % 9
- if string.len(protein[link]) ~= 0 then
- v2 = v2 .. makeaddressbyte(tonumber(protein[link],16))
- protein[link] = ''
- n = n + 1
- else
- stick = sha256(stick)
- end
- until n == 9
- return v2
- end
- function cycle(t)
- for i=1,#characters,1 do
- if t == characters[i] then
- if i+1>#characters then
- return "!"
- else
- return characters[i+1]
- end
- end
- end
- end
- function cycletbl(tbl)
- tbl[1] = cycle(tbl[1])
- for i=1,#tbl,1 do
- if tbl[i] == "!" then
- tbl[i] = characters[1]
- if tbl[i+1] then
- tbl[i+1] = cycle(tbl[i+1])
- else
- tbl[i+1] = characters[1]
- end
- end
- end
- return tbl
- end
- chartbl = {"a"}
- print("ENTER WANTED ADDRESS:")
- addr = io.read()
- address = ""
- done=0
- ttw = os.time()+0.020
- hashes = 0
- while true do
- if os.time() >= ttw then
- print(done .. " Addresses/s | " .. hashes .."h/s | " .. table.concat(chartbl,""))
- done = 0
- hashes = 0
- ttw = os.time() + 0.020
- sleep(0)
- end
- chartbl = cycletbl(chartbl)
- address = makev2address(table.unpack(chartbl))
- done=done+1
- if address == addr then
- file = fs.open(addr,"a")
- file.write(address .. " : " .. table.unpack(chartbl))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement