C# BASE INCOMPLETE

Posts 1–14 of 14 · Page 1 of 1
C# BASE INCOMPLETE
I don't finish it yet ok??

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;



namespace cf
{
    public class hack
    {
        public const int WeaponPointer = 0x2A7E8;

        public const int Reload = 0x2424;


        void main()
        {

            while (true)
            {
                uint CShell = (uint)GetModuleHandleA("CShell.dll");

                uint Weapon = (uint)(CShell + WeaponPointer);

                bool weapon = false;

                float ReloadTime = 100.0f;

                if (weapon)
                {

                    for (int i = 0; i < 533; i++)
                    {

                        if (((uint)(((uint)(CShell + Weapon)) + (4 * i))) != null)

                            (float)(((uint)(((uint)(CShell + Weapon)) + (4 * i))) + Reload) = ReloadTime;

                    }


                }
            }      
      

      }

        private uint GetModuleHandleA(string p)
        {
            throw new NotImplementedException();
        }


        public void Hook()
        {

            if (GetModuleHandleA("CShell.dll") != null && GetModuleHandleA("ClientFx.fxd") != null) ;

        }

    }
}
lol i found semi 100% like that on web ! put a credit !
Quote Originally Posted by Dark Side View Post
lol i found semi 100% like that on web ! put a credit !
this code 100% by me I take a noob C++ base and make it in C#
Quote Originally Posted by proCODERXx View Post
this code 100% by me I take a noob C++ base and make it in C#
then give a credit !
Quote Originally Posted by Dark Side View Post
then give a credit !
shut up noob I don't leech its code 100% by me.
LOL i dont know anything of C# but it look easier than C++ ...
will not work.

.net dlls have no DllMain function or entry point. give up and save your self time.


Quote Originally Posted by b10821321 View Post
LOL i dont know anything of C# but it look easier than C++ ...
it will look so because your a dumb ass.
Quote Originally Posted by topblast View Post
will not work.

.net dlls have no DllMain function or entry point. give up and save your self time.




it will look so because your a dumb ass.
yes it has no DllMain so he need to modify his code:
1) using VirtualAllocEx to alloc some memory in crossfire.exe and fill it with "CShell.dll\0"

2) using GetModuleHandle to get the handle for kernel32.dll
3) using GetProcAddress to get the "GetModuleHandleA" starting address
4) using CreateRemoteThread to create remote thread
5) using WaitForSingleObject to wait until the thread finishes
6) using GetExitCodeThread to get the return value

LOL steps 1..6 equals "CShell = GetModuleHandle("CShell.dll");" in C++

7) loop until CShell.dll module handle is found
8) using ReadProcessMemory and WriteProcessMemory to write the float value 100.0f in correct offsets in while loop

LOOOOL learn c++ @proCODERXx
mmh a New Account, and someone with brains. i should say why not in a team?
if you have a noob acc, everyone said you r a leecher
but i dont know, why i shouldnt believe you? i believe you made it
they can call me a leecher see If i dont half kill the muda.
Quote Originally Posted by Skrillex View Post
leecher
he isn't a leecher
c++ is way more easier u just got to learn.
Jeez, I hate it when people say that a certain programming language is harder than the other. In reality, programming languages are simple you just have to learn the syntax. The hard part about programming isn't learning the language, it's the logic that you use to solve a problem.
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us