Simlor_GER

SimSoft 2.1 - Installer

Oct 21st, 2015 (edited)
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.43 KB | None | 0 0
  1. --Alle Rechte an SimSoft 2.1 sind "SimlorLP" (oder in Minecraft auch nur "Simlor") vorbehalten.
  2.  
  3.  
  4. --Function
  5.  
  6. function Clear()
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. end
  10.  
  11. function CP(x,y)
  12. term.setCursorPos(x,y)
  13. end
  14.  
  15. function TC(farbe)
  16. term.setTextColor(farbe)
  17. end
  18.  
  19. function BC(farbe)
  20. term.setBackgroundColor(farbe)
  21. end
  22.  
  23.  
  24. --System
  25. l = 1
  26. while true do
  27.  
  28. --englisch
  29.  
  30. if l == 1 then
  31.  
  32. BC(128)
  33. Clear()
  34.  
  35. CP(1,1)
  36. BC(32768)
  37. print(" ")
  38. print(" ")
  39. print(" ")
  40.  
  41. CP(15,2)
  42. TC(1)
  43. print("SimSoft 2.1 - Installer")
  44.  
  45. TC(1)
  46. BC(128)
  47. CP(4,5)
  48.  
  49. print("Welcome to the installer of SimSoft 2.1")
  50.  
  51. CP(2,8)
  52. TC(256)
  53. print("Choose a language")
  54.  
  55. CP(4,18)
  56. TC(1)
  57. print("Tip - Use the arrow keys")
  58.  
  59. CP(47,18)
  60. TC(256)
  61. print("1/4")
  62.  
  63. CP(4,10)
  64. BC(128)
  65. TC(1)
  66. print(" >English ")
  67.  
  68. CP(4,11)
  69. BC(128)
  70. TC(256)
  71. print(" Deutsch ")
  72.  
  73. --Deutsch
  74.  
  75. elseif l == 2 then
  76.  
  77. BC(128)
  78. Clear()
  79.  
  80. CP(1,1)
  81. BC(32768)
  82. print(" ")
  83. print(" ")
  84. print(" ")
  85.  
  86. CP(15,2)
  87. TC(1)
  88. print("SimSoft 2.1 - Installer")
  89.  
  90. TC(1)
  91. BC(128)
  92. CP(4,5)
  93.  
  94. print("Willkommen im Installer von SimSoft 2.1")
  95.  
  96. CP(2,8)
  97. TC(256)
  98. print("Waehle eine Sprache")
  99.  
  100. CP(4,18)
  101. TC(1)
  102. print("Tipp - Nutze die Pfeiltasten")
  103.  
  104. CP(47,18)
  105. TC(256)
  106. print("1/4")
  107.  
  108. CP(4,10)
  109. BC(128)
  110. TC(256)
  111. print(" English ")
  112.  
  113. CP(4,11)
  114. BC(128)
  115. TC(1)
  116. print(" >Deutsch ")
  117.  
  118. end
  119.  
  120. a, b = os.pullEvent()
  121.  
  122. while a~= "key" do a,b = os.pullEvent() end
  123.  
  124. if b == 208 then
  125. l = 2
  126. end
  127.  
  128. if b == 200 then
  129. l = 1
  130. end
  131.  
  132. if b == 28 then
  133.  
  134. if l == 1 then
  135. sprache = "en_uk"
  136. break
  137. elseif l == 2 then
  138. sprache = "de_de"
  139. break
  140. end
  141. end
  142. end
  143.  
  144. --
  145.  
  146.  
  147. if sprache == "en_uk" then
  148.  
  149. BC(128)
  150. Clear()
  151.  
  152. CP(1,1)
  153. BC(32768)
  154. print(" ")
  155. print(" ")
  156. print(" ")
  157.  
  158. CP(15,2)
  159. TC(1)
  160. print("SimSoft 2.1 - Installer")
  161.  
  162. TC(1)
  163. BC(128)
  164. CP(4,5)
  165.  
  166. print("Terms of use")
  167.  
  168. CP(2,8)
  169. TC(256)
  170. print("-All rights are reserved to")
  171. CP(2,9)
  172. print(" SimlorLP (or just Simlor)")
  173. CP(2,11)
  174. print("-Changes in the system may be carried out")
  175. CP(2,12)
  176. print(" only with the permission of SimlorLP.")
  177. CP(4,18)
  178. TC(1)
  179. print("Tip - Use the arrow keys")
  180.  
  181. CP(47,18)
  182. TC(256)
  183. print("2/4")
  184.  
  185. l = 1
  186.  
  187. while true do
  188.  
  189. if l == 1 then
  190.  
  191. CP(4,15)
  192. BC(128)
  193. TC(32768)
  194. print("Yes, continue ")
  195.  
  196. CP(20,15)
  197. BC(128)
  198. TC(32768)
  199. print("[No, cancel] ")
  200.  
  201. elseif l == 2 then
  202.  
  203. CP(4,15)
  204. BC(128)
  205. TC(32768)
  206. print("[Yes, continue]")
  207.  
  208. CP(20,15)
  209. BC(128)
  210. TC(32768)
  211. print("No, cancel ")
  212. end
  213.  
  214. a, b = os.pullEvent()
  215.  
  216. while a~= "key" do a,b = os.pullEvent() end
  217.  
  218. if b == 203 then
  219. l = 2
  220. end
  221.  
  222. if b == 205 then
  223. l = 1
  224. end
  225.  
  226. if b == 28 then
  227.  
  228. if l == 1 then
  229. os.reboot()
  230. break
  231. elseif l == 2 then
  232. break
  233. end
  234. end
  235. end
  236.  
  237.  
  238. --Teil 2
  239.  
  240. BC(128)
  241. Clear()
  242.  
  243. CP(1,1)
  244. BC(32768)
  245. print(" ")
  246. print(" ")
  247. print(" ")
  248.  
  249. CP(15,2)
  250. TC(1)
  251. print("SimSoft 2.1 - Installer")
  252.  
  253. BC(128)
  254. TC(256)
  255. CP(4,6)
  256. print("New PC-Name -")
  257.  
  258. CP(4,8)
  259. print("New Passwort -")
  260.  
  261. CP(47,18)
  262. TC(256)
  263. print("3/4")
  264.  
  265. CP(20,6)
  266. TC(32768)
  267. name = read()
  268.  
  269. CP(20,8)
  270. TC(32768)
  271. pass = read()
  272.  
  273. --Teil 3
  274.  
  275. BC(128)
  276. Clear()
  277.  
  278. CP(1,1)
  279. BC(32768)
  280. print(" ")
  281. print(" ")
  282. print(" ")
  283.  
  284. CP(15,2)
  285. TC(1)
  286. print("SimSoft 2.1 - Installer")
  287.  
  288. BC(128)
  289. CP(20,10)
  290. TC(1)
  291. print("Let's go!")
  292. CP(20,11)
  293. TC(256)
  294. print(" [Enter]")
  295.  
  296. BC(128)
  297. CP(2,17)
  298. TC(256)
  299. print("Cancel")
  300. CP(2,18)
  301. print(" [Q]")
  302.  
  303. CP(47,18)
  304. TC(256)
  305. print("4/4")
  306.  
  307. while true do
  308.  
  309. a, b = os.pullEvent()
  310.  
  311. while a~= "key" do a,b = os.pullEvent() end
  312.  
  313. if b == 16 then
  314. os.reboot()
  315. end
  316.  
  317. if b == 28 then
  318. break
  319. end
  320. end
  321.  
  322. --Teil 4 - Installer
  323.  
  324. BC(128)
  325. TC(32)
  326. Clear()
  327.  
  328. shell.run("cd /")
  329. fs.delete("SimSoft/System")
  330. fs.delete("SimSoft/SappS")
  331. fs.delete("SimSoft/Daten")
  332. fs.delete("startup")
  333. os.setComputerLabel(name)
  334. Clear()
  335.  
  336. BC(128)
  337. Clear()
  338.  
  339. CP(1,1)
  340. BC(32768)
  341. print(" ")
  342. print(" ")
  343. print(" ")
  344.  
  345. CP(15,2)
  346. TC(1)
  347. print("SimSoft 2.1 - Installer")
  348.  
  349. CP(3,8)
  350. BC(256)
  351. print(" ")
  352.  
  353. CP(3,8)
  354. BC(1)
  355. write(" ")
  356.  
  357. local file = fs.open("SimSoft/Daten/User","w")
  358. file.close()
  359.  
  360. local file = fs.open("SimSoft/Daten/User","a")
  361. file.writeLine(name)
  362. file.close()
  363.  
  364. local file = fs.open("SimSoft/Daten/User","a")
  365. file.writeLine(pass)
  366. file.close()
  367.  
  368. local file = fs.open("SimSoft/Daten/User","a")
  369. file.writeLine("t")
  370. file.close()
  371.  
  372. local file = fs.open("SimSoft/Daten/User","a")
  373. file.writeLine("t")
  374. file.close()
  375.  
  376. local file = fs.open("SimSoft/Daten/User","a")
  377. file.writeLine("2.1.7")
  378. file.close()
  379.  
  380. --
  381.  
  382. write(" ")
  383.  
  384. --
  385.  
  386. local file = fs.open("SimSoft/Daten/SappS/1","w")
  387. file.close()
  388.  
  389. local file = fs.open("SimSoft/Daten/SappS/1","a")
  390. file.writeLine("")
  391. file.close()
  392.  
  393. local file = fs.open("SimSoft/Daten/SappS/1","a")
  394. file.writeLine("")
  395. file.close()
  396.  
  397. local file = fs.open("SimSoft/Daten/SappS/1","a")
  398. file.writeLine("")
  399. file.close()
  400.  
  401. local file = fs.open("SimSoft/Daten/SappS/1","a")
  402. file.writeLine("")
  403. file.close()
  404.  
  405. local file = fs.open("SimSoft/Daten/SappS/1","a")
  406. file.writeLine("n")
  407. file.close()
  408.  
  409. local file = fs.open("SimSoft/Daten/SappS/1","a")
  410. file.writeLine("false")
  411. file.close()
  412.  
  413. --
  414.  
  415. write(" ")
  416.  
  417. --
  418.  
  419. u = 1
  420.  
  421. while true do
  422.  
  423. u = (u+1)
  424.  
  425. fs.copy("SimSoft/Daten/SappS/1", "SimSoft/Daten/SappS/"..u)
  426.  
  427. if u == 15 then
  428. break
  429. end
  430. end
  431.  
  432. local file = fs.open("SimSoft/Daten/SappS/A","w")
  433. file.writeLine("0.0")
  434. file.close()
  435.  
  436. function Download(Pfad, CodePB)
  437. local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
  438. local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(CodePB) .. "?cb=" .. cacheBuster)
  439. datei = datei.readAll()
  440.  
  441. local file = fs.open(Pfad, "w")
  442. file.write(datei)
  443. file.close()
  444. write(" ")
  445. end
  446.  
  447. Download("SimSoft/System/Desktop", "Xec88YHS")
  448. Download("SimSoft/System/SappS", "MLN0FMex")
  449. Download("SimSoft/System/SappSLoeschen", "ZiVBcdQz")
  450. Download("SimSoft/System/SystemStart", "yqW1NwWK")
  451. Download("SimSoft/Daten/DesktopBG", "5UqmydfY")
  452. Download("startup", "UW2qzgVj")
  453. Download("SimSoft/System/SystemUpdate", "AgRNRe9v")
  454. Download("SimSoft/System/LiveSystem", "mcMy84XC")
  455.  
  456. print(" ")
  457.  
  458. sleep(1)
  459.  
  460. Clear()
  461.  
  462. shell.run("pastebin run gYWVytWa")
  463. shell.run("pastebin run Ur7UYAqY")
  464. shell.run("pastebin run LwYn7AUC")
  465. shell.run("pastebin run i2cVCN45")
  466. shell.run("pastebin run ueCZm9vG")
  467. shell.run("pastebin run jVELp2st")
  468. shell.run("pastebin run 0LCz2dEZ")
  469.  
  470. os.reboot()
  471.  
  472.  
  473.  
  474. -----------
  475.  
  476.  
  477. elseif sprache == "de_de" then
  478.  
  479. BC(128)
  480. Clear()
  481.  
  482. CP(1,1)
  483. BC(32768)
  484. print(" ")
  485. print(" ")
  486. print(" ")
  487.  
  488. CP(15,2)
  489. TC(1)
  490. print("SimSoft 2.1 - Installer")
  491.  
  492. TC(1)
  493. BC(128)
  494. CP(4,5)
  495.  
  496. print("Nutzungsbedingungen")
  497.  
  498. CP(2,8)
  499. TC(256)
  500. print("-Alle Rechte sind SimlorLP (oder auch Simlor)")
  501. CP(2,9)
  502. print(" vorbehalten.")
  503. CP(2,11)
  504. print("-Es duerfen nur mit Einstimmung von SimlorLP,")
  505. CP(2,12)
  506. print(" Aenderungen im System vorgenommen werden.")
  507. CP(4,18)
  508. TC(1)
  509. print("Tipp - Nutze die Pfeiltasten")
  510.  
  511. CP(47,18)
  512. TC(256)
  513. print("2/4")
  514.  
  515. l = 1
  516.  
  517. while true do
  518.  
  519. if l == 1 then
  520.  
  521. CP(4,15)
  522. BC(128)
  523. TC(32768)
  524. print("Ok, weiter ")
  525.  
  526. CP(20,15)
  527. BC(128)
  528. TC(32768)
  529. print("[Abbrechen] ")
  530.  
  531. elseif l == 2 then
  532.  
  533. CP(4,15)
  534. BC(128)
  535. TC(32768)
  536. print("[Ok, weiter] ")
  537.  
  538. CP(20,15)
  539. BC(128)
  540. TC(32768)
  541. print("Abbrechen ")
  542. end
  543.  
  544. a, b = os.pullEvent()
  545.  
  546. while a~= "key" do a,b = os.pullEvent() end
  547.  
  548. if b == 203 then
  549. l = 2
  550. end
  551.  
  552. if b == 205 then
  553. l = 1
  554. end
  555.  
  556. if b == 28 then
  557.  
  558. if l == 1 then
  559. os.reboot()
  560. break
  561. elseif l == 2 then
  562. break
  563. end
  564. end
  565. end
  566.  
  567.  
  568. --Teil 2
  569.  
  570. BC(128)
  571. Clear()
  572.  
  573. CP(1,1)
  574. BC(32768)
  575. print(" ")
  576. print(" ")
  577. print(" ")
  578.  
  579. CP(15,2)
  580. TC(1)
  581. print("SimSoft 2.1 - Installer")
  582.  
  583. BC(128)
  584. TC(256)
  585. CP(4,6)
  586. print("Neuer PC-Name -")
  587.  
  588. CP(4,8)
  589. print("Neues Passwort -")
  590.  
  591. CP(2,16)
  592. TC(1)
  593. print("Tipp - Lege nun deinen Namen und")
  594. CP(2,17)
  595. print(" ein Passwort fest.")
  596.  
  597. CP(47,18)
  598. TC(256)
  599. print("3/4")
  600.  
  601. CP(21,6)
  602. TC(32768)
  603. name = read()
  604.  
  605. CP(21,8)
  606. TC(32768)
  607. pass = read()
  608.  
  609. --Teil 3
  610.  
  611. BC(128)
  612. Clear()
  613.  
  614. CP(1,1)
  615. BC(32768)
  616. print(" ")
  617. print(" ")
  618. print(" ")
  619.  
  620. CP(15,2)
  621. TC(1)
  622. print("SimSoft 2.1 - Installer")
  623.  
  624. BC(128)
  625. CP(20,10)
  626. TC(1)
  627. print("Los geht's!")
  628. CP(20,11)
  629. TC(256)
  630. print(" [Enter]")
  631.  
  632. BC(128)
  633. CP(2,17)
  634. TC(256)
  635. print("Abbrechen")
  636. CP(2,18)
  637. print(" [Q]")
  638.  
  639. CP(47,18)
  640. TC(256)
  641. print("4/4")
  642.  
  643. while true do
  644.  
  645. a, b = os.pullEvent()
  646.  
  647. while a~= "key" do a,b = os.pullEvent() end
  648.  
  649. if b == 16 then
  650. os.reboot()
  651. end
  652.  
  653. if b == 28 then
  654. break
  655. end
  656. end
  657.  
  658.  
  659. --Teil 4 - Installer
  660.  
  661. BC(128)
  662. TC(32)
  663. Clear()
  664.  
  665. shell.run("cd /")
  666. fs.delete("SimSoft/System")
  667. fs.delete("SimSoft/SappS")
  668. fs.delete("SimSoft/Daten")
  669. fs.delete("startup")
  670. os.setComputerLabel(name)
  671. Clear()
  672.  
  673. BC(128)
  674. Clear()
  675.  
  676. CP(1,1)
  677. BC(32768)
  678. print(" ")
  679. print(" ")
  680. print(" ")
  681.  
  682. CP(15,2)
  683. TC(1)
  684. print("SimSoft 2.1 - Installer")
  685.  
  686. CP(3,8)
  687. BC(256)
  688. print(" ")
  689.  
  690. CP(3,8)
  691. BC(1)
  692. write(" ")
  693.  
  694. local file = fs.open("SimSoft/Daten/User","w")
  695. file.close()
  696.  
  697. local file = fs.open("SimSoft/Daten/User","a")
  698. file.writeLine(name)
  699. file.close()
  700.  
  701. local file = fs.open("SimSoft/Daten/User","a")
  702. file.writeLine(pass)
  703. file.close()
  704.  
  705. local file = fs.open("SimSoft/Daten/User","a")
  706. file.writeLine("t")
  707. file.close()
  708.  
  709. local file = fs.open("SimSoft/Daten/User","a")
  710. file.writeLine("t")
  711. file.close()
  712.  
  713. local file = fs.open("SimSoft/Daten/User","a")
  714. file.writeLine("2.1.7")
  715. file.close()
  716.  
  717. --
  718.  
  719. write(" ")
  720.  
  721. --
  722.  
  723. local file = fs.open("SimSoft/Daten/SappS/1","w")
  724. file.close()
  725.  
  726. local file = fs.open("SimSoft/Daten/SappS/1","a")
  727. file.writeLine("")
  728. file.close()
  729.  
  730. local file = fs.open("SimSoft/Daten/SappS/1","a")
  731. file.writeLine("")
  732. file.close()
  733.  
  734. local file = fs.open("SimSoft/Daten/SappS/1","a")
  735. file.writeLine("")
  736. file.close()
  737.  
  738. local file = fs.open("SimSoft/Daten/SappS/1","a")
  739. file.writeLine("")
  740. file.close()
  741.  
  742. local file = fs.open("SimSoft/Daten/SappS/1","a")
  743. file.writeLine("n")
  744. file.close()
  745.  
  746. local file = fs.open("SimSoft/Daten/SappS/1","a")
  747. file.writeLine("false")
  748. file.close()
  749.  
  750. --
  751.  
  752. write(" ")
  753.  
  754. --
  755.  
  756. u = 1
  757.  
  758. while true do
  759.  
  760. u = (u+1)
  761.  
  762. fs.copy("SimSoft/Daten/SappS/1", "SimSoft/Daten/SappS/"..u)
  763.  
  764. if u == 15 then
  765. break
  766. end
  767. end
  768.  
  769. local file = fs.open("SimSoft/Daten/SappS/A","w")
  770. file.writeLine("0.0")
  771. file.close()
  772.  
  773. function Download(Pfad, CodePB)
  774. local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
  775. local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(CodePB) .. "?cb=" .. cacheBuster)
  776. datei = datei.readAll()
  777.  
  778. local file = fs.open(Pfad, "w")
  779. file.write(datei)
  780. file.close()
  781. write(" ")
  782. end
  783.  
  784. Download("SimSoft/System/Desktop", "33G37GU9")
  785. Download("SimSoft/System/SappS", "upF7Jgpz")
  786. Download("SimSoft/System/SappSLoeschen", "ff47QhmG")
  787. Download("SimSoft/System/SystemStart", "ysJQGD57")
  788. Download("SimSoft/Daten/DesktopBG", "5UqmydfY")
  789. Download("startup", "UW2qzgVj")
  790. Download("SimSoft/System/SystemUpdate", "zrfHcZAK")
  791. Download("SimSoft/System/LiveSystem", "mcMy84XC")
  792.  
  793. print(" ")
  794.  
  795. sleep(1)
  796.  
  797. Clear()
  798.  
  799. shell.run("pastebin run gYWVytWa")
  800. shell.run("pastebin run Ur7UYAqY")
  801. shell.run("pastebin run LwYn7AUC")
  802. shell.run("pastebin run i2cVCN45")
  803. shell.run("pastebin run ueCZm9vG")
  804. shell.run("pastebin run jVELp2st")
  805. shell.run("pastebin run 0LCz2dEZ")
  806.  
  807. os.reboot()
  808. end
Add Comment
Please, Sign In to add comment