The most simple code that will run ?

Posts 16–28 of 28 · Page 2 of 2
Quote Originally Posted by rabir007 View Post


Then how i would edit the memory with an external program ?
U wouldn't.
Quote Originally Posted by rkN View Post
U wouldn't.
He can with writeprocessmemory(pointer,offset)
Nem rossz
Not bad
Quote Originally Posted by rabir007 View Post


I think, if i convert to C# it will have very different working method, we'll see
@ramo

Thanks so much, but could be better in PM to prevent unwanted leeching...


---------- Post added 12-25-2012 at 12:01 AM ---------- Previous post was 12-24-2012 at 11:48 PM ----------

@sobasoba13

Some Question for the converting
What data type is "WINAPI"
I see it is a permission marker
in C# there are:
Code:
public - Accessible from everywhere

Example:
ClassName LoL = new ClassName()
LoL.PublicMethod();

static - The owner class isnt need to be declared to use...

Example:
ClassName.StaticMethod();

Static and public can be combined...

private - the opposite of public, the method only accessible from the owner class...
Can you tell me wich is the WINAPI ?


Wich data type is "LPVOID" its a void pointer ?

Also there is "HINSTANCE" i completely dont have idea what is this :/

I'm also completed the conversion, just need som information...
Thanks for help...
---------------------------------------------- Edit ------------------------------------------
So, if i did everything fine, here is the memory code, converted into C#
Code:
#region Pointer-ek
        public IntPtr WeaponMgr = (IntPtr)0xCB9984;
        #endregion

        #region Offset-ek
        public IntPtr NoReload =  (IntPtr)0xC38;
        #endregion

        void Memory ()
        {
            while ( true )
                {
                    if( GetModuleHandleA("CShell.dll") != null && GetModuleHandleA("ClientFx.fxd") != null )
                    {
                        IntPtr dw_CShell = (IntPtr)GetModuleHandleA("CShell.dll");
                        IntPtr dw_WeaponMgr = *(IntPtr*)(IntPtr.Add(dw_CShell, (int)WeaponMgr));
                        if(dw_WeaponMgr != null)
                        {
                            for (int i = 0; i < 746; i++)
                            {
                                IntPtr rWeapon = *(IntPtr*)(dw_WeaponMgr + 4 * i);
                                {
                                    if(rWeapon != null)
                                    {
                                        for (int y = 0; y < 9; y++)
                                        {
                                            *(float*)(IntPtr.Add(rWeapon, (int)NoReload)) = 0;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
        }
Quote Originally Posted by lolman963 View Post
Nem rossz
Not bad
Kösz, a kódok elvileg sikerült átalakítanom C#-ra, de mivel C#-ban nincs DllMain, nincs alapvető belépési pont a hack-hez, és nem tudom hogy a francba tudnám elindítani a routint Cf-ben...

Ahh Translate:
Ty, i think i could convert the code into C#, but because C# dont have DllMain, there is no default entry point to the hack, and i dont know, how the hell can i start the routine in Cf

Próbáltam játszadozni az injectorommal, de nem igazán jött össze a dolog...

I tryed to play with my injctor, but not success...
aszthittem hogy van dllmain LOL
i thinked that in c# is a dllmain LOL
Quote Originally Posted by rabir007 View Post


Kösz, a kódok elvileg sikerült átalakítanom C#-ra, de mivel C#-ban nincs DllMain, nincs alapvető belépési pont a hack-hez, és nem tudom hogy a francba tudnám elindítani a routint Cf-ben...

Ahh Translate:
Ty, i think i could convert the code into C#, but because C# dont have DllMain, there is no default entry point to the hack, and i dont know, how the hell can i start the routine in Cf

Próbáltam játszadozni az injectorommal, de nem igazán jött össze a dolog...

I tryed to play with my injctor, but not success...
Quote Originally Posted by lolman963 View Post
aszthittem hogy van dllmain LOL
i thinked that in c# is a dllmain LOL
Sajna nincs, :/ szal akk te tudsz hack-eket csinálni ? Van egy ötletem a probléma megoldására, de kell egy C++ Dll is hozzá...
en nem tudok
nezd meg a visitor messageket talan talaltam valamit

Quote Originally Posted by rabir007 View Post


Sajna nincs, :/ szal akk te tudsz hack-eket csinálni ? Van egy ötletem a probléma megoldására, de kell egy C++ Dll is hozzá...
@rabir007
you have two solutions:
1 - make it as an external exe (which wont work because xtrap will block it)
2 - find a way to make an entry point for your dll (i've already succeeded doing this, and might release it soon )
Quote Originally Posted by giniyat101 View Post
@rabir007
you have two solutions:
1 - make it as an external exe (which wont work because xtrap will block it)
2 - find a way to make an entry point for your dll (i've already succeeded doing this, and might release it soon )
You made C# DLL entry point ? Would you tell me how ?
Also i thinked about Bootstrapping but i need someone who make me the Bootstrap DLL in C++


---------- Post added at 09:35 PM ---------- Previous post was at 09:09 PM ----------

@lolman963
Szerinted működhet az első kommentben leírt, felettébb Thai-Paraszt módszer ?
Szimplán átnevezem a .exe-t .dll -re és működik ? Nem túl hihető, bár nem nagyon tudom hogy működnek a Managed Assembly-k..

assemblies - Can a C# .dll assembly contain an entry point? - Stack Overflow

GOOGLE TRANSLATE (I'm toooooooo lazy)
Quote Originally Posted by ramo View Post
C++ undetected base

#include < Windows.h >
#include < Process.h >

#define WeaponMgr 0xCB9984
#define NoReload 0xC38

void Memory ()
{
while ( 1 )
{
if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd"))
{
DWORD dw_CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD dw_WeaponMgr = *(DWORD*)(dw_CShell + WeaponMgr);
if(dw_WeaponMgr)
{
for (int i = 0; i < 746; i++)
{
DWORD rWeapon = *(DWORD*)(dw_WeaponMgr + 4*i);
{
if(rWeapon)
{
for (int y = 0; y < 9; y++)
{
*(float*)(rWeapon + NoReload) = 0;
}
}
}
}
}
UINT WINAPI Call(LPVOID)
{
_asm CALL Memory;
}

BOOL WINAPI DllMain ( HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
_beginthreadex(NULL, NULL, Call, NULL, NULL, NULL);
}
return TRUE;
}
u just given it to z8games so they can patch it -.-
Quote Originally Posted by _corn_ View Post


u just given it to z8games so they can patch it -.-
Thats true , i have another one , But it still works


#include < Windows.h >
#include < Process.h >

#define WeaponMgr 0xCB9984
#define NoReload 0xC38

void Memory ()
{
while ( 1 )
{
if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd"))
{
DWORD dw_CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD dw_WeaponMgr = *(DWORD*)(dw_CShell + WeaponMgr);
if(dw_WeaponMgr)
{
for (int i = 0; i < 746; i++)
{
DWORD rWeapon = *(DWORD*)(dw_WeaponMgr + 4*i);
{
if(rWeapon)
{
for (int y = 0; y < 9; y++)
{
*(float*)(rWeapon + NoReload) = 0;
}
}
}
}
}
UINT WINAPI Call(LPVOID)
{
_asm CALL Memory;
}

BOOL WINAPI DllMain ( HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
_beginthreadex(NULL, NULL, Call, NULL, NULL, NULL);
}
return TRUE;
}
Quote Originally Posted by Problem ? View Post


#include < Windows.h >
#include < Process.h >

#define WeaponMgr 0xCB9984
#define NoReload 0xC38

void Memory ()
{
while ( 1 )
{
if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd"))
{
DWORD dw_CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD dw_WeaponMgr = *(DWORD*)(dw_CShell + WeaponMgr);
if(dw_WeaponMgr)
{
for (int i = 0; i < 746; i++)
{
DWORD rWeapon = *(DWORD*)(dw_WeaponMgr + 4*i);
{
if(rWeapon)
{
for (int y = 0; y < 9; y++)
{
*(float*)(rWeapon + NoReload) = 0;
}
}
}
}
}
UINT WINAPI Call(LPVOID)
{
_asm CALL Memory;
}

BOOL WINAPI DllMain ( HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(hDll);
_beginthreadex(NULL, NULL, Call, NULL, NULL, NULL);
}
return TRUE;
}
As i said before, i already have my base...
Posts 16–28 of 28 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?