[Tutorial]Making an Integer Unchangable[Vb.net]

Posts 1–13 of 13 · Page 1 of 1
[Tutorial]Making an Integer Unchangable[Vb.net]
Hi! Today im going to show you how to keep those pesky hackers away !!
(FOR MORE INFO READ THE DETAILS AFTER EVERY LINE OF CODE)

Picture:


Ok first your gonna want to lay down some Dims!
(PUT THIS UNDER "Public Class Form1")

Code:
    
Dim Integer1 As Integer = 0 'The Base integer
Dim Integer2 As Integer = Integer1 * 2 'The Base integer Multiplied by 2 to make it harder to crack
Dim AllowChange As Boolean = False 'if True you will be free to change the number
Dim oldNumber As Integer = 0 'The Number that the hacker is trying to change.
Dim RandomNumbers As New Random() 'This Will be the base for generating a random number!
Ok Now if you ever wanted to change the Base integer this is what you will need to do so your program doesn't detect a force change.
(YOU CAN ADD THIS TO A BUTTON TO MAKE A RANDOM NUMBER)

Code:
oldNumber = Integer1 'So We know what to change the number back to
allowChange = True 'Allow us to change the variable
Integer1 = RandomNumbers.Next(0, 100) 'Change the number (Minumum random, Max Random)
allowChange = False 'Stop anybody from changing the integer
Integer2 = Integer1 * 2 'Set the Multiplied Variable
Now for the Detection, your going to want to make a timer for this and set the interval to 1 milisecond.
(ALWAYS HAVE THE TIMER ENABLED FOR FULL PROTECTION)

Code:
Label2.Text = Integer1 'Refresh the number
If Integer1 = Integer2 / 2 = False Then 'If the number is changed then...
 If allowChange = False Then 'If it is forced then...
Integer1 = oldNumber 'Change the number back to the original
Integer2 = Integer1 * 2 'Reset integer2 back to the original * 2
MsgBox("Stop Trying...") 'Give them a message xD
End If 'End the second If statement
End If 'End the first If statement
And your done! I've provided the EXE file in the atachment

Scans:
1: cant hack me.exe - Jotti's malware scan
2: VirusTotal - Free Online Virus, Malware and URL Scanner
cant hack me.rarattachment deleted · 11 downloads before removal
EXE file needs screeny.
aight 1 sec

EDIT:
Pictures up!
const int UnchangeableInteger = 0;

Also, 1ms is a bit of an overkill. Since the timer control is executed on the UI thread, you may find your UI lagging, especially if you do 50 of these.
Quote Originally Posted by freedompeace View Post
const int UnchangeableInteger = 0;

Also, 1ms is a bit of an overkill. Since the timer control is executed on the UI thread, you may find your UI lagging, especially if you do 50 of these.
const int UnchangeableInteger = 0;


Also, 1ms is a bit of an overkill. Since the timer control is executed on the UI thread, you may find your UI lagging, especially if you do 50 of these.
Unless I have a damn shitty computer, UI won't lag even if I use 200 -.-
Plus, you should just modify the integer values not label's text (to avoid possible lag) !!!


@OP: Nice, but has some flaws. Thanks for sharing
Quote Originally Posted by Hassan View Post


[QUOTED TEXT]



[QUOTED TEXT]

Unless I have a damn shitty computer, UI won't lag even if I use 200 -.-
Plus, you should just modify the integer values not label's text (to avoid possible lag) !!!


@OP: Nice, but has some flaws. Thanks for sharing
Why the facefloor? ._. I don't understand...

And, this is a simple program. If you increase the program's complexity, you may find yourself adding many more things into that operation O: Take a simple MSN client using C# - the backend / client component is 250,000 lines of code alone. Then you have your UI work ...
Quote Originally Posted by freedompeace View Post
Why the facefloor? ._. I don't understand...
1. that's not Vb syntax
2. then it can never change, though he apparently wants it to, just not crackable?
who would run 50 though? :P

EDIT:
And the point of this is to still be able to change the integer but not let anyone else using a memory editor such as cheat engine to change it.
Quote Originally Posted by consca View Post
who would run 50 though? :P

EDIT:
And the point of this is to still be able to change the integer but not let anyone else using a memory editor such as cheat engine to change it.
True true

Except, thing is... If you use a memory scanner, scanning it would result in 2 values being returned. If you change both of them, or just the single one that's being stored as the oldNumber, then the current number would be changed too /:

Big flaw?
@Freedom, I like you. But......I need you to refrain from attempting to take apart applications and every word of every member.

Essentially, all you have done in this section is troll it.

One Warning.

This is the VB.net section, Keep C++ and C# development discussions to their threads please.



@ Op, Moved to tuts'
1 Hr Redirect.



Thanks for all the input you guys have given me

Btw i've tested and i can't get around to changing it with cheatengine, if someone finds a crack to it please share

EDIT: Apearently the administrator whomoved the thread took a part of the title out, just so people are clear.. I want to still be able to change the integer.
Quote Originally Posted by consca View Post
Thanks for all the input you guys have given me

Btw i've tested and i can't get around to changing it with cheatengine, if someone finds a crack to it please share

EDIT: Apearently the administrator whomoved the thread took a part of the title out, just so people are clear.. I want to still be able to change the integer.

to hack it:

nop out command at 002C1B6A...number can be changed at will via CE
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us