Advertisement
dexman545

Gate Address Locator

Jan 2nd, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. shell.run("rm", "DexPI")
  2. shell.run("pastebin", "get", "cXNuhwXh", "DexPI")
  3. shell.run("DexPI")
  4. clear(1,1)
  5. gates = listPer("stargate")
  6. sg = peripheral.wrap(gates[1])
  7. a = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
  8.  
  9. tArgs = {...}
  10. if tArgs[1] == nil then
  11. gsuffix = "nvd"
  12. else gsuffix = tArgs[1]
  13. end
  14. p1, p2, p3, p4 = 1, 1, 1, 1
  15. file = fs.open("glist","w")
  16.  
  17. c = 1
  18.  
  19. while true do
  20. add = a[p1]..a[p2]..a[p3]..a[p4]..gsuffix
  21. print(add)
  22. if sg.isValidAddress(add) == true then
  23. print(">>>"..add.."<<<")
  24. file.writeLine(add)
  25. file.flush()
  26. end
  27. p4 = p4 + 1
  28. if p4 > 26 then
  29. p3 = p3 + 1
  30. p4 = 1
  31. end
  32. if p3 > 26 then
  33. p2 = p2 + 1
  34. p3 = 1
  35. end
  36. if p2 > 26 then
  37. p1 = p1 + 1
  38. p2 = 1
  39. end
  40. if p1 == 26 and p2 == 26 and p3 == 26 and p4 == 26 then
  41. break
  42. end
  43. sleep(0)
  44. end
  45.  
  46. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement