Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[TUT] How to make a simple hack for just about any game!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
xXxoSmxXx
How do I cheat?
Reputation: 0

Joined: 09 Jun 2010
Posts: 4

PostPosted: Tue Aug 17, 2010 4:23 pm    Post subject: [TUT] How to make a simple hack for just about any game! Reply with quote

What you need:
1.) Microsoft Visual Basic 6.0
2.) Any video game. Not a flash game. (CSS, UrT, etc)
3.) Cheat Engine

If you do not have visual basic 6.0, you can download it here:
i'm an idiot
(someone fix link please)


Now, if you already have vb 6.0, we can begin!

First, open up any game you want. For example, CSS.
Minimize it, and open Cheat Engine.
In Cheat Engine, select a process. In this case, we'll be selecting "hl2.exe".

Now, in CSS, start a game. No bots, just yourself.
In-game, open your console! To do this, you need to press "`" or "~".
Type in "sv_cheats 50"
When you're done with that, go back into Cheat Engine, scan for the value "50".
A lot might come up, so you need to go back in-game, back into the console, and type in "sv_cheats 60".
Once more go into Cheat Engine. This time you'll be scanning for the value 60.
There should be no more than 1 or 2 values left.
Double click the values, so they go into the box at the bottom of Cheat Engine.
Right click the value, and click "Copy".
Now, go to: Start>Run>notepad.exe
In notepad, right click, and press "Paste"
You will see something like this:
Code:
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <Description>No description</Description>
      <Address>[b]000AC4B4[/b]</Address>
      <Type>2</Type>
    </CheatEntry>
  </CheatEntries>
</CheatTable>


You want to grab the ADDRESS.

Now this is where parts get tricky.
You can close the game, and cheat engine from here.
Open visual basic 6.0, create a standard exe.
Pay very close attention to this part.
Go to "Project">"Add Module"

I will provide you with everything that goes into the module HERE:

Code:

Public Const PROCESS_ALL_ACCESS = &H1F0FFF
Dim f1holder As Integer
Dim timer_pos As Long

Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal SomeValueIsStoredHere As Long, lpdwProcessId As Long) As Long
Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
Public 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 Function WriteALong(TheGame As String, TheAddress As Long, ThisIsTheValue As Long)
Dim SomeValueIsStoredHere As Long
Dim SomeValueIsStoredHereToo As Long
Dim SomeValue As Long
SomeValueIsStoredHere = FindWindow(vbNullString, TheGame)
GetWindowThreadProcessId SomeValueIsStoredHere, SomeValueIsStoredHereToo
SomeValue = OpenProcess(PROCESS_ALL_ACCESS, False, SomeValueIsStoredHereToo)
If (SomeValue = 0) Then
    Exit Function
End If
WriteProcessMemory SomeValue, TheAddress, ThisIsTheValue, 4, 0&
CloseHandle hProcess
End Function

Public Function ReadALong(TheGame As String, TheAddress As Long, TheValue As Long)
Dim SomeValueIsStoredHere As Long
Dim SomeValueIsStoredHereToo As Long
Dim SomeValue As Long
SomeValueIsStoredHere = FindWindow(vbNullString, TheGame)
GetWindowThreadProcessId SomeValueIsStoredHere, SomeValueIsStoredHereToo
SomeValue = OpenProcess(PROCESS_ALL_ACCESS, False, SomeValueIsStoredHereToo)
If (SomeValue = 0) Then
    Exit Function
End If
ReadProcessMem SomeValue, TheAddress, TheValue, 4, 0&
CloseHandle hProcess
End Function

Public Function ReadAFloat(TheGame As String, TheAddress As Long, TheValue As Single)
Dim SomeValueIsStoredHere As Long
Dim SomeValueIsStoredHereToo As Long
Dim SomeValue As Long
SomeValueIsStoredHere = FindWindow(vbNullString, TheGame)
GetWindowThreadProcessId SomeValueIsStoredHere, SomeValueIsStoredHereToo
SomeValue = OpenProcess(PROCESS_ALL_ACCESS, False, SomeValueIsStoredHereToo)
If (SomeValue = 0) Then
    Exit Function
End If
ReadProcessMem SomeValue, TheAddress, TheValue, 4, 0&
CloseHandle hProcess
End Function

Public Function WriteAFloat(TheGame As String, TheAddress As Long, ThisIsTheValue As Single)
Dim SomeValueIsStoredHere As Long
Dim SomeValueIsStoredHereToo As Long
Dim SomeValue As Long
SomeValueIsStoredHere = FindWindow(vbNullString, TheGame)
GetWindowThreadProcessId SomeValueIsStoredHere, SomeValueIsStoredHereToo
SomeValue = OpenProcess(PROCESS_ALL_ACCESS, False, SomeValueIsStoredHereToo)
If (SomeValue = 0) Then
    Exit Function
End If
WriteProcessMemory SomeValue, TheAddress, ThisIsTheValue, 4, 0&
CloseHandle hProcess
End Function


All you need to do, is copy and paste the code into the module.

You're almost done!
Now go back to your form, create a button, rename the caption to whatever you want, and double click it.
Type in:
Code:

Call WriteALong("Counter-Strike: Source", &H, 1)


Now, do you see the "&H"?
Go into notepad, where you pasted the address.
Paste the address after "&H"
And there you go!
Debug your program, and test it out!
------
I just showed you how to make a simple sv_cheats 1 bypass for counter-strike source.
You can do many other things with this, such as create a wireframe wallhack for css.
-------
This is mainly useful for first person shooters.

If you had any problems with this tutorial, let me know, and I will send you the source.

I hope this helped!

If you leech, please give creds to me!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Aug 17, 2010 4:29 pm    Post subject: Re: [TUT] How to make a simple hack for just about any game! Reply with quote

xXxoSmxXx wrote:
If you leech, please give creds to me!


You didn't write anything in this 'tutorial'. This code is older then dirt and has been used so many times. Not to mention your post is a rip of like 30 other topics of the same thing.

Similar copies:
http://www.gamerstools.net/foros/showthread.php?1426-Tutorial-Make-your-first-hack-in-Visual-Basic-6-%28and-a-begin-in-CE%29-%28for-noobs%29&s=0d4715f6d03b9cdc4fb9c4e0b7fe1104

http://www.sythe.org/showpost.php?s=bbd8bfe91b3485d82f6d1296ae9ed5c9&p=5225330&postcount=5

http://www.myfpscheats.com/topic60761.htm?sid=818d8e1696014d15613aafe2e0d58f96

The list continues on for ages as this code is nothing new.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Tue Aug 17, 2010 4:46 pm    Post subject: Reply with quote

Also, Visual Basic sucks balls. In C++ you can just include a header file and sometimes a library file, and you're able to use all the functions in the header without declaring them. Good luck spending 1 hour declaring functions that you're going to use on your app.
Back to top
View user's profile Send private message MSN Messenger
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Tue Aug 17, 2010 6:26 pm    Post subject: Reply with quote

Barring Excel macro creation I don't use VB at all.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
TROLOLOLOLOLOLOLOLOLOLOLO
Expert Cheater
Reputation: -1

Joined: 27 Dec 2009
Posts: 100

PostPosted: Mon Aug 23, 2010 3:22 pm    Post subject: Reply with quote

LOL!

OP can't be serious. Visual Basic to use memory cheats? I think not Rolling Eyes
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Aug 23, 2010 6:11 pm    Post subject: Reply with quote

CometJack wrote:
LOL!

OP can't be serious. Visual Basic to use memory cheats? I think not Rolling Eyes


Any language that can access the systems API can be used to write cheats. Which VB6 can.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
KryziK
Expert Cheater
Reputation: 3

Joined: 16 Aug 2009
Posts: 199

PostPosted: Mon Aug 23, 2010 10:46 pm    Post subject: Reply with quote

Not to mention sv_cheat bypassing is detectable, and memory editing for processes that use VAC is becoming detectable as well.
Back to top
View user's profile Send private message
Maes
Advanced Cheater
Reputation: 10

Joined: 09 Apr 2009
Posts: 50

PostPosted: Mon Aug 23, 2010 11:01 pm    Post subject: Reply with quote

Thanks alot.
Back to top
View user's profile Send private message
TROLOLOLOLOLOLOLOLOLOLOLO
Expert Cheater
Reputation: -1

Joined: 27 Dec 2009
Posts: 100

PostPosted: Mon Aug 23, 2010 11:58 pm    Post subject: Reply with quote

Wiccaan wrote:
CometJack wrote:
LOL!

OP can't be serious. Visual Basic to use memory cheats? I think not Rolling Eyes


Any language that can access the systems API can be used to write cheats. Which VB6 can.


I didn't say it couldn't be done, I implied it's inefficient to say the least. Why use VB6 rather than C or C++ and have direct memory access?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Tue Aug 24, 2010 5:25 am    Post subject: Reply with quote

CometJack wrote:
Wiccaan wrote:
CometJack wrote:
LOL!

OP can't be serious. Visual Basic to use memory cheats? I think not Rolling Eyes


Any language that can access the systems API can be used to write cheats. Which VB6 can.


I didn't say it couldn't be done, I implied it's inefficient to say the least. Why use VB6 rather than C or C++ and have direct memory access?


what's so direct about WriteProcessMemory? maybe if you write a dll, but that's not what this is.
Back to top
View user's profile Send private message
Fantasy
I post too much
Reputation: 13

Joined: 29 Jul 2007
Posts: 3113

PostPosted: Tue Aug 24, 2010 5:33 am    Post subject: Reply with quote

No-one noticed the illegal torrent link? T.T
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Tue Aug 24, 2010 8:22 am    Post subject: Reply with quote

I did, never saw anything in rules about posting torrent links to warez.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Tue Aug 24, 2010 8:34 am    Post subject: Reply with quote

AhMunRa wrote:
I did, never saw anything in rules about posting torrent links to warez.

Fail

§9. Thou shalt not post porn or warez, nor anything about them.
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Wed Aug 25, 2010 2:16 am    Post subject: Reply with quote

Give him a break guys, I think 3 comments were enough, give a better welcome to new members..
Back to top
View user's profile Send private message MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Aug 25, 2010 3:58 am    Post subject: Reply with quote

Fantasy wrote:
No-one noticed the illegal torrent link? T.T


No, I missed it.

Do report them if you see them. Warez is not allowed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites