So I was trying to figure out why my old PacketHooker test wasn't working and noticed something interesting....
After a decent amount of debugging and bashing my head against the wall i found out that it's not able to attach to the process (but being as the exceptions are all handled so nicely it doesn't complain).
For my client selector I have a simple PopulateClientList() which runs through each process on the computer, checks if it's a conquer process and if so tries to pull a client name from it.
I've tried ReadString as well as using ReadByteArray and ofc cause I cant attach it doesn't work (with trying to attach or not)
Anything I'm missing? I know it worked the first time I tested all this out.
Always says false when I'm trying to attach debugger.
After a decent amount of debugging and bashing my head against the wall i found out that it's not able to attach to the process (but being as the exceptions are all handled so nicely it doesn't complain).
For my client selector I have a simple PopulateClientList() which runs through each process on the computer, checks if it's a conquer process and if so tries to pull a client name from it.
I've tried ReadString as well as using ReadByteArray and ofc cause I cant attach it doesn't work (with trying to attach or not)
Anything I'm missing? I know it worked the first time I tested all this out.
Code:
foreach (Process theprocess in processlist)
{
if (theprocess.ProcessName == "Conquer")
{
Console.WriteLine("Process name found with: " + theprocess.ProcessName);
Console.WriteLine("Attached successfully? " + new Debuggee(theprocess.Id).AttachDebugger());
}
}