Categories > Exploiting > Roblox >
Roblox blocks DLL injection
Replied
RobloxProcess = Process.Start(Path.Combine(RobloxPlayerDirectory, "RobloxPlayerBeta.exe"), "-app");
while (RobloxProcess.MainWindowHandle == IntPtr.Zero)
Thread.Sleep(100);
RobloxProcessId = RobloxProcess.Id;
replace that code with the code below
RobloxProcess = Process.Start(Path.Combine(RobloxPlayerDirectory, "RobloxPlayerBeta.exe"), "-app");
RobloxProcess.WaitForInputIdle();
RobloxProcessId = Process.GetProcessById("RobloxPlayerBeta").Id;
Replied
@75975 This didn't work :(
@75975 Of course I will credit. Thank you.
Cancel
Post
Replied
@75975 No.
Cancel
Post
Added
But it work fine with other apps like notepad or google chrome.
Cancel
Post
Replied
It looks like to me you just skidded the code and dont know how it works or how to modify it. If your gonna try and accuse others of being "one of these fake programmers" atleast make your own src instead of decompiling something else and copy pasting it expecting it to work.
Cancel
Post
https://github.com/LocalSmail/Finity
discord.gg/ZjDYXYbwkU
Replied
@Finity No, it's just a misunderstanding. They aren't "fake programmers" and me either. I understand how the code work, but Roblox blocks dll injection and I don't know how to bypass blocking.
Cancel
Post
Replied
@ImmuneLion318 CAn we just forget it please, and you answer the question. I already said that I'm sorry.
Cancel
Post
Replied
Yikes... Skidding = no no
Cancel
Post
Ty for rep: Swiney, Byoke, Lion, Locust, Waves, Weeb, Nickk, darkn, Atari, CubeFaces, Lux14, Rice, Delta, Syraxes, Aeon, Jordan, Pluto, and Hiroku!
P.S, I like cats better too!
Replied
@69128Ohh, give me the answer pleease!
Cancel
Post
Replied
Reviewing your situation, I can see two issues.
1. There is a good chance you're attempting to load your library inside Roblox's daemon process. This second process runs in the background and serves as a reporting tool for modules allocated to the game's memory space. Since the process runs in the background, the process doesn't have a window, therefore you can get the process ID of the game's true process instead of the daemon process by ensuring it has a window handle.
2. There also may be a conflict with architectures, as you said that it worked fine on the Notepad application, which runs on 64-bit mode by default on 64-bit editions of Windows, which I'm going to assume you're running. Make sure you're compiling your library on the x86—or Win32—platform, and not x64.
Here is some pseudocode for getting the non-daemon Roblox process:
var robloxPid = 0;
foreach (var proc in Process.GetProcessesByName("RobloxPlayerBeta")) { // Don't include ".exe" at the end, because it's stated that GetProcessesByName requires a "friendly name."
if (proc.MainWindowHandle != IntPtr.Zero) {
robloxPid = proc.Id;
break;
}
}
if (robloxPid == 0) {
// Roblox not found.
}
Let me know if anything worked.
Cancel
Post
Replied
@91102Yes, it looks like the issue is in the architecture.
Cancel
Post
Added
@nickk No, I tried rebuilding dll with the Win32 architecture, still doesn't work.
I start Roblox process using this:
RobloxProcess = Process.Start(Path.Combine(RobloxPlayerDirectory, "RobloxPlayerBeta.exe"), "-app");
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post