I'm interested in hooking. Seems like a really cool thing. I used this but not for Conquer, plan on using it for another game. But it just won't attach. see anything wrong with my code? And yes, it is getting the processid successfully.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using AdvancedHooking;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Zeus Game = new Zeus();
if (Game.Attach())
Console.WriteLine("Successfully attached");
Console.Read();
}
}
class Zeus
{
private Debuggee _dbg;
private bool IsAttached = false;
private int _ProcessId = 0;
public Debuggee Dbg
{
get { return _dbg; }
}
public int ProcessId
{
get { return _ProcessId; }
}
public Zeus()
{
this._ProcessId = GetProcessID("Zeus");
this._dbg = new Debuggee(_ProcessId);//its getting the process id and **** perfectly. but it just wont attach
}
public int GetProcessID(string name)
{
foreach (Process Proc in Process.GetProcesses())
{
if (Proc.ProcessName.ToLower() == name.ToLower())
return Proc.Id;
}
return 0;
}
public bool Attach()
{
if (IsAttached)
return false;
_dbg.OnAttach += new Debuggee.OnAttachEventHandler(_dbg_OnAttach);
if (_dbg.AttachDebugger())
{
IsAttached = true;
return true;
}
else
{
return false;
}
}
void _dbg_OnAttach(ref Debuggee Debuggee, ref Helper.CONTEXT ctx)
{
Console.WriteLine("Attached");
}
}
}
Chances are the client uses a different memory address for send/receive function meaning that the bot cannot hook it properly.
Proxy = packet based bot which is achieved by routing all your conquer activity through a program which handles the connections and such.
CoOperative = memory based bot which hooks the send/receive packet methods meaning it is still packet based but there is no reason to handle encryption, connections or re-direct the client anywhere.
Error 1 The best overloaded method match for 'AdvancedHooking.Debuggee.ReadString(int, uint)' has some invalid arguments C:\Users\Alan\AppData\Local\Temporary Projects\COHooker\COClient.cs 92 31 COHooker
Error 2 Argument 1: cannot convert from 'System.IntPtr' to 'int' C:\Users\Alan\AppData\Local\Temporary Projects\COHooker\COClient.cs 92 50 COHooker
But what are these?
Const NameOffset As Integer = &H15C
I am confused as to what &H15C is.
&H15C = 0x15C. It's the offset of the "Name" property (string pointer) of the role class. So, [Role base address + 0x15C] = Address that contains name of role.
&H15C = 0x15C. It's the offset of the "Name" property (string pointer) of the role class. So, [Role base address + 0x15C] = Address that contains name of role.
Ahh, so &H = 0x?
Also, does the example program work?
It detects my client, but doesn't do anything.
[RELEASE] Make a more Advanced NPC 02/02/2011 - CO2 PServer Guides & Releases - 55 Replies This guide will show you how to make a NPC. I will update this post daily with new things to add to your NPC.
First. We are going to take this NPC from Paralyzer and modify this a little bit. here is the link if you have never made a simple NPC.
http://www.elitepvpers.com/forum/co2-pserver-guide s-releases/492901-release-how-code-decent-npc-npcs -txt-entry.html
Easiest stuff first.
How to make an NPC check for a specific level.
To make an NPC check for a level we can do this by adding...
Advanced Tribalwars Bot Release 05/31/2010 - Browsergames - 20 Replies Ein Bot für das Browsergame "Die Stämme".
Features:
Multiaccountfähig
baut Dörfer selbstständig aus
Bot merkt sich, wann ein Gebäude gebaut werden kann, bzw. wann es fertiggestellt ist
Information: Bei "Server" z.B. de60.die-staemme.de o.ä. eingeben.
ReViSiOn [Advanced Public Release] 02/13/2009 - WarRock Hacks, Bots, Cheats & Exploits - 5 Replies http://i295.photobucket.com/albums/mm150/gfx_forum s/revvv3.png
ReViSiOn Public Beta 1.2
_____
Working features:
No Recoil
No Spread