Simlor_GER

SimSoft 3.1 - Installer

May 16th, 2016 (edited)
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.02 KB | None | 0 0
  1. --Alle Rechte an SimSoft 3 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. BC(128)
  25. Clear()
  26.  
  27. CP(1,1)
  28. BC(32768)
  29. print(" ")
  30. print(" ")
  31. print(" ")
  32.  
  33. CP(15,2)
  34. TC(1)
  35. print("SimSoft 3 - Installer")
  36.  
  37. TC(1)
  38. BC(128)
  39. CP(4,5)
  40.  
  41. print("Terms of use")
  42.  
  43. CP(2,8)
  44. TC(256)
  45. print("-All rights are reserved to")
  46. CP(2,9)
  47. print(" SimlorLP (or just Simlor)")
  48. CP(2,11)
  49. print("-Changes in the system may be carried out")
  50. CP(2,12)
  51. print(" only with the permission of SimlorLP.")
  52. CP(4,18)
  53. TC(1)
  54. print("Tip - Use the arrow keys")
  55.  
  56. CP(47,18)
  57. TC(256)
  58. print("1/3")
  59.  
  60. l = 1
  61.  
  62. while true do
  63.  
  64. if l == 1 then
  65.  
  66. CP(4,15)
  67. BC(128)
  68. TC(32768)
  69. print("Yes, continue ")
  70.  
  71. CP(20,15)
  72. BC(128)
  73. TC(32768)
  74. print("[No, cancel] ")
  75.  
  76. elseif l == 2 then
  77.  
  78. CP(4,15)
  79. BC(128)
  80. TC(32768)
  81. print("[Yes, continue]")
  82.  
  83. CP(20,15)
  84. BC(128)
  85. TC(32768)
  86. print("No, cancel ")
  87. end
  88.  
  89. a, b = os.pullEvent()
  90.  
  91. while a~= "key" do a,b = os.pullEvent() end
  92.  
  93. if b == 203 then
  94. l = 2
  95. end
  96.  
  97. if b == 205 then
  98. l = 1
  99. end
  100.  
  101. if b == 28 then
  102.  
  103. if l == 1 then
  104. os.reboot()
  105. break
  106. elseif l == 2 then
  107. break
  108. end
  109. end
  110. end
  111.  
  112.  
  113. --Teil 2
  114.  
  115. BC(128)
  116. Clear()
  117.  
  118. CP(1,1)
  119. BC(32768)
  120. print(" ")
  121. print(" ")
  122. print(" ")
  123.  
  124. CP(15,2)
  125. TC(1)
  126. print("SimSoft 3 - Installer")
  127.  
  128. BC(128)
  129. TC(256)
  130. CP(4,6)
  131. print("New PC-Name -")
  132.  
  133. TC(1)
  134. CP(4,9)
  135. print("New account name -")
  136.  
  137. CP(4,11)
  138. print("New account password -")
  139.  
  140. CP(47,18)
  141. TC(256)
  142. print("2/3")
  143.  
  144. CP(19,6)
  145. TC(32768)
  146. pcname = read()
  147.  
  148. CP(23,9)
  149. TC(32768)
  150. name = read()
  151.  
  152. CP(27,11)
  153. TC(32768)
  154. pass = read()
  155.  
  156. --Teil 3
  157.  
  158. BC(128)
  159. Clear()
  160.  
  161. CP(1,1)
  162. BC(32768)
  163. print(" ")
  164. print(" ")
  165. print(" ")
  166.  
  167. CP(15,2)
  168. TC(1)
  169. print("SimSoft 3 - Installer")
  170.  
  171. BC(128)
  172. CP(20,10)
  173. TC(1)
  174. print("Let's go!")
  175. CP(20,11)
  176. TC(256)
  177. print(" [Enter]")
  178.  
  179. BC(128)
  180. CP(2,17)
  181. TC(256)
  182. print("Cancel")
  183. CP(2,18)
  184. print(" [Q]")
  185.  
  186. CP(47,18)
  187. TC(256)
  188. print("3/3")
  189.  
  190. while true do
  191.  
  192. a, b = os.pullEvent()
  193.  
  194. while a~= "key" do a,b = os.pullEvent() end
  195.  
  196. if b == 16 then
  197. os.reboot()
  198. end
  199.  
  200. if b == 28 then
  201. break
  202. end
  203. end
  204.  
  205. --Teil 4 - Installer
  206.  
  207. BC(128)
  208. TC(32)
  209. Clear()
  210.  
  211. shell.run("cd /")
  212. fs.delete("SimSoft/System")
  213. fs.delete("SimSoft/SappS")
  214. fs.delete("SimSoft/Daten")
  215. fs.delete("startup")
  216. os.setComputerLabel(pcname)
  217. Clear()
  218.  
  219. BC(128)
  220. Clear()
  221.  
  222. CP(1,1)
  223. BC(32768)
  224. print(" ")
  225. print(" ")
  226. print(" ")
  227.  
  228. CP(15,2)
  229. TC(1)
  230. print("SimSoft 3 - Installer")
  231.  
  232. CP(3,8)
  233. BC(256)
  234. print(" ")
  235.  
  236. CP(3,8)
  237. BC(1)
  238. write(" ")
  239.  
  240. local file = fs.open("SimSoft/Daten/Config","w")
  241. file.close()
  242.  
  243. local file = fs.open("SimSoft/Daten/Config","a")
  244. file.writeLine("t")
  245. file.writeLine("t")
  246. file.writeLine("3.1.3")
  247. file.writeLine("en")
  248. file.close()
  249. --
  250.  
  251. local file = fs.open("SimSoft/Daten/User/User1","w")
  252. file.close()
  253. local file = fs.open("SimSoft/Daten/User/User1","a")
  254. file.writeLine(name)
  255. file.writeLine(pass)
  256. file.close()
  257.  
  258.  
  259. local file = fs.open("SimSoft/Daten/User/User2","w")
  260. file.close()
  261. local file = fs.open("SimSoft/Daten/User/User2","a")
  262. file.writeLine("Account 2")
  263. file.writeLine("123")
  264. file.writeLine("false")
  265. file.close()
  266.  
  267.  
  268. local file = fs.open("SimSoft/Daten/User/User3","w")
  269. file.close()
  270. local file = fs.open("SimSoft/Daten/User/User3","a")
  271. file.writeLine("Account 3")
  272. file.writeLine("123")
  273. file.writeLine("false")
  274. file.close()
  275.  
  276. --
  277.  
  278. write(" ")
  279.  
  280. --
  281.  
  282. local file = fs.open("SimSoft/Daten/SappS/1","w")
  283. file.close()
  284.  
  285. local file = fs.open("SimSoft/Daten/SappS/1","a")
  286. file.writeLine("")
  287. file.close()
  288.  
  289. local file = fs.open("SimSoft/Daten/SappS/1","a")
  290. file.writeLine("")
  291. file.close()
  292.  
  293. local file = fs.open("SimSoft/Daten/SappS/1","a")
  294. file.writeLine("")
  295. file.close()
  296.  
  297. local file = fs.open("SimSoft/Daten/SappS/1","a")
  298. file.writeLine("")
  299. file.close()
  300.  
  301. local file = fs.open("SimSoft/Daten/SappS/1","a")
  302. file.writeLine("n")
  303. file.close()
  304.  
  305. local file = fs.open("SimSoft/Daten/SappS/1","a")
  306. file.writeLine("false")
  307. file.close()
  308.  
  309. --
  310.  
  311. write(" ")
  312.  
  313. --
  314.  
  315. u = 1
  316.  
  317. while true do
  318.  
  319. u = (u+1)
  320.  
  321. fs.copy("SimSoft/Daten/SappS/1", "SimSoft/Daten/SappS/"..u)
  322.  
  323. if u == 15 then
  324. break
  325. end
  326. end
  327.  
  328. local file = fs.open("SimSoft/Daten/SappS/A","w")
  329. file.writeLine("0.0")
  330. file.close()
  331.  
  332. function Download(Pfad, CodePB)
  333. local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
  334. local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(CodePB) .. "?cb=" .. cacheBuster)
  335. datei = datei.readAll()
  336.  
  337. local file = fs.open(Pfad, "w")
  338. file.write(datei)
  339. file.close()
  340. write(" ")
  341. end
  342.  
  343. Download("SimSoft/System/Desktop", "V32EFt9q")
  344. Download("SimSoft/System/SappS", "xvU8Ep0N")
  345. Download("SimSoft/System/SystemStart", "9TDWzqPK")
  346. Download("SimSoft/Daten/DesktopBG", "5UqmydfY")
  347. Download("startup", "MmCHLubv")
  348. Download("SimSoft/System/SystemUpdate", "46mQ0NML")
  349. Download("SimSoft/System/LiveSystem", "MssfrTSH")
  350. Download("SimSoft/System/AcManager", "cqa2Pxrh")
  351.  
  352. print(" ")
  353.  
  354. sleep(0.8)
  355.  
  356. os.reboot()
  357.  
  358.  
  359.  
  360. --end
Add Comment
Please, Sign In to add comment