Advertisement
ZNZNCOOP

Brutforce

Feb 1st, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.28 KB | None | 0 0
  1. os.loadAPI("AF")
  2. function check(s)
  3.   for i=1,#s do
  4.     b=string.byte(s:sub(i,i))
  5.     if b>127 then return false end
  6.   end
  7.   return true
  8. end
  9. tt=string.char(
  10.   48, 52, 49,100, 54,101,102,101,101, 53, 50, 97, 48, 54, 97, 99,
  11.   52,100, 97,101, 49, 50,102, 52, 97, 51, 57, 54, 99, 57, 55, 99,
  12.   48, 55, 48, 51,102, 52, 50, 50, 55,100, 98, 99, 99, 48, 51, 99,
  13.   55,101, 99, 48, 52, 48, 48, 49, 51, 51, 48, 50, 50, 98, 98,102,
  14.   52, 48, 57, 50, 57, 56,100,102, 53,102,101, 52, 55,102, 51,102,
  15.   52, 97,101, 56,100, 53, 55, 52, 50,100, 52, 51, 53, 97, 54, 56,
  16.   56, 97, 98, 52,102, 57, 56, 57, 57, 48, 55, 50,102, 49, 99, 56,
  17.   52, 98, 49,102,101, 56, 49, 97, 48, 50, 51,102, 49, 97, 50, 51,
  18.   97, 48, 54,101, 51, 56,102, 50, 98, 48, 99, 54, 97, 56,100, 50,
  19.   55, 50, 49, 52, 48, 50, 55, 53, 57, 98,100,102, 51, 98,102, 56)
  20. --tt="7e6bdd29241601d458028360b0b0df1ec78116ebf45c61449dcee580191096e58b23ff092a7ea40b9f55fcf4ec6d1f4e"
  21. t=tt:sub(1,16)
  22. term.clear()
  23. for k=0,99999,10 do
  24.  for l=0,9 do
  25.   kk=tostring(k+l)
  26.   key=AF.getkey(kk)
  27.   if check(AF.decrypt(t,key)) then
  28.     dect=AF.decrypt(tt,key)
  29.     if check(dect) then
  30.       print('Well done!')
  31.       print(kk)
  32.       print(dect)
  33.       read()
  34.       term.clear()
  35.     end
  36.   end
  37.  end
  38.  term.setCursorPos(1,1) print(kk)
  39.  sleep(0)
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement