Categories > Coding > Lua >

Roblox - Identifying exploitable code & how to exploit it and in what ways it can be used to exploit.

Posts: 4

Threads: 1

Joined: Nov, 2021

Reputation: 0

Posted

local l__Backpack__1 = game.Players.LocalPlayer.Backpack; local function v2(p1) for v3, v4 in pairs(p1:GetDescendants()) do if v4:GetAttribute("a") then if v4.Disabled then game.ReplicatedStorage.Chalk:FireServer(); end; local v5 = v4:GetPropertyChangedSignal("Disabled"):Connect(function() if v4.Disabled then game.ReplicatedStorage.Chalk:FireServer(); end; end); v4:GetPropertyChangedSignal("Parent"):Connect(function() if not v4.Parent then game.ReplicatedStorage.Chalk:FireServer(); end; end); end; end; end; for v6, v7 in pairs(l__Backpack__1:GetDescendants()) do if v7:IsA("Tool") then v2(v7); end; end; l__Backpack__1.ChildAdded:Connect(v2);

 

 

How would one identify how to exploit this code, what can be exploited about it, and how to exploit it?

  • 0

CJ99

CJ$

Posts: 197

Threads: 50

Joined: Sep, 2021

Reputation: -6

Replied

I don't know lua, If I did I would help. Wait for someone to reply who knows lua.

  • 0

https://gyazo.com/9e36f19dea3a77fbcdc641f0276c4cd8

 

"I'll have two number 9s, a number 9 large, a number 6 with extra dip, a number 7, two number 45s, one with cheese, and a large soda."

Posts: 0

Threads: 0

Joined: ?

Reputation:

Replied

at first i thought this would be really useful reverse engineering tutorial to learn how to exploit roblox's code :(

  • 0

Posts: 4

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

@55258

Unfortunately if i had the knowledge i would teach it, though i'll try and go through some wikis and get back to you if i find how to reverse engineer it on the 3% chance i do.

  • 0

MainDab

Main_EX

Posts: 467

Threads: 39

Joined: Sep, 2020

Reputation: 11

Replied

This is actually decompiled code. Here is a beautified version of the code. It's easier to look at the code when it's beautified, isn't it? 

local l__Backpack__1 = game.Players.LocalPlayer.Backpack
local function v2(p1)
    for v3, v4 in pairs(p1:GetDescendants()) do
        if v4:GetAttribute("a") then
            if v4.Disabled then
                game.ReplicatedStorage.Chalk:FireServer()
            end
            local v5 =
                v4:GetPropertyChangedSignal("Disabled"):Connect(
                function()
                    if v4.Disabled then
                        game.ReplicatedStorage.Chalk:FireServer()
                    end
                end
            )
            v4:GetPropertyChangedSignal("Parent"):Connect(
                function()
                    if not v4.Parent then
                        game.ReplicatedStorage.Chalk:FireServer()
                    end
                end
            )
        end
    end
end
for v6, v7 in pairs(l__Backpack__1:GetDescendants()) do
    if v7:IsA("Tool") then
        v2(v7)
    end
end
l__Backpack__1.ChildAdded:Connect(v2)

 

My scripting isn't the best and I'm on mobile, but I'm going to make some assumptions.

 

This script is a local script, and when a tool is used (like clicked on), it fires a remote on the server.

 

game.ReplicatedStorage.Chalk:FireServer()

 

This script seems to be exploitable, as this remote does not seem to have any protection (I'm assuming). 

 

How would one identify how to exploit this code? 

I've identified this by looking as to what what is ran when the tool is somehow used, which is seen in :Connect()

 

Now, I might be wrong, but this is what I would assume. 

 

How to exploit it?

My above explanation should be aquedate enough to explain. But like others said, it's probably better to do a bit of learning...

 

Again, I'm no expert, and others on this forum can do a way better job than me. But I do hope this helps. 

  • 0

Added

@55258 same, i got baited 

  • 0

Added

@_realnickk agreed, but maybe a bit of help would be useful 

  • 0

Posts: 4

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

@MainDab Why code no worky


Mouse.Button1Down:Connect(function()

	if Player.Character then
		
		game.Players.LocalPlayer.Backpack.Chalk.Draw:FireServer(Mouse.Hit.Position)

	end
end)
  • 0

MainDab

Main_EX

Posts: 467

Threads: 39

Joined: Sep, 2020

Reputation: 11

Replied

@nexxos how would I know if I don't know the game

  • 0

Posts: 4

Threads: 1

Joined: Nov, 2021

Reputation: 0

Replied

@MainDab

based https://www.roblox.com/games/7280118908/School-Simulator

  • 0

Posts: 2014

Threads: 198

Joined: Apr, 2021

Reputation: 16

Replied

@CJ99 If you don't know the answer why bothering to answer?

  • 0

Random quote here...

Kura

kuraise

Posts: 161

Threads: 3

Joined: Jun, 2021

Reputation: 5

Replied

first i recommend you use a lua beautifier or sum and then learn lua, probably backwards or so.

  • 0

Added

@nexxos Did you call the player? If you did then idk bc I don't play the game/don't wanna exploit on it.

local Player = game.Players.LocalPlayer
Mouse.Button1Down:Connect(function()

	if Player.Character then
		
		game.Players.LocalPlayer.Backpack.Chalk.Draw:FireServer(Mouse.Hit.Position)

	end
end)
  • 0

 

https://cdn.discordapp.com/attachments/877610317037858846/975469974405673041/Signature.png

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )