Advertisement
Guest User

startup

a guest
Apr 29th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 12.55 KB | None | 0 0
  1. term.setTextColor( colors.red )
  2. print("Hi!")
  3. term.setTextColor( colors.red )
  4. print("Enter Your Password Please")
  5.  
  6. term.setTextColor( colors.lightBlue )
  7. local input = read("*")
  8. term.setTextColor( colors.white )
  9.  
  10. local name = "Zvezdolom"  --your name
  11. local pass = "IAMMONKEY"       --your pass
  12. local delSecret = false   --del secret files
  13. local delay = 0.1
  14.  
  15. if input == pass then
  16. term.setTextColor( colors.red )
  17. print("Welcome ")
  18. term.setCursorPos(9,5)
  19. term.setTextColor( colors.lightBlue )
  20. print(name)
  21. term.setTextColor( colors.white )
  22. sleep(1.2)
  23. term.clear()
  24. term.setCursorPos(1,1)
  25.  
  26. sleep(delay)
  27.  
  28. term.setCursorPos(1,1)
  29. term.clear()
  30. term.setTextColor( colors.red )
  31. print("                     Loading!                     ")
  32. term.setTextColor( colors.white )
  33. term.setCursorPos(1,2)
  34. print("                ")
  35. term.setCursorPos(16,2)
  36. term.setBackgroundColor( colors.gray )
  37. print("                    ")
  38. term.setBackgroundColor( colors.black )
  39. term.setCursorPos(37,2)
  40. print("               ")
  41.  
  42. sleep(delay)    
  43.  
  44. term.setCursorPos(1,1)
  45. term.clear()
  46. term.setTextColor( colors.red )
  47. print("                     Loading!                     ")
  48. term.setTextColor( colors.white )
  49. term.setCursorPos(1,2)
  50. print("                ")
  51. term.setCursorPos(16,2)
  52. term.setBackgroundColor( colors.lime )
  53. print(" ")  --LOAD
  54. term.setBackgroundColor( colors.black )
  55. term.setCursorPos(17,2) --path
  56. term.setBackgroundColor( colors.gray )
  57. print("                   ")  --NOTLOAD
  58. term.setBackgroundColor( colors.black )
  59. term.setCursorPos(37,2)
  60. print("               ")
  61.  
  62. sleep(delay)
  63.  
  64. term.setCursorPos(1,1)
  65. term.clear()
  66. term.setTextColor( colors.red )
  67. print("                     Loading!                     ")
  68. term.setTextColor( colors.white )
  69. term.setCursorPos(1,2)
  70. print("                ")
  71. term.setCursorPos(16,2)
  72. term.setBackgroundColor( colors.lime )
  73. print("  ")  --LOAD
  74. term.setBackgroundColor( colors.black )
  75. term.setCursorPos(18,2) --path
  76. term.setBackgroundColor( colors.gray )
  77. print("                  ")  --NOTLOAD
  78. term.setBackgroundColor( colors.black )
  79. term.setCursorPos(37,2)
  80. print("               ")
  81.  
  82. sleep(delay)
  83.  
  84. term.setCursorPos(1,1)
  85. term.clear()
  86. term.setTextColor( colors.red )
  87. print("                     Loading!                     ")
  88. term.setTextColor( colors.white )
  89. term.setCursorPos(1,2)
  90. print("                ")
  91. term.setCursorPos(16,2)
  92. term.setBackgroundColor( colors.lime )
  93. print("   ")  --LOAD
  94. term.setBackgroundColor( colors.black )
  95. term.setCursorPos(19,2) --path
  96. term.setBackgroundColor( colors.gray )
  97. print("                 ")  --NOTLOAD
  98. term.setBackgroundColor( colors.black )
  99. term.setCursorPos(37,2)
  100. print("               ")
  101.  
  102. sleep(delay)
  103.  
  104. term.setCursorPos(1,1)
  105. term.clear()
  106. term.setTextColor( colors.red )
  107. print("                     Loading!                     ")
  108. term.setTextColor( colors.white )
  109. term.setCursorPos(1,2)
  110. print("                ")
  111. term.setCursorPos(16,2)
  112. term.setBackgroundColor( colors.lime )
  113. print("    ")  --LOAD
  114. term.setBackgroundColor( colors.black )
  115. term.setCursorPos(20,2) --path
  116. term.setBackgroundColor( colors.gray )
  117. print("                ")  --NOTLOAD
  118. term.setBackgroundColor( colors.black )
  119. term.setCursorPos(37,2)
  120. print("               ")
  121.  
  122. sleep(delay)
  123.  
  124. term.setCursorPos(1,1)
  125. term.clear()
  126. term.setTextColor( colors.red )
  127. print("                     Loading!                     ")
  128. term.setTextColor( colors.white )
  129. term.setCursorPos(1,2)
  130. print("                ")
  131. term.setCursorPos(16,2)
  132. term.setBackgroundColor( colors.lime )
  133. print("     ")  --LOAD
  134. term.setBackgroundColor( colors.black )
  135. term.setCursorPos(21,2) --path
  136. term.setBackgroundColor( colors.gray )
  137. print("               ")  --NOTLOAD
  138. term.setBackgroundColor( colors.black )
  139. term.setCursorPos(37,2)
  140. print("               ")
  141.  
  142. sleep(delay)
  143.  
  144. term.setCursorPos(1,1)
  145. term.clear()
  146. term.setTextColor( colors.red )
  147. print("                     Loading!                     ")
  148. term.setTextColor( colors.white )
  149. term.setCursorPos(1,2)
  150. print("                ")
  151. term.setCursorPos(16,2)
  152. term.setBackgroundColor( colors.lime )
  153. print("      ")  --LOAD
  154. term.setBackgroundColor( colors.black )
  155. term.setCursorPos(22,2) --path
  156. term.setBackgroundColor( colors.gray )
  157. print("              ")  --NOTLOAD
  158. term.setBackgroundColor( colors.black )
  159. term.setCursorPos(37,2)
  160. print("               ")
  161.  
  162. sleep(delay)
  163.  
  164. term.setCursorPos(1,1)
  165. term.clear()
  166. term.setTextColor( colors.red )
  167. print("                     Loading!                     ")
  168. term.setTextColor( colors.white )
  169. term.setCursorPos(1,2)
  170. print("                ")
  171. term.setCursorPos(16,2)
  172. term.setBackgroundColor( colors.lime )
  173. print("       ")  --LOAD
  174. term.setBackgroundColor( colors.black )
  175. term.setCursorPos(23,2) --path
  176. term.setBackgroundColor( colors.gray )
  177. print("             ")  --NOTLOAD
  178. term.setBackgroundColor( colors.black )
  179. term.setCursorPos(37,2)
  180. print("               ")
  181.  
  182. sleep(delay)
  183.  
  184. term.setCursorPos(1,1)
  185. term.clear()
  186. term.setTextColor( colors.red )
  187. print("                     Loading!                     ")
  188. term.setTextColor( colors.white )
  189. term.setCursorPos(1,2)
  190. print("                ")
  191. term.setCursorPos(16,2)
  192. term.setBackgroundColor( colors.lime )
  193. print("        ")  --LOAD
  194. term.setBackgroundColor( colors.black )
  195. term.setCursorPos(24,2) --path
  196. term.setBackgroundColor( colors.gray )
  197. print("            ")  --NOTLOAD
  198. term.setBackgroundColor( colors.black )
  199. term.setCursorPos(37,2)
  200. print("               ")
  201.  
  202. sleep(delay)
  203.  
  204. term.setCursorPos(1,1)
  205. term.clear()
  206. term.setTextColor( colors.red )
  207. print("                     Loading!                     ")
  208. term.setTextColor( colors.white )
  209. term.setCursorPos(1,2)
  210. print("                ")
  211. term.setCursorPos(16,2)
  212. term.setBackgroundColor( colors.lime )
  213. print("         ")  --LOAD
  214. term.setBackgroundColor( colors.black )
  215. term.setCursorPos(25,2) --path
  216. term.setBackgroundColor( colors.gray )
  217. print("           ")  --NOTLOAD
  218. term.setBackgroundColor( colors.black )
  219. term.setCursorPos(37,2)
  220. print("               ")
  221.  
  222. sleep(delay)
  223.  
  224. term.setCursorPos(1,1)
  225. term.clear()
  226. term.setTextColor( colors.red )
  227. print("                     Loading!                     ")
  228. term.setTextColor( colors.white )
  229. term.setCursorPos(1,2)
  230. print("                ")
  231. term.setCursorPos(16,2)
  232. term.setBackgroundColor( colors.lime )
  233. print("          ")  --LOAD
  234. term.setBackgroundColor( colors.black )
  235. term.setCursorPos(26,2) --path
  236. term.setBackgroundColor( colors.gray )
  237. print("          ")  --NOTLOAD
  238. term.setBackgroundColor( colors.black )
  239. term.setCursorPos(37,2)
  240. print("               ")
  241.  
  242. sleep(delay)
  243.  
  244. term.setCursorPos(1,1)
  245. term.clear()
  246. term.setTextColor( colors.red )
  247. print("                     Loading!                     ")
  248. term.setTextColor( colors.white )
  249. term.setCursorPos(1,2)
  250. print("                ")
  251. term.setCursorPos(16,2)
  252. term.setBackgroundColor( colors.lime )
  253. print("           ")  --LOAD
  254. term.setBackgroundColor( colors.black )
  255. term.setCursorPos(27,2) --path
  256. term.setBackgroundColor( colors.gray )
  257. print("         ")  --NOTLOAD
  258. term.setBackgroundColor( colors.black )
  259. term.setCursorPos(37,2)
  260. print("               ")
  261.  
  262. sleep(delay)
  263.  
  264. term.setCursorPos(1,1)
  265. term.clear()
  266. term.setTextColor( colors.red )
  267. print("                     Loading!                     ")
  268. term.setTextColor( colors.white )
  269. term.setCursorPos(1,2)
  270. print("                ")
  271. term.setCursorPos(16,2)
  272. term.setBackgroundColor( colors.lime )
  273. print("            ")  --LOAD
  274. term.setBackgroundColor( colors.black )
  275. term.setCursorPos(28,2) --path
  276. term.setBackgroundColor( colors.gray )
  277. print("        ")  --NOTLOAD
  278. term.setBackgroundColor( colors.black )
  279. term.setCursorPos(37,2)
  280. print("               ")
  281.  
  282. sleep(delay)
  283.  
  284. term.setCursorPos(1,1)
  285. term.clear()
  286. term.setTextColor( colors.red )
  287. print("                     Loading!                     ")
  288. term.setTextColor( colors.white )
  289. term.setCursorPos(1,2)
  290. print("                ")
  291. term.setCursorPos(16,2)
  292. term.setBackgroundColor( colors.lime )
  293. print("             ")  --LOAD
  294. term.setBackgroundColor( colors.black )
  295. term.setCursorPos(29,2) --path
  296. term.setBackgroundColor( colors.gray )
  297. print("       ")  --NOTLOAD
  298. term.setBackgroundColor( colors.black )
  299. term.setCursorPos(37,2)
  300. print("               ")
  301.  
  302. sleep(delay)
  303.  
  304. term.setCursorPos(1,1)
  305. term.clear()
  306. term.setTextColor( colors.red )
  307. print("                     Loading!                     ")
  308. term.setTextColor( colors.white )
  309. term.setCursorPos(1,2)
  310. print("                ")
  311. term.setCursorPos(16,2)
  312. term.setBackgroundColor( colors.lime )
  313. print("              ")  --LOAD
  314. term.setBackgroundColor( colors.black )
  315. term.setCursorPos(30,2) --path
  316. term.setBackgroundColor( colors.gray )
  317. print("      ")  --NOTLOAD
  318. term.setBackgroundColor( colors.black )
  319. term.setCursorPos(37,2)
  320. print("               ")
  321.  
  322. sleep(delay)
  323.  
  324. term.setCursorPos(1,1)
  325. term.clear()
  326. term.setTextColor( colors.red )
  327. print("                     Loading!                     ")
  328. term.setTextColor( colors.white )
  329. term.setCursorPos(1,2)
  330. print("                ")
  331. term.setCursorPos(16,2)
  332. term.setBackgroundColor( colors.lime )
  333. print("               ")  --LOAD
  334. term.setBackgroundColor( colors.black )
  335. term.setCursorPos(31,2) --path
  336. term.setBackgroundColor( colors.gray )
  337. print("     ")  --NOTLOAD
  338. term.setBackgroundColor( colors.black )
  339. term.setCursorPos(37,2)
  340. print("               ")
  341.  
  342. sleep(delay)
  343.  
  344. term.setCursorPos(1,1)
  345. term.clear()
  346. term.setTextColor( colors.red )
  347. print("                     Loading!                     ")
  348. term.setTextColor( colors.white )
  349. term.setCursorPos(1,2)
  350. print("                ")
  351. term.setCursorPos(16,2)
  352. term.setBackgroundColor( colors.lime )
  353. print("                ")  --LOAD
  354. term.setBackgroundColor( colors.black )
  355. term.setCursorPos(32,2) --path
  356. term.setBackgroundColor( colors.gray )
  357. print("    ")  --NOTLOAD
  358. term.setBackgroundColor( colors.black )
  359. term.setCursorPos(37,2)
  360. print("               ")
  361.  
  362. sleep(delay)
  363.  
  364. term.setCursorPos(1,1)
  365. term.clear()
  366. term.setTextColor( colors.red )
  367. print("                     Loading!                     ")
  368. term.setTextColor( colors.white )
  369. term.setCursorPos(1,2)
  370. print("                ")
  371. term.setCursorPos(16,2)
  372. term.setBackgroundColor( colors.lime )
  373. print("                 ")  --LOAD
  374. term.setBackgroundColor( colors.black )
  375. term.setCursorPos(33,2) --path
  376. term.setBackgroundColor( colors.gray )
  377. print("   ")  --NOTLOAD
  378. term.setBackgroundColor( colors.black )
  379. term.setCursorPos(37,2)
  380. print("               ")
  381.  
  382. sleep(delay)
  383.  
  384. term.setCursorPos(1,1)
  385. term.clear()
  386. term.setTextColor( colors.red )
  387. print("                     Loading!                     ")
  388. term.setTextColor( colors.white )
  389. term.setCursorPos(1,2)
  390. print("                ")
  391. term.setCursorPos(16,2)
  392. term.setBackgroundColor( colors.lime )
  393. print("                  ")  --LOAD
  394. term.setBackgroundColor( colors.black )
  395. term.setCursorPos(34,2) --path
  396. term.setBackgroundColor( colors.gray )
  397. print("  ")  --NOTLOAD
  398. term.setBackgroundColor( colors.black )
  399. term.setCursorPos(37,2)
  400. print("               ")
  401.  
  402. sleep(delay)
  403.  
  404. term.setCursorPos(1,1)
  405. term.clear()
  406. term.setTextColor( colors.red )
  407. print("                     Loading!                     ")
  408. term.setTextColor( colors.white )
  409. term.setCursorPos(1,2)
  410. print("                ")
  411. term.setCursorPos(16,2)
  412. term.setBackgroundColor( colors.lime )
  413. print("                   ")  --LOAD
  414. term.setBackgroundColor( colors.black )
  415. term.setCursorPos(35,2) --path
  416. term.setBackgroundColor( colors.gray )
  417. print(" ")  --NOTLOAD
  418. term.setBackgroundColor( colors.black )
  419. term.setCursorPos(37,2)
  420. print("               ")
  421.  
  422. sleep(delay)
  423.  
  424. term.setCursorPos(1,1)
  425. term.clear()
  426. term.setTextColor( colors.red )
  427. print("                     Loading!                     ")
  428. term.setTextColor( colors.white )
  429. term.setCursorPos(1,2)
  430. print("                ")
  431. term.setCursorPos(16,2)
  432. term.setBackgroundColor( colors.lime )
  433. print("                    ")  --LOAD
  434. term.setBackgroundColor( colors.black )
  435. term.setCursorPos(36,2) --path
  436. term.setBackgroundColor( colors.gray )
  437. print("")  --NOTLOAD
  438. term.setBackgroundColor( colors.black )
  439. term.setCursorPos(37,2)
  440. print("               ")
  441. sleep(1)
  442.  
  443. term.clear()
  444. term.setCursorPos(1,1)
  445. term.setTextColor( colors.lime )
  446. print("                   System load!                    ")
  447. return
  448.  
  449. else
  450. term.clear()
  451. term.setCursorPos(1,1)
  452. term.setTextColor( colors.red )
  453. print("Wrong password!")
  454. sleep(2)
  455. term.clear()
  456. if delSecret == true then
  457. fs.delete("secret")
  458. end
  459. term.setCursorPos(1,1)
  460. print("Wrong password!")
  461. print("relog please!")
  462. sleep(3)
  463. print("")
  464. print("reboot pc")
  465. sleep(1)
  466. os.reboot()
  467. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement