Categories > Coding > C++ >

TextExecutor


Posts: 23

Threads: 11

Joined: Jul, 2020

Reputation: 0

  • 0

Posted

How can I create a script for the execute button that executes text in the game?

I'll be happy if you can reply and help me out.

#SoHowslogicdoing

 

 

Posts: 585

Threads: 14

Joined: Jul, 2020

Reputation: -36

  • 0

Replied

wdym

this should be in lua

print("put your text here")

^ put that in executor and execute

 

 

Posts: 23

Threads: 11

Joined: Jul, 2020

Reputation: 0

  • 0

Replied

Thx for your reply but I wonder how to make a script in c++ that checks a textbox and executes it in Roblox

#SoHowslogicdoing

 

 

Posts: 913

Threads: 34

Joined: Aug, 2020

Reputation: 6

  • 0

Replied

@rulfos_Rbx you need a lua compiler

RealNickk

no longer active

vip

Posts: 3964

Threads: 177

Joined: Feb, 2020

Reputation: 56

  • 0

Replied

excuse me give me a second to write this

 

Okay, first, you need to get lua_gettop which is the last call from the 4th xref of "__index" (https://streamable.com/8g9weg)

Hook gettop to get its first argument passed. Once you get the first argument, you can unhook it and define rL (the state) as the first argument.

Next, you are going to want to get deserialize which is the prolouge of the first xref of ": bytecode version mismatch" (F5 to decompile or you can scroll to the prolouge (prolouge should be sub_xxxxxx)) (https://streamable.com/eib7fc)

Now you need lua_newthread which is the last 3 calls of the first xref of "oldResult, moduleRef  = ..." (https://streamable.com/a1r52r)

Lastly, you need spawn which is the prolouge of the first xref of "Spawn function requires 1 argument" (https://streamable.com/yqxx0y)

Define all those functions and their arguments.

Now what you want to do is define a new thread like this: lua_newthread(rL) if im not mistaken

Alright, so next you need to dump the code in lua 5.1 format and transpile it into luau (bytecode conversion) or you can run a lua bytecode interpreter through it (LBI) (im not going to help you do that)
After that, feed the bytecode through deserializer. (luaU_deserialize(rL, "tyo", Bytecode, BytecodeSize))

Lastly, call spawn. (rLua_spawn(rL))

congrats u made an exploit (if i missed something feel free to reply)

Posts: 507

Threads: 4

Joined: Jul, 2020

Reputation: 44

  • 0

Replied

@MaximusExploit i cringed at your post

  • 0

Added

@RealNickk I mean good try, you missed a couple steps but good try, I dont think that was what this person was asking for but who knows what they're asking for

I develop sometimes

https://cdn.discordapp.com/attachments/1010638486581297203/1030882876956356789/kth3fNc6.png

Posts: 16

Threads: 0

Joined: Oct, 2020

Reputation: 0

  • 0

Replied

You are gonna need to learn how to make Lua Wrapper or you can just use start off with luac

 

which can be acheieved with getglobal, pushstring

Moon

Moon

moderator

Posts: 7652

Threads: 305

Joined: Aug, 2020

Reputation: 69

  • 0

Replied

RealNickk

no longer active

vip

Posts: 3964

Threads: 177

Joined: Feb, 2020

Reputation: 56

  • 0

Replied

@DeepPain eeeeee what did i miss i need to learn

Moon

Moon

moderator

Posts: 7652

Threads: 305

Joined: Aug, 2020

Reputation: 69

  • 0

Replied

@RealNickk

how to live

RealNickk

no longer active

vip

Posts: 3964

Threads: 177

Joined: Feb, 2020

Reputation: 56

  • 0

Replied

@Moon thx rly hlped me out

Moon

Moon

moderator

Posts: 7652

Threads: 305

Joined: Aug, 2020

Reputation: 69

  • 0

Replied

@RealNickk

how do you breat-

Posts: 507

Threads: 4

Joined: Jul, 2020

Reputation: 44

  • 0

Replied

@RealNickk Well first off you missed the fact that lua_newthread is not needed (although still useful), you missed the dumping bytecode step, you

missed the dumping Roblox/unpacking it part and you also didn't explain why you would need spawn (on another note spawn can be called through lua c) I don't doubt that you don't know all of that tho, you seem semi-competent.

 

Also dm me on discord man and I can answer questions like this one much quicker and in much more detail

I develop sometimes

https://cdn.discordapp.com/attachments/1010638486581297203/1030882876956356789/kth3fNc6.png

RealNickk

no longer active

vip

Posts: 3964

Threads: 177

Joined: Feb, 2020

Reputation: 56

  • 0

Replied

@DeepPain im restricted from discord sadly

and also yes im around half-competent because I don't understand everything about roblox and its internals theres literally slim to none sources that can help me out 

 

lua 5.x i understand mostly everything about including it's virtual machine


Next >>>

Users viewing this thread:


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