![]() |
|
Mw2 Functions Injection - DLL - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Mw2 Functions Injection - DLL (/Thread-Mw2-Functions-Injection-DLL.html) Pages:
1
2
|
Mw2 Functions Injection - DLL - NieXrlaM - 11-08-2010 In this toturial you will learn how to inject some commands to the game Functions 1) how to inject Command to Game console ? this code will do it (C++ & Assembly) PHP Code: void SendToConsole(char* Command,bool Cmd){
int ConsoleAddress = 0x4393E0;
int ConsoleOffset2 = 0x4F8120;
if(Cmd == 0){
_asm{
push Command
push 0
push 0
call [ConsoleAddress]
add esp,0x0c
}
}
else if(Cmd == 1){
_asm{
push Command
push 0
call [ConsoleOffset2]
add esp,0x8
}
}
}
Explanation - the next code will inject commands to console for some commands you need to use the first Assembly code for more commands the game will crash .. so you will need to use the Other ASM code here a Example SendToConsole("xpartygo",1); and here a Other Example SendToConsole("say \"Code By NieXrlaM X_X\"",0); 2) how to inject Text to Console Textbox ? this code will do it (C++ & Assembly) PHP Code: void SendTextToConsole(char* Text){
int Address = 0x4D1D90;
_asm{
PUSH [Text]
CALL [Address]
add esp,0x04
}
}
here a Example - SendTextToConsole("\n Code By NieXrlaM X_X \n"); here what its does - ![]() 3) how to inject Text to Chat Display Function ? this code will do it (C++ & Assembly) PHP Code: void SendTextToChat(char* Text){
char* Types = "chat message";
int ChatOffset = 0x594830;
_asm{
push [Types]
push 0x3A83B201
push 0x96
push [Text]
push [Text]
mov esi,[Text]
mov ecx,esi
call [ChatOffset]
add esp,0x14
}
}
here a Example - SendTextToChat("^3Code By NieXrlaM X_X"); here what it does - ![]() Enjoy ! (and sorry for my english) ![]() RE: Mw2 Functions Injection - DLL - aosma8 - 11-09-2010 Nice one niexrlam will be interesting to test RE: Mw2 Functions Injection - DLL - deadIce - 11-11-2010 If only I'd seen this post earlier today, I wouldn't have spent the time messing around trying to do this myself
RE: Mw2 Functions Injection - DLL - Baber786 - 07-28-2011 could you quickly tell us how to find the offsets? looked around the net but dont see how to find sendtexttochat and console offsets, could you tell us how you found them? RE: Mw2 Functions Injection - DLL - d0h! - 07-28-2011 (07-28-2011, 09:47)Baber786 Wrote: could you quickly tell us how to find the offsets? looked around the net but dont see how to find sendtexttochat and console offsets, could you tell us how you found them? there are 2 or 3 tuts here posted on how to find offsets using odbg http://www.itsmods.com/forum/Thread-Video-Tutorial-Memory-Pattern-Scanning.html http://www.itsmods.com/forum/Thread-Signature-Pattern-scanning.html http://www.itsmods.com/forum/Thread-Byte-Spy-v-1-0-Signature-finder-Memory-Scanner.html also a few offsets that are needed are always updated in this thread: http://www.itsmods.com/forum/Thread-BO-MP-Offsets-latest-version-in-the-last-post.html RE: Mw2 Functions Injection - DLL - Baber786 - 07-29-2011 (07-28-2011, 10:58)d0h! Wrote:(07-28-2011, 09:47)Baber786 Wrote: could you quickly tell us how to find the offsets? looked around the net but dont see how to find sendtexttochat and console offsets, could you tell us how you found them? yes, but none of them show how to find sendtextoconsole or sendtexttochat offsets, havennt seen any tuts which show how to find sendtexttoconsole or sendtexttochat RE: Mw2 Functions Injection - DLL - aosma8 - 07-29-2011 @Baber786 Have a look at this thread: http://www.itsmods.com/forum/Thread-How-to-find-offsets.html RE: Mw2 Functions Injection - DLL - Baber786 - 07-30-2011 (07-29-2011, 10:51)aosma8 Wrote: @Baber786 still dont see how to find sendtextoconsole or sendtexttochat offset :L well if knew like whats strings to search for or how to locate the offset RE: Mw2 Functions Injection - DLL - aosma8 - 07-31-2011 (07-30-2011, 20:12)Baber786 Wrote:@Baber786(07-29-2011, 10:51)aosma8 Wrote: @Baber786 It's in the thread... SendCommandToConsole: Code: Search for string "stoprecord" or "screenshot silent" or "quit" or "pb_sv_guidrelax".
Code:
0046C90F 68 400E6D00 PUSH iw3mp.006D0E40 ; ASCII "screenshot silent"
0046C914 6A 00 PUSH 0
0046C916 6A 00 PUSH 0
0046C918 E8 93D10800 CALL iw3mp.004F9AB0 '<<<--- SendCommandToConsole function offset'
0046C91D 83C4 0C ADD ESP,0C#define OFFSET_SENDCOMMAND 0x4F9AB0 RE: Mw2 Functions Injection - DLL - Baber786 - 07-31-2011 (07-31-2011, 08:11)aosma8 Wrote:(07-30-2011, 20:12)Baber786 Wrote:@Baber786(07-29-2011, 10:51)aosma8 Wrote: @Baber786 isnt that different? sends a command to console like as if it was a dvar or a command ... not to like display text in the console text box as it shows in the first post |