Categories > Coding > C++ >

Executing Text

Posts: 24

Threads: 4

Joined: Nov, 2020

Reputation: 0

Posted

Can you help me edit my script so I can SEND(execute) a string in the game? Pls, help thx.

My script: ( i forgot to put the string in the script ignore that... )

 

#include <iostream>

#include <Windows.h>

 

using namespace std;

 

int main()

{

HWND hwnd = FindWindowA(NULL, "Roblox");

if (hwnd == NULL)

{

cout << "Cannot find Window: eXE" << endl;

Sleep(4000);

exit(-1);

}

else

{

DWORD procID;

GetWindowThreadProcessId(hwnd, &procID);

HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID);

 

if (procID == NULL)

{

cout << "Cannot obtain process: eXE" << endl;

Sleep(4000);

exit(-1);

}

else

{

cout << "Executing string to: eXE" << endl;

                        (WriteProcessMemory()???)

}

return 0;

}

}

 

WriteProcessMemory() --WriteProcessMemory is for changing the value of address...what is the command of sending code(string) at a certain point(DWORD, BYTE, ...???)-(game, app, exe).--

 

I'll be happy if you could help me out here thank you...

 

 

  • 0

hello

Moon

Moon

vip

Posts: 7441

Threads: 314

Joined: Aug, 2020

Reputation: 80

Replied

What do you mean execute text. Like a print script or a literal gui?

  • 0

Posts: 24

Threads: 4

Joined: Nov, 2020

Reputation: 0

Replied

I mean by executing the text or should I say Lua script and script that I wanna make is that it executes the text or Lua script in the Roblox game.

  • 0

hello

Moon

Moon

vip

Posts: 7441

Threads: 314

Joined: Aug, 2020

Reputation: 80

Replied

@facezero

Im still confused. Elaborate more please

  • 0

Posts: 24

Threads: 4

Joined: Nov, 2020

Reputation: 0

Replied

I create a script that when I type (print ("hello")) it executes the script in the game

  • 0

hello

Moon

Moon

vip

Posts: 7441

Threads: 314

Joined: Aug, 2020

Reputation: 80

Replied

@facezero in developer console?

  • 0

Posts: 24

Threads: 4

Joined: Nov, 2020

Reputation: 0

Replied

I create a normal hack in c++ that first connects to Roblox...

then I wanna make a script that executes the text or Lua script in the game...

(i execute the text from textbox to the game)

 

  • 0

hello

Moon

Moon

vip

Posts: 7441

Threads: 314

Joined: Aug, 2020

Reputation: 80

Replied

@facezero

I can't help you if you fail to properly explain your problem...

  • 0

Posts: 24

Threads: 4

Joined: Nov, 2020

Reputation: 0

Replied

#include <iostream>

#include <Windows.h>

 

using namespace std;

 

int main()

{

HWND hwnd = FindWindowA(NULL, "Roblox");

if (hwnd == NULL)

{

cout << "Cannot find Window: eXE" << endl;

Sleep(4000);

exit(-1);

}

else 

{

DWORD procID;

GetWindowThreadProcessId(hwnd, &procID);

HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, procID);

 

if (procID = NULL)

{

cout << "Cannot obtain process: eXE" << endl;

Sleep(4000);

exit(-1);

}

else

{

WriteProcessMemory()     --how can I make so when I type a text or Lua script it executes it in the game(How to make string execute to the game..)--

}

return 0;

}

  • 0

hello

Moon

Moon

vip

Posts: 7441

Threads: 314

Joined: Aug, 2020

Reputation: 80

Replied

@_realnickk

wait hes trying to make an exploit?

  • 0

Added

  • 0

Posts: 715

Threads: 30

Joined: Sep, 2020

Reputation: 13

Replied

@facezero

that code makes me cri :cri:

  • 0

| Discord (Updated): apppon#8358 | C++ Enthusiast | 

Posts: 24

Threads: 4

Joined: Nov, 2020

Reputation: 0

Replied

  • 0

hello

Moon

Moon

vip

Posts: 7441

Threads: 314

Joined: Aug, 2020

Reputation: 80

Replied

  • 0

Posts: 715

Threads: 30

Joined: Sep, 2020

Reputation: 13

Replied

@Moon @facezero

cuz if roblox exploiting was that ez I would of made an exploit with no knowledgeof cpp 

  • 0

| Discord (Updated): apppon#8358 | C++ Enthusiast | 

Next >>>

Users viewing this thread:

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