Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 47
  1. #31
    Rulezzo's Avatar
    Join Date
    Feb 2007
    Posts
    20
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by jnrz View Post
    c++ is hard for people that is starting to learn programming...
    visual basic 6 should be easier, and you can create a GUI (windows) in less than 5 seconds, then u can easily add a command button or another control and put some code in there that will overwrite warrock's data section or code section.
    using WriteProcessMemory() windows API.
    jnrz i know vb 6.0 but i don't know how to use this API...

    this is the right declaration in the .bas file???

    Code:
    Private Const PROCESS_ALL_ACCESS = &H1F0FFF
    Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
    Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
    Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVallpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
    Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
    Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
    Private Declare Function ReadProcessMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
    Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
    Public Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Long) As Integer
    Public Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
    Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
    Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    And WriteAInt:
    Code:
    Public Sub WriteAInt(Address As Long, Value As Integer)
    Dim hwnd As Long, pid As Long, phandle As Long
    
    hwnd = FindWindow(vbNullString, "WarRock")
    If (hwnd <> 0) Then
            GetWindowThreadProcessId hwnd, pid
        phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
        If (phandle <> 0) Then
            WriteProcessMemory phandle, Address, Value, 2, 0&
        End If
        CloseHandle phandle
    Else
            MsgBox "Game Not Found. FUCKING N00b!", vbCritical, "FU©K Y0U"
    End If
    End Sub
    In the commandbutton: (scope address, value 1)
    Code:
    Private Sub Command1_Click()
    Call Memory.WriteAInt(&H9260E6, &H1)
    End Sub
    This code work for you?

    Srry 4 my bad english
    (plz send me a pm with your msn/mail or send me the working .bas file )

  2. #32
    Mikeck901323's Avatar
    Join Date
    Apr 2007
    Posts
    296
    Reputation
    9
    Thanks
    1
    nice tut!

  3. #33
    fir3killa9's Avatar
    Join Date
    May 2007
    Gender
    male
    Location
    asdasda
    Posts
    90
    Reputation
    10
    Thanks
    11

    hahah

    hhahahaahahaha
    Last edited by fir3killa9; 05-24-2007 at 02:15 PM.

  4. #34
    Billnkat's Avatar
    Join Date
    Feb 2007
    Location
    CA and WA
    Posts
    33
    Reputation
    10
    Thanks
    0
    I downloaded Bloodshed c++ and still cant figure it out. i read the help and some webpages on it. This is killing me. please reply and/or PM me. Id like to be able to make a trainer. Im 100% new to c++, any help would be appriciated.

  5. #35
    l0ngcat's Avatar
    Join Date
    Apr 2007
    Posts
    96
    Reputation
    13
    Thanks
    23
    WARROCK UPDATED, THE STAMINA ADDRESS IN THE TUTORIAL DOESN'T WORK ANYMORE

  6. #36
    fir3killa9's Avatar
    Join Date
    May 2007
    Gender
    male
    Location
    asdasda
    Posts
    90
    Reputation
    10
    Thanks
    11

    lol




    lol

  7. #37
    webtijn's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    168
    Reputation
    10
    Thanks
    3
    Quote Originally Posted by b00n View Post
    i'm learing idiot!
    It's hard to see the difference between a real noob, and a noob who is learning =')

  8. #38
    blackdrag0's Avatar
    Join Date
    May 2007
    Location
    Wow,this slot really got the space... I wonder where they think i live,In some odd longnamed Country
    Posts
    235
    Reputation
    11
    Thanks
    6

    Angry Help! I'm New!

    Quote Originally Posted by l0ngcat View Post
    Here is a tutorial teaching your the very basics of making a trainer, namely how to find a process and write shit into it at the correct address. what it doesn't cover is making a GUI-based (graphic user interface) trainer with hotkey hooks that work when the program is in the background.

    you need a C++ compiler, like MS Visual C++ or whatever, to compile the attached source code. copy it and save as OMFG_thanks_dude_for_this_tut.cpp or something.

    Code:
    /* --------- TUTORIAL: Making your first Trainer -------- */
    /* --------- by Anonymous - posted on mpgh.net   -------- */
    
    #include <windows.h>
    #include <conio.h>
    #include <dos.h>
    #include <tlhelp32.h>
    #include <stdio.h>
    
    
    int stamina;	// will store the stamina value
    
    bool dostamina = false;		// determines if user activated stamina freezing
    
    LPVOID stamina_addr =	(void*) 0x007F1110;		// memory address of the stamina value in the WarRock process
    
    void screen()	// output
    {
    	system("cls");	// clear the screen
    	printf("Hello World! This is my first WarRock trainer!  \n\n");
    	
    	if(dostamina) printf("[1] - freeze stamina [ENABLED]\n");	// if user enabled stamina freeze, let him know!
    	else printf("[1] - freeze stamina [disabled]\n");			// same if it's disabled
    }
    
    int main(int argc, char* argv[])
    {	
    	HANDLE hProcessSnap;	// will store a snapshot of all processes
    	HANDLE hProcess = NULL;	// we will use this one for the WarRock process
    	PROCESSENTRY32 pe32;	// stores basic info of a process, using this one to read the ProcessID from
    	
    	hProcessSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );	// make process snapshot
    
    	pe32.dwSize = sizeof( PROCESSENTRY32 );		// correct size
    
    	Process32First(hProcessSnap, &pe32);	// read info about the first process into pe32
    
    	do	// loop to find the WarRock process
    	{		
    		if(strcmp(pe32.szExeFile, "WarRock.exe") == 0)	// if WarRock was found
    		{
    			hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID);	// open it, assigning to the hProcess handle
    			break;	// break the loop
    		}
    	}
    	while(Process32Next(hProcessSnap, &pe32));	// loop continued until Process32Next deliver NULL or its interrupted with the "break" above
    
    	CloseHandle( hProcessSnap );	// close the handle (just fuckin do it)
    
    	if(hProcess == NULL)	// self explanatory tbh
    	{
    		printf("WarRock not found\n\n");
    		getch();	// wait for a key press. otherwise the app will just close so fast when the process is not found, you wont know wtf happened.
    	}
    	else
    	{
    		screen();	// print the display
    		
    		char key = ' ';	// make a key variable to store pressed keys
    		
    		while(key != VK_ESCAPE)	// loop until user presses Escape
    		{
    			
    			if(kbhit())		// if a key was pressed
    			{
    				key = getch();	// it is saved into "key"
    
    				switch(key)		// here the commands are handled depending on the key that was pressed
    				{				// case '1': ... break;  case '2': ... break; and so on
    				case '1':
    					dostamina = !dostamina;		// flip the dostamina value true<->false to enable/disable it
    					ReadProcessMemory(hProcess, stamina_addr, &stamina, 4, NULL);	// read the stamina value from the memory into the "stamina" variable
    					break;			
    				}
    
    				screen();	// print the display after each key press
    
    			}
    
    			if(dostamina)	// if stamina freeze is activated
    				WriteProcessMemory(hProcess, stamina_addr, &stamina, 4, NULL);	// write the stamina value that was saved before with the key press into memory
    		}
    
    		CloseHandle(hProcess);	// close the handle
    		
    	}
    
    	return 0;	// THE END
    }

    hello,

    can you help me i opened visual basics and i get this: (see the attachment)

    can anyone help me??

  9. #39
    l0ngcat's Avatar
    Join Date
    Apr 2007
    Posts
    96
    Reputation
    13
    Thanks
    23
    this is a c++ tutorial, not basic. also don't post bmp screenshots plz.

  10. #40
    Naeron's Avatar
    Join Date
    Feb 2007
    Posts
    163
    Reputation
    11
    Thanks
    6
    And pls dont quote the whole post.

  11. #41
    BlownUpBitch's Avatar
    Join Date
    May 2007
    Location
    closer then you think
    Posts
    139
    Reputation
    16
    Thanks
    13
    Go to the tut of visual basic, this is for C++

  12. #42
    I*Flux's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    0
    My Mood
    Amazed
    HI I just wanted to start, i have some knowledge about basics in c++ but not basics like your code that you gave us.I don't mean it negative but i just need one who would explain it to me very intensive i just want to know/hear some tips and want to know what hProcess is and LPVOID and so on... But by the way i understood a little bit of it
    P.S: Sry for my bad english im from Germany I hope you can help me

  13. #43
    Greythorne's Avatar
    Join Date
    Aug 2018
    Gender
    male
    Posts
    235
    Reputation
    71
    Thanks
    30
    thankyou! this proves to be extremely useful

  14. #44
    malloc84's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    28
    Reputation
    10
    Thanks
    8
    Very nice. I used this template for simple hack I did and it worked wonders. Cheers.

  15. #45
    avpgold's Avatar
    Join Date
    Dec 2018
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    0
    Thanks, I will try to apply this knowledge to some small projects.

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Writing your own Visual Basics (v5 or v6) Trainer
    By TheRedEye in forum Game Hacking Tutorials
    Replies: 29
    Last Post: 12-09-2013, 09:56 AM
  2. compile error :/ from [Writing your own C++ Trainer]
    By FantaBrause in forum C++/C Programming
    Replies: 7
    Last Post: 07-06-2009, 11:09 PM
  3. [Tutorial] Programming your own FSEK Virus
    By FluffyStuff in forum Spammers Corner
    Replies: 19
    Last Post: 07-17-2007, 07:12 PM
  4. Make your own Warrock Cross hairs!!
    By llvengancell in forum WarRock - International Hacks
    Replies: 3
    Last Post: 05-26-2007, 10:59 PM
  5. How to make your own radiostation?
    By nasir91 in forum General
    Replies: 3
    Last Post: 04-30-2007, 07:25 AM