Need some help [VB.NET]

12/29/2009 21:23 thenetherlands#1
Heey ppl
Im coding a loader for RSro for sharing on E*pvp
But I cant get something to work
I keep getting the error "please execute silkroad.exe""
so i injected this code :

WriteProcessMemory(SroProcessHandle, &H7697EC, &HEB, 1, 0)
I have the right address i guess
but I keep getting the same error :S
this is the Olly code
007697EC |. 75 1F JNZ SHORT sro_clie.0076980D

Can anyone tell me what im doing wrong ? ^^
12/29/2009 23:14 thenetherlands#2
BUMP
12/29/2009 23:39 InvincibleNoOB#3
There's no need to modify memory.

C#:
Code:
        [DllImport("kernel32.dll")]
        static private extern IntPtr CreateMutex(IntPtr lpMutexAttributes, bool bInitialOwner
        [DllImport("kernel32.dll", SetLastError = true)]
        [return: MarshalAs(UnmanagedType.Bool)]
        static extern bool CloseHandle(IntPtr hObject);

        private Process __SRClient;
        public IntPtr __Handle { get; private set; };

....

        private void Run(string path){
            IntPtr mut1 = CreateMutex(IntPtr.Zero, false, "Silkroad Online Launcher");
            IntPtr mut2 = CreateMutex(IntPtr.Zero, false, "Ready");

            ProcessStartInfo __info = new ProcessStartInfo();
            __info.FileName = path;
            __info.UseShellExecute = false;
            __info.WindowStyle = ProcessWindowStyle.Normal;
            __info.Arguments = "0 /23 0 1"; //0x17 for vsro //0x12 for isro
            __SRClient = Process.Start(__info);
            __Handle = __SRClient.Handle;
        }
Don't forget to call CloseHandle after you're done.

Avoid bumping in this section,only in black market.
12/30/2009 00:11 thenetherlands#4
Quote:
Originally Posted by InvincibleNoOB View Post
There's no need to modify memory.

C#:
Code:
        [DllImport("kernel32.dll")]
        static private extern IntPtr CreateMutex(IntPtr lpMutexAttributes, bool bInitialOwner
        [DllImport("kernel32.dll", SetLastError = true)]
        [return: MarshalAs(UnmanagedType.Bool)]
        static extern bool CloseHandle(IntPtr hObject);

        private Process __SRClient;
        public IntPtr __Handle { get; private set; };

....

        private void Run(string path){
            IntPtr mut1 = CreateMutex(IntPtr.Zero, false, "Silkroad Online Launcher");
            IntPtr mut2 = CreateMutex(IntPtr.Zero, false, "Ready");

            ProcessStartInfo __info = new ProcessStartInfo();
            __info.FileName = path;
            __info.UseShellExecute = false;
            __info.WindowStyle = ProcessWindowStyle.Normal;
            __info.Arguments = "0 /23 0 1"; //0x17 for vsro //0x12 for isro
            __SRClient = Process.Start(__info);
            __Handle = __SRClient.Handle;
        }
Don't forget to call CloseHandle after you're done.

Avoid bumping in this section,only in black market.
Thnx for your help
Im gonna try to translate this to Visual basic . net
What you gave is C#:P
Thnx anyway i will try to do what i can :)