TKC-Community
Hacking and Art => Mount and Blade => Topic started by: Troll on May 04, 2014, 03:09:11 am
-
I'm a newb in modding and hacking :icon_biggrin2 But I know a little bit and the best thing is: I know how to Google :icon_laugh
So pls dont blame me.
Well I wanted to know if this is posible (as an .exe or else) for warband 1.158
One of the best Programmer and coder here, MrMedic, has posted sonething Like that a while ago but i didnt understood how to implent the c++ code ingame. (Thanks you MrMedic you are so good never stop coding)
Also my english is Bad sry I'm German :icon_blush :icon_thumbsup
-
Any1? :unsure
-
So, thanks to MrMedics nice code, I have a light in the dark:
__declspec(naked) void AutoChamber()
{
__asm
{
// seeing as we are here he is in a attack and swinging
pushad
mov edx,[esp+10] // direction of the enemy swing.
mov dword ptr AttackDirection,edx // direction my guy will chamber
popad
mov edx,[esp+0x10] // lets restore the old code and go back in to this game
jmp AutoChamber_Ret // back to warband 1.158 meanwhile that 'other' routine is chambering in his swing direction
}
}
// edited found a faster version
But I do not know how to implent it. I tried to paste it in Visual Basic c++ but got some Errors.
-
yeah im having some problems with this as hell, as far as trying to hook it
-
yeah im having some problems with this as hell, as far as trying to hook it
Yeah Im not the only one :icon_biggrin2
Who else has problems with it?
Well the thing is that I unterstand the lines of that little snippet, but it's , as you said, hard to hook it.
-
What to do with this code/ how to inject/ urn it into something easily workable. I am so conffuzzled... but with auochambe, noone shall beat me!
-
What to do with this code/ how to inject/ urn it into something easily workable. I am so conffuzzled... but with auochambe, noone shall beat me!
Yes thats the thingy. I know what it is (the code) but all of us don't know how to implent it. MrMedic said we should find it out by ourselves. But I dont know how to do that...
-
Thing is if i tell you how to find what needs to be found , the 'anti-cheaters' around here will try and get it patched.
released this snippet to give the ones that want to learn a push in the correct direction.
edit a big clue this next part :
edx .. 0 1 2 3 .
-
Thing is if i tell you how to find what needs to be found , the 'anti-cheaters' around here will try and get it patched.
released this snippet to give the ones that want to learn a push in the correct direction.
edit a big clue this next part :
edx .. 0 1 2 3 .
Usually I love quizes cuz they are easy, but this one is a hard stone :icon_biggrin2
Anderslise told me about this that you had problems with those stupid 'anti-cheaters' and I understand it now.
So as far as I know eax or edx is some Assmbler Registry in which you can store numbers.... and 0 1 2 3 are numbers :icon_laugh
But how to use them...... Maybe with OllyDB ..... I dont know need to think about it :icon_laugh
-
OK so I tried to implent the code in cheat engine (with auto-assembler) but it keeps saying to me AttackDirection and AutoChamber_ret cant be implented.
Edit: I watched a Video and they said that pushad will write all the things that are associated with them (mov edx ...) to the first free lines of the memory. And popad will restore them. I just need to know which programm should I use to implent the c++ code.
-
Ok I can see you are trying..
Bloodshed dev c , visual studio express , masm , etc can all handle asm.
Basically this routine in laymen's terms does:
1: knows the enemy is attacking (or it would not be executed but instead skipped ) ,then stores the enemy's attack direction (in my location that i chose to name: attackdirection.. could of been anything instead of attackdirection it could of been anticheatersareallkidsthatgotdroppedontheirheadasasmallchild) (for another routine to read)
2: returns to the game ( jumps back to the location stored in AutoChamber_Ret the ret part at the end is short hand to me for return address )and the game continues..
-- -- -------------------------------------------------------------------
Another routine reads the attack direction of the enemy attack ( which was previously stored )
then sets my attack direction to the same as the attacker.
The result is ( the impossible ) an autochamber hack.
btw since posting the routine i have found a much simpler way
tip : push 06 no .. push 07 yes.
next part : anti guest size control in effect QUOTE TO READ.
in theory there are always more than 1 way to accomplish the task, in this game what i am finding the more i dig deeper is it is quite badly coded ( programed )
.
for example:
the other day i was testing something else and literally froze all the players in a server and i was not disconnected and to my amazement i could still move freely ...
inbetween i ran round and killed all the players ( they were all stood still ) i then changed what i had previously changed and the server gave me the points, i havent been able to reproduce this yet but i will im sure of it so there's another avenue for you to peruse. :smile
i remember it being close to the autoblock routine , some routines around there will reproduce the effect and its probably linked to a bool which will be something like ismultiplay issingleplay so have a wander inside them routines and see if you can find it.
note: im starting to believe that 'its all server side' is complete bullshit to be truthful , its more likely to be a background thread backing up data and then restoring it.
-
First I need to say something. I really like how you try to help others, even thoughits hard and there are many anti-cheaters out there.
Also read your ultra-tiny text :icon_laugh
But I forgot to tell you something. I tried in visual c++ (visual studio) too and got the same error for trying to paste the code. Same again. AttackDirection and AutoChamber gave me those errors. Even though I renamed them to MaChick and MaSheep (dont ask me why i used them :icon_laugh) gave me errors.
Edit: Maybe I did something wrong. As itryed in visual studio i tryed to create a dll (to inject it laer in cheat engine)
-
same problem :icon_cry2
-
I'm also trying (pretty slowly, but still) to understand this part by part and how to actually turn it into something useful.
I will spend most of my day tommorow (with breaks of course) trying to create and understand how an ESP hack works. (Not auto-chamber, but something I have wanted to do for a little while).
Not getting spoonfed .exe's have motivated me to learn. Thank you Medic :icon_thumbsup
-
First I need to say something. I really like how you try to help others, even thoughits hard and there are many anti-cheaters out there.
Also read your ultra-tiny text :icon_laugh
But I forgot to tell you something. I tried in visual c++ (visual studio) too and got the same error for trying to paste the code. Same again. AttackDirection and AutoChamber gave me those errors. Even though I renamed them to MaChick and MaSheep (dont ask me why i used them :icon_laugh) gave me errors.
Edit: Maybe I did something wrong. As itryed in visual studio i tryed to create a dll (to inject it laer in cheat engine)
He's one of the best, I used to love it when his hacks came out
-
an Interesing topic
-
an Interesing topic
Yes I know :icon_biggrin2
-
First I need to say something. I really like how you try to help others, even thoughits hard and there are many anti-cheaters out there.
Also read your ultra-tiny text :icon_laugh
But I forgot to tell you something. I tried in visual c++ (visual studio) too and got the same error for trying to paste the code. Same again. AttackDirection and AutoChamber gave me those errors. Even though I renamed them to MaChick and MaSheep (dont ask me why i used them :icon_laugh) gave me errors.
Edit: Maybe I did something wrong. As itryed in visual studio i tryed to create a dll (to inject it laer in cheat engine)
Ok so in Visual Studio 2008 Express I get the error named C2094 label not defined or something (for AutoChamber_ret and AttackDirection). I need to say that I first just copied the Code and pasted it. Nothing else. I just created a dll. And paste the code to main.cpp which i created as the code of the dll.
-
So I've been looking at some tutorials and things like that for inspirations and how-to's, but they're mostly all of them for other games and so I try implementing it into M&B, but I have had no success. How would I go about using olly to find some offsets? What do I attach to? I have so many questions, but nowhere to find answers.
-
Anyone has a solution? :unsure
-
wtf is this shit?
-
wtf is this shit?
I asked for solution, not for stupid comments. :cluebat_new
-
lkşilk
-
lkşilk
What does this mean? :icon_o_o
-
The key to understanding is to know what you're doing at all times. ;)
The fundamental questions you need answered are how people make computer programs, how they make cheats, and how it all works. In order to make use of that code snippet you first have to know that.
-
The key to understanding is to know what you're doing at all times. ;)
The fundamental questions you need answered are how people make computer programs, how they make cheats, and how it all works. In order to make use of that code snippet you first have to know that.
Well I know a Bit of programming. But thats the thing. It's just a Bit.
I personally wanted to make a dll of that snippet, to inject IT than in cheat engine. But as said those two variables Autochamber_ret and attackdirection aren't asm variables like edx or esp or whatever.
Those other things like the basics i can easily google myself.
-
I'm trying to figure out how to explain, knowing the basics is a good start. However, to get anywhere with the snippet you have to know what it is and what you need to do to understand it.
The value of it is not the specific code itself, it's the idea. But, in fact you may not even have to know any programming to implement this. However, you absolutely have to know how to use memory scanners like Cheat Engine and programs like Trainer Maker Kit. A tool maker called L. Spiro had a promising project going on, but I never saw what came out of it:
http://memoryhacking.com/download.php
Could be worth a check, but Cheat Engine and TMK are definitely beginner friendly. That's the first step.
After that you need to know how to make a basic hack like Unlimited Ammo. It's a good exercise and is where everyone starts. Once you have managed to do that, you will know the answer to your question.
-
mov edx,[esp+10] // direction of the enemy swing
Right now the big question on my mind is: "How did he find this?"
I tried messing around with Olly, but I didn't come any closer and I don't know what else I should use/do to reproduce this.
-
Olly is good, but I would not start with it, but rather use the debugger in Cheat Engine.
You need to find an entry point by using a memory searcher. It pays off to think about it beforehand, because some approaches may be easier than others.
Programming experience is for sure good, because you get better understanding of eg how a swing can be coded and how information can be stored.
There is a game hacking archive in the DL section which includes everything anyone needs to get started and more. Cheat Engine has some kind of search/sieve tutorial/challenge which may be good to complete as well. Generally it's a prerequisite for this kind of hack. If someone can't do an unlimited ammo or complete the tutorials there, he won't be able to reproduce this hack.
-
I'm trying to figure out how to explain, knowing the basics is a good start. However, to get anywhere with the snippet you have to know what it is and what you need to do to understand it...
So I have a question for you: did you made this hack running? And if yes, what programm did you use.
I read on the lspiro website and found out that it has a codecaving and code injection feature. It can also convert asm into machine language. I dont know if i understood this right but you said the snippet with attackDirection and autochamber_ret are an idea. But thats the important thing. I need to know how to convert the idea into a functional variable. And thats the big stone in my way.
-
Troll...
Understand the basics first , you cant jump in and expect anyone to drop everything and teach you ..you have to put the effort in yourself just like we did.
do a c course it should take a couple of hours ,
http://www.learncpp.com/
spoon feeding does no good but on this occasion i will unravel the clue i gave away as it may kickstart you into learning.
0 1 2 3 is the enemy's attack direction and if edx doesnt equal -1 ( 0xffffffff ) then your being attacked.
02 = he is attacking with a swing from the right... now get to work.
start a server , put a bot on , when he attacks freeze the game , search for 2 if he is attacking with a right swing .. etc etc different numbers for the other directions.
when you find that you can very easily make an auto chamber hack.
example ..instead of auto blocking .. you auto attack because you now know from which direction the enemy is attacking you .... you then set your attack to the same as his and voila ..auto chamber ..
you follow what i am saying?
-
Troll...
Understand the basics first , you cant jump in and expect anyone to drop everything and teach you ..you have to put the effort in yourself just like we did.....
Oh ma gash now I understand it. The rest i can try to figure out myself. 1000 thanks. Thanks for the link.
Btw.: nice new signatur :icon_biggrin2
-
So now how about that: if i do it in assembly, i could write before that snippet "start:" and instead of jmp autochamber_ret i would write jmp start.
And AttackDirection should be my attackdirection, which is replaced with edx (the enemys attackdirection) ....now i understand.
So i could do the same as you described mrmedic. I could start the server, make a bot but instead i would try to find out my attackdirection.
And then i basicly write
mov dword ptr "whatifoundoutofmyattackdirection" ,edx
Question: is this jmp start possible or would it end in a loop
-
So now how about that: if i do it in assembly, i could write before that snippet "start:" and instead of jmp autochamber_ret i would write jmp start.
And AttackDirection should be my attackdirection, which is replaced with edx (the enemys attackdirection) ....now i understand.
So i could do the same as you described mrmedic. I could start the server, make a bot but instead i would try to find out my attackdirection.
And then i basicly write
mov dword ptr "whatifoundoutofmyattackdirection" ,edx
Question: is this jmp start possible or would it end in a loop
if you jump back to where you started then it will loop endlessly ( recursive ) normally you would jump to the next instruction or in certain cases ret to return to call that called the code.
http://www.tutorialspoint.com/assembly_programming/
Assembly programming with tutorial .
http://www.codeproject.com/Articles/20240/The-Beginners-Guide-to-Codecaves
code cave tutorial.
-
So, thanks to MrMedics nice code, I have a light in the dark:
__declspec(naked) void AutoChamber()
{
__asm
{
// seeing as we are here he is in a attack and swinging
pushad
mov edx,[esp+10] // direction of the enemy swing.
mov dword ptr AttackDirection,edx // direction my guy will chamber
popad
mov edx,[esp+0x10] // lets restore the old code and go back in to this game
jmp AutoChamber_Ret // back to warband 1.158 meanwhile that 'other' routine is chambering in his swing direction
}
}
// edited found a faster version
But I do not know how to implent it. I tried to paste it in Visual Basic c++ but got some Errors.
That's assembly, not C++.
-
So, thanks to MrMedics nice code, I have a light in the dark:
__declspec(naked) void AutoChamber()
{
__asm
{
// seeing as we are here he is in a attack and swinging
pushad
mov edx,[esp+10] // direction of the enemy swing.
mov dword ptr AttackDirection,edx // direction my guy will chamber
popad
mov edx,[esp+0x10] // lets restore the old code and go back in to this game
jmp AutoChamber_Ret // back to warband 1.158 meanwhile that 'other' routine is chambering in his swing direction
}
}
// edited found a faster version
But I do not know how to implent it. I tried to paste it in Visual Basic c++ but got some Errors.
That's assembly, not C++.
c++ with inline asm
-
So I can't find it because i have a problem:
0 = ?
1 = ?
2 = right swing
3 = ?
-
A powerful tool is to search/sieve for unknown variables. The fact that you know that right is 2 should speed things up.
-
So I can't find it because i have a problem:
0 = ?
1 = ?
2 = right swing
3 = ?
0 = top
1 = lunge
2 = right swing
3 = left
Note sure though, with some testing you should get it.
-
So I can't find it because i have a problem:
0 = ?
1 = ?
2 = right swing
3 = ?
0 - down
1 - left
2 - right
3 - up
-
So i made a code in c++ with help of those two websites (thanks mrmedic) and it don't show up errors. It will just say that mb_warband has no debugginformation or something like that.
So I want someone of those high-master-coders to check it rather it will work or not or i forgot something or some tips.
But i am not sure if i should publish the code (guest)
-
So i made a code in c++ with help of those two websites (thanks mrmedic) and it don't show up errors. It will just say that mb_warband has no debugginformation or something like that.
So I want someone of those high-master-coders to check it rather it will work or not or i forgot something or some tips.
But i am not sure if i should publish the code (guest)
I was going to send you a message (for some reason I can't send or reply to any messages) about discussing the coding since we (as far as I understand) both don't have that much experience but are both willing to learn, but I guess I'll just have to keep "working like normal".
-
So I can't find it because i have a problem:
0 = ?
1 = ?
2 = right swing
3 = ?
0 - down
1 - left
2 - right
3 - up
well done , you can use cheat engine..
(http://oi61.tinypic.com/30ijlfa.jpg)
have a nice day :icon_laugh
-
I was 100% sure that this smartass will reply to my helpfull comment...
You said that you will ruin the game, that you will make hacks that I said that are impossible (like money hack) and many many more lies... Yep...it's pointless to talk to you.
-
I was 100% sure that this smartass will reply to my helpfull comment...
You said that you will ruin the game, that you will make hacks that I said that are impossible (like money hack) and many many more lies... Yep...it's pointless to talk to you.
your anti cheat :smile
(http://oi61.tinypic.com/30ijlfa.jpg)
problum fish .. how many game keys you offering me this time to stop hacking warband lel
pm me and we can discuss prices.
btw make sure you have a paypal account.
-
I was 100% sure that this smartass will reply to my helpfull comment...
You said that you will ruin the game, that you will make hacks that I said that are impossible (like money hack) and many many more lies... Yep...it's pointless to talk to you.
stop it. MrMedic is a good coder. No need of insulting other people because they can code.
-
I was 100% sure that this smartass will reply to my helpfull comment...
You said that you will ruin the game, that you will make hacks that I said that are impossible (like money hack) and many many more lies... Yep...it's pointless to talk to you.
stop it. MrMedic is a good coder. No need of insulting other people because they can code.
drainenergy has much love for us lol
-
So my Code. It wont work however. Can someone tell me what I'm doing wrong. Worked hard for this (Even though its a piece of sh*beeb* code.
//this is the main.cpp used for the dll. I have no header file or etc. Just the main.cpp
#include <windows.h>
#include <TlHelp32.h>
#include <fcntl.h>
#include <stdio.h>
#include <io.h>
DWORD AttackDirection = -1; //since he wil start "attacking" with nothing (stand stil)
DWORD AutoChamberAddy = 0x004F6C27; //found this with the ebx 0 1 2 3 method. Clicked "what writes to the address
DWORD AutoChamber_Ret = 0x004F6C2B; //though my code is 4 lines, i decided to move on after 4 lines
//the basic code
__declspec(naked) void AutoChamber()
{
__asm
{
pushad
mov edx,[esp+10] // direction of the enemy swing
mov dword ptr AttackDirection,edx // direction I will chamber (Attack Direction) is replaced with edx (enemys attack direction)
popad
mov edx,[esp+0x10] // restoration of enemy swing
jmp AutoChamber_Ret //don't know if this works? :D
}
}
Just to say, no exe just a dll injected with cheat engine (later tried than with winject). Shows that its succsesfully injected, but won't change anything, if i go to the memory view of this adress 004F6C27
-
[Hidden post: You need reply to this topic to see it.]
So my Code. It wont work however. Can someone tell me what I'm doing wrong. Worked hard for this (Even though its a piece of sh*beeb* code.
//this is the main.cpp used for the dll. I have no header file or etc. Just the main.cpp
#include <windows.h>
#include <TlHelp32.h>
#include <fcntl.h>
#include <stdio.h>
#include <io.h>
DWORD AttackDirection = -1; //since he wil start "attacking" with nothing (stand stil)
DWORD AutoChamberAddy = 0x004F6C27; //found this with the ebx 0 1 2 3 method. Clicked "what writes to the address
DWORD AutoChamber_Ret = 0x004F6C2B; //though my code is 4 lines, i decided to move on after 4 lines
//the basic code
__declspec(naked) void AutoChamber()
{
__asm
{
pushad
mov edx,[esp+10] // direction of the enemy swing
mov dword ptr AttackDirection,edx // direction I will chamber (Attack Direction) is replaced with edx (enemys attack direction)
popad
mov edx,[esp+0x10] // restoration of enemy swing
jmp AutoChamber_Ret //don't know if this works? :D
}
}
you need to intercept that adress and sent it to 'your' function ( hook the code to point to 'your' code )
your allmost there now
:icon_thumbsup well done :icon_biggrin2
-
But won't work :D
-
I won't offer you anything...because even if i'll give you real money, you still wouldn't stop...
You will see my powers when you will release your next hack....most of the players here will complain that they are banned from servers, etc... It's your move...it's your choice...
Edit: @troll I never said that he is not a good coder...i actually respecteD him a while ago, but I start hating him because most of the time he talk through one's hat.
-
I won't offer you anything...because even if i'll give you real money, you still wouldn't stop...
You will see my powers when you will release your next hack....most of the players here will complain that they are banned from servers, etc... It's your move...it's your choice...
i told you all he was anticheat and now he has just proven it. :smile
-
I won't offer you anything...because even if i'll give you real money, you still wouldn't stop...
You will see my powers when you will release your next hack....most of the players here will complain that they are banned from servers, etc... It's your move...it's your choice...
love you , you love me? :icon_laugh
i told you all he was anti cheat lel i can spot them a mile away :smile
Lier....my modified exe stayed up for more than 2 months...
-
cry more it looks ace on the screenshots lol :icon_laugh
-
cry more it looks ace on the screenshots lol :icon_laugh
Just release one hack for warband and you will see...
btw I am not doing what you are doing (crying) :icon_laugh :icon_laugh
-
Can someone tell me why this wont work? :icon_rolleyes2
-
Can someone tell me why this wont work? :icon_rolleyes2
re read my post in reply to you
-
cry more it looks ace on the screenshots lol :icon_laugh
Just release one hack for warband and you will see...
btw I am not doing what you are doing (crying) :icon_laugh :icon_laugh
lol im not crying , far from it , what im actually doing is trolling you ... why .. because i can .. why can i ? .. because your intellectually inferior to me.
you were born with it , accept it .. or if you wish to blame somebody then blame your parents. :icon_laugh
-
I know this will end in a locked topic :icon_laugh :icon_laugh :icon_laugh :icon_laugh
-
ahahah it allways does :icon_laugh me v the haters/anti cheaters i allways win they allways fuck off lol
because im so good at game hacking i just sit and troll them knowing what i know and know they dont know what i know.
so their opinion doesn't matter but i enjoy the troll element so i reply to their inane drivel.
i have always got a hack , they haven't , that's what its all about , its a game hacking forum after all. :icon_laugh
-
cry more it looks ace on the screenshots lol :icon_laugh
Just release one hack for warband and you will see...
what will i see... you getting upset fish?
why dont you go for a ride in your friends BENZ lel :icon_laugh
-
So now what if i write after "mov dword ptr AttackDirection,edx"
just
"call AutoChamberAddy".
Or am I thinking in the wrong direction? :icon_teehee
-
what im actually doing is trolling you ...
(https://2.bp.blogspot.com/-WgfRH9zfkdY/Ub6mY65J3NI/AAAAAAAAX1M/C5FgqPLMNk8/s1600/shatner2.gif)
-
what im actually doing is trolling you ...
(https://2.bp.blogspot.com/-WgfRH9zfkdY/Ub6mY65J3NI/AAAAAAAAX1M/C5FgqPLMNk8/s1600/shatner2.gif)
"Twilight Zone" Nightmare at 20,000 Feet
remake was just as good
(http://img3.wikia.nocookie.net/__cb20121219005719/villains/images/5/5a/Twilight-zone-the-movie-gremlin.jpg)
https://www.youtube.com/watch?v=WNNy172zofk
full episode of me pwning drainenergy :icon_laugh
-
Will this work? :icon_biggrin2
-
DWORD AutoChamber_Ret = 0x004F6C2B; //though my code is 4 lines, i decided to move on after 4 lines
What is this address?
-
DWORD AutoChamber_Ret = 0x004F6C2B; //though my code is 4 lines, i decided to move on after 4 lines
What is this address?
Well I thought if i have 4 lines of code, i will return 4 lines After the code. If i would jump back again to the First line of my code, i would get a loop. However my code wont work But mrmedic said i'm close to finish the code. But i have No clue what i should write to make it Hook at my found address.
-
https://www.youtube.com/watch?v=KUlvcdii69o&feature=youtu.be
-
Instead of Posting Videos you Could help me... :icon_thumbsup
-
this is too funny. He admits hes an anti-cheat..yet there is room for speculation...? LMAO what a tosser.
-
Man i'm so close just don't know how to hook it...DA HECK... the call wont show up any errors. But is this the right :icon_biggrin2 :icon_biggrin2 :icon_biggrin2
-
So have overwritten my code :
//this is the main.cpp used for the dll. I have no header file or etc. Just the main.cpp
#include <windows.h>
#include <TlHelp32.h>
#include <fcntl.h>
#include <stdio.h>
#include <io.h>
#define FunctionCall 0x004F6C27
DWORD AttackDirection = 0x004DF76A; //same like the one under it "what writes to the address" this is my attack direction
DWORD AutoChamberAddy = 0x004F6C27; //found this with the ebx 0 1 2 3 method. Clicked "what writes to the address
DWORD AutoChamber_Ret = 0x004F6C2B; //though my code is 4 lines, i decided to move on after 4 lines
DWORD myfunc = FunctionCall;
//the basic code
__declspec(naked) void AutoChamber()
{
__asm
{
call dword ptr [myfunc]; //maybe this will tell where to hook???
pushad
mov edx,[esp+10] // direction of the enemy swing
mov dword ptr AttackDirection,edx // direction I will chamber (Attack Direction) is replaced with edx (enemys attack direction)
call AutoChamberAddy //don't know why
popad
mov edx,[esp+0x10] // restoration of enemy swing
jmp AutoChamber_Ret //don't know if this works? :D
}
}
-
https://www.youtube.com/watch?v=fLqDoz_W8VY This guy probably got autochamber long time ago or he is just super good.
-
Stop Posting Videos about autochamber. Noone asked for them. You Could help developing thr code instead
-
Looks good
-
Has anyone suggestions how to make the code work?
-
Has anyone suggestions how to make the code work?
I'm even having a bit of trouble understanding your code, but of course if anything comes to mind I'll let you know :p
-
Skip the CPP/Asm stuff to begin with and start easy with TMK or similar. Its a more robust solution if you aren't experienced with cpp, less things can go wrong.
-
Troll your not calling the code.
youve found the correct offsets but you need to
hook the game and call the routine mid function.
at the moment the codes just sitting there doing nothing, if you dont call it it will never execute.
eq.. jmp AutoChamber() or call AutoChamber() and ret
did a quick google and
void CopyBuffer(BYTE *Buffer, int Size, DWORD *Address)
{
DWORD pPrevious = 0;
VirtualProtect(Address, Size, PAGE_EXECUTE_READWRITE, &pPrevious);
memcpy(Address, Buffer, Size);
VirtualProtect(Address, Size, pPrevious, &pPrevious);
}
//-------------------------
void SetupHook(DWORD Function, DWORD Hook, int Size)
{
Hook = Hook - Function - 5;
BYTE bHook[4];
memcpy(bHook,(void*)&Hook,4);
BYTE Buffer[10];
memset(Buffer,0x90,10);
Buffer[0] = 0xE9;
Buffer[1] = bHook[0];
Buffer[2] = bHook[1];
Buffer[3] = bHook[2];
Buffer[4] = bHook[3];
CopyBuffer(Buffer, Size, (DWORD*)Function);
}
looking at the ^ code there it would be something like
SetupHook((warband exe etc +youroffset ),(DWORD)AutoChamber,5);
... your going to have to do some tutorials and do some language course's troll i think this is way over your head and is probably more confusing than helping but i thought id show you the way to go just incase you needed the push in the right direction, good luck.
-
Skip the CPP/Asm stuff to begin with and start easy with TMK or similar. Its a more robust solution if you aren't experienced with cpp, less things can go wrong.
Any alternatives to TMK? Won't run on W7.
-
Skip the CPP/Asm stuff to begin with and start easy with TMK or similar. Its a more robust solution if you aren't experienced with cpp, less things can go wrong.
Any alternatives to TMK? Won't run on W7.
spiro , ollydbg , tsearch , cheatengine , artmoney
http://memoryhacking.com/feature.php
can codecave out of the box.
eg.
Specify a code-cave address, or let Memory Hacking Software find or allocate one for you.
Memory Hacking Software automatically adds the JMP to the code cave.
Adding the JMP to the code cave causes some instructions in the original code to be overwritten, but these are automatically moved to the code cave too, with your choice to put them at the beginning or end.
The JMP back to the original code is automatically added for you.
Injections can be set to load automatically when a process is opened.
-
Skip the CPP/Asm stuff to begin with and start easy with TMK or similar. Its a more robust solution if you aren't experienced with cpp, less things can go wrong.
Any alternatives to TMK? Won't run on W7.
spiro , ollydbg , tsearch , cheatengine , artmoney
http://memoryhacking.com/feature.php
can codecave out of the box.
eg.
Specify a code-cave address, or let Memory Hacking Software find or allocate one for you.
Memory Hacking Software automatically adds the JMP to the code cave.
Adding the JMP to the code cave causes some instructions in the original code to be overwritten, but these are automatically moved to the code cave too, with your choice to put them at the beginning or end.
The JMP back to the original code is automatically added for you.
Injections can be set to load automatically when a process is opened.
Thanks. Gonna play around with this for a 'lil :)
-
Have 3 questions
1. BYTE Buffer[10]; -what does it exactly do and why 10?
2. memset(Buffer,0x90,10); - 0x90 ?
3. Buffer[0] = 0xE9; - 0xE9
I think you are right. This is a bit to hard for me. But I thaught I was so close to this hack... :icon_sad2
Ok so BYTE should be something like DWORD just in 8 bit style. But the ten?
-
hook the game and call the routine mid function.
at the moment the codes just sitting there doing nothing, if you dont call it it will never execute.
eq.. jmp AutoChamber() or call AutoChamber() and ret
But I wrote call AutoChamber. Maybe it was on the wrong place. But in every other code the call is directly at the end of the code. And the under it is a ret.
-
It's hard for you because you rush right into the middle of the book, instead of starting from page one. ;)
Looks like a new TMK is needed, it's a lot of work though.
I think there's complete Delphi and/or C++ sourcecode either in posts or in the DL section. Inline asm is powerful, but a natural start would be to write opcodes. Then when you see the benefits you can proceed to make things more compliated.
I prefer Delphi for trainers because it's RAD-friendly. It's a bit like TMK once you have the code foundation.
-
the point in which the code should be intercepted is directly related to the auto block function , find that , divert the code to your routine and you will have a working auto chamber with the code posted.
it also can be done 2 other ways but the method that i posted may be patched in a future update so use it if/while you can.
-
I dobt want it to be released. Cuz it would be spoonfeeding. But I have no clue of that hook thingy. The hook code was so hard and that call jmp i dont know where exactly to write that. :icon_sad2
-
Interesting i need to make me one of these :icon_teehee
-
the point in which the code should be intercepted is directly related to the auto block function , find that , divert the code to your routine and you will have a working auto chamber with the code posted.
it also can be done 2 other ways but the method that i posted may be patched in a future update so use it if/while you can.
I don't think warband will be seeing any future patches after 1.158. They are concentrating on Bannerlord.
-
I dobt want it to be released. Cuz it would be spoonfeeding. But I have no clue of that hook thingy. The hook code was so hard and that call jmp i dont know where exactly to write that. :icon_sad2
ive released an auto chamber hack along with aimbot and some other things like slow motion etc ,its in another thread with game killer in the title.
-
:c cant find out how to inject it
-
very nice :smile
-
This code means nothing with no real offset.(Just saying so you guys won't get false hopes).
It's some simple inline asm.
The hooking is a simple jump routine and a retn.
0xE9 - Op code of a jump.
0x90 - > NOP.
First byte is the jmp type.
The next 4 is the address of the function.
jmp ourFunc
-
https://www.youtube.com/watch?v=2CY_NBSwcWg
C++ Mid Function Hooking/Codecaving Tutorial
-
What a hidden post?
-
Something you cant see unless you have 10 posts :icon_thumbsup
-
Need 10 posts to see this download ?
-
I'm sure there is no download, just a youtube link :icon_rolleyes2
-
I'm sure there is no download, just a youtube link :icon_rolleyes2
uHH, SORRY, WAS HAVING few tabs open on this forum and made a reply in the wrong one.
-
Good to see. #10posts
-
Thanks
-
Thanks MrMedic
-
:icon_devil :icon_devil
-
Cool
-
I don't understand it that much. :icon_magician
-
very cool
-
So do you have a download for it or...
-
wow
-
wouuld be awesome to have for napoleonic dlc
-
please stop pming me asking me for unlock keys i will post one when i decide to ,far too many to read and its making it difficult to keep in touch with people through pm.
there is a sticky , read it.
thanks.
-
:icon_laugh yeah fuck off spammers,You make all my incoming messages delayed :icon_shifty
-
HOW ABOUT OYU FUCK OFF FRIENDS