client port bypassing

12/12/2015 05:43 PayUpSucka#1
hi, guys

How to bypass my conquer client to redirect it on my localhost and specific port that i will define other than 9959, 9960 and 5816.

I know how to redirect it using the example on this site but but it never change the ports being used in co client

P.S:i know conquer loader available on the epvp but its detectable by co antibot so i want a sample code to add it to my own program

i got this code from someone here on forums it can easily bypass the ip ... but i also WANT TO bypass port ... can anyone give sample code for it?:D:D

code:
public static int connect(uint PID, string IPAdd)
{
IntPtr ws2Handle = native.LoadLibrary("WS2_32.dll");
if (ws2Handle == null)
{
native.FreeLibrary(ws2Handle);
return 1;
}
IntPtr cHandle = native.OpenProcess(enumProcessAccessFlags.VMOperat ion | enumProcessAccessFlags.VMRead | enumProcessAccessFlags.VMWrite | enumProcessAccessFlags.All, true, PID);
if (cHandle == null)
{
native.FreeLibrary(ws2Handle);
return 2;
}
IntPtr inet_addr = native.GetProcAddress(native.GetModuleHandle("WS2_ 32.dll"), "inet_addr");
if (inet_addr == null)
{
native.FreeLibrary(ws2Handle);
return 3;
}
byte[] buffer = { 0xb8, 0x0, 0x0, 0x0, 0x0, 0xc2, 0x4, 0x0, 0x90, 0x90 };
byte[] byteIPaddress = IPAddress.Parse(IPAdd).GetAddressBytes();
System.Buffer.BlockCopy(byteIPaddress, 0, buffer, 1, byteIPaddress.Length);

//Get the original value
if (firstflg)
{
int bytesRead = 0;
native.ReadProcessMemory(cHandle, inet_addr, bufferread, (uint)bufferread.Length, out bytesRead);
firstflg = false;
}
int bytesWritten = 0;
if (!native.WriteProcessMemory(cHandle, inet_addr, buffer, (uint)buffer.Length, out bytesWritten))
{
native.FreeLibrary(ws2Handle);
return 4;
}
native.CloseHandle(cHandle);
native.FreeLibrary(ws2Handle);
return 0;
}
12/12/2015 07:09 Spirited#2
You need to overload the [Only registered and activated users can see links. Click Here To Register...] function, not the [Only registered and activated users can see links. Click Here To Register...] function. The later has nothing to do with ports. Ports come in with the connect function's "name" parameter, which is composed of the address family, port, and address. Also, there's no way in hell I'm giving you "sample code" since I know you just fucking copy and pasted this shit. This should be more than enough for you to code the changes in. Know that C# really isn't the best for this either, not that you care.
12/12/2015 07:33 PayUpSucka#3
Quote:
Originally Posted by Spirited View Post
You need to overload the [Only registered and activated users can see links. Click Here To Register...] function, not the [Only registered and activated users can see links. Click Here To Register...] function. The later has nothing to do with ports. Ports come in with the connect function's "name" parameter, which is composed of the address family, port, and address. Also, there's no way in hell I'm giving you "sample code" since I know you just fucking copy and pasted this shit. This should be more than enough for you to code the changes in. Know that C# really isn't the best for this either, not that you care.
just don't know whats the problem copying and pasting that shit... you already know im copied it from the previous thread... i don't see anything wrong with it .. my main question is the code because in a away or another i can always easily bypass the ip ... but the port ... im not expert with it
12/12/2015 07:44 Spirited#4
Quote:
Originally Posted by PayUpSucka View Post
just don't know whats the problem copying and pasting that shit... you already know im copied it from the previous thread... i don't see anything wrong with it .. my main question is the code because in a away or another i can always easily bypass the ip ... but the port ... im not expert with it
Well, it's a good thing you don't need to be an expert then. You have the example you desired, and I told you how to do it. I'm not going to hold your hand and do your work. In fact, if you're that lazy not to learn coding but then to demand that we help you, you could probably find a few articles for detouring the connect function.
12/12/2015 12:07 PayUpSucka#5
Quote:
Originally Posted by Spirited View Post
Well, it's a good thing you don't need to be an expert then. You have the example you desired, and I told you how to do it. I'm not going to hold your hand and do your work. In fact, if you're that lazy not to learn coding but then to demand that we help you, you could probably find a few articles for detouring the connect function.
well not to mention i tried every thing possible and everything failed ... if there is 1 pct i can know the codes myself i would never bother asking here..
12/12/2015 18:16 Spirited#6
Quote:
Originally Posted by PayUpSucka View Post
well not to mention i tried every thing possible and everything failed ... if there is 1 pct i can know the codes myself i would never bother asking here..
Demanding code isn't permitted in this section. If you don't know how to code, that's your problem, not ours. This is a programming community. You posted to a programming forum. See where I'm getting at? Demanding code is a rule violation here.