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 


[VB.net] How do you make a new integer type > than int64

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Mon Mar 16, 2009 12:55 pm    Post subject: [VB.net] How do you make a new integer type > than int64 Reply with quote

I'm using VB.net and the Int64 maxvalue is too small, I need one that can handle a maximum of int64^10, because I am making a brute forcer that will attempt to brute force server hash codes. Don't ask me why I just want it like that.
_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
iNoobHacker
Advanced Cheater
Reputation: 0

Joined: 05 Nov 2006
Posts: 99

PostPosted: Mon Mar 16, 2009 1:57 pm    Post subject: Reply with quote

You do know that int64, assuming you are talking about signed integer, can hold a maximum of 2^63-1 (2^63 numbers, 0 included), which is 9223372036854775807, which means the 10th power of it is 4.4555084156466750133735972424201e+189, which means there are:
4455508415646675013373597242420117818453694838130159772560668808816707086990958982033203334310070688731662890013605553436739351074980172000127431349940128178077122187317837794167991459381249! (factorial, which is n * (n-1) * ... * 3 * 2 * 1), which contains hundreds of thousands of digits, and that's only for signed int, as for unsigned int... (2^64-1)^20 contains 200 digits, imagine how many digits ((2^64-1)^10)! would contain.

Assuming you can calculate even 10^9 hashes a second, it'll take milions of bilions of years to calculate all possible values. which, by the way, I assume you calculate no more than 100 hashes a second.

So... good luck brute forcing.

_________________
"Two things are infinite: the universe and human stupidity, but I'm still not sure about the first one."


Last edited by iNoobHacker on Mon Mar 16, 2009 2:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Mon Mar 16, 2009 2:05 pm    Post subject: Reply with quote

Get some external library which can handle "big digits."

I know nothing about VB, but it's the same for all the languages with limits like this.

Move to Python if you want to avoid this problem.
Back to top
View user's profile Send private message
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Mon Mar 16, 2009 2:12 pm    Post subject: Reply with quote

Ahh, but I am brute forcing a number to test with that is "49223372036854775807" and I can't test it with an int64...
_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25806
Location: The netherlands

PostPosted: Mon Mar 16, 2009 5:04 pm    Post subject: Reply with quote

only one way to do it then, manually check if it's bigger

e.g split the value up into several pieces (e.g by using multiple 4 byte pointers that point to separate blocks of the large value)

and then check if the last part is bigger, if not, part before that, etc.. (also, if the parts before are smaller, stop checking, since it means it's smaller...)

with last part I mean the part that points to the last couple of bytes of the large value, assuming you're using the normal low-endian byte notation

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Jorg hi
I post too much
Reputation: 7

Joined: 24 Dec 2007
Posts: 2276
Location: Minnesota

PostPosted: Mon Mar 16, 2009 7:03 pm    Post subject: Reply with quote

Dark Byte wrote:
only one way to do it then, manually check if it's bigger

e.g split the value up into several pieces (e.g by using multiple 4 byte pointers that point to separate blocks of the large value)

and then check if the last part is bigger, if not, part before that, etc.. (also, if the parts before are smaller, stop checking, since it means it's smaller...)

with last part I mean the part that points to the last couple of bytes of the large value, assuming you're using the normal low-endian byte notation


Oh I get what you mean, I will make 2 int64 integers and and for the first one I'll start adding and once it is 999999999 or whatever then the second integer will be added by 1, and when I brute force it the forced value with be (int64 integer1 + int64 integer2).Then the first int64 will be reset to 0 thanks.

_________________
CEF will always stay alive.
Back to top
View user's profile Send private message
VolatileAce
Cheater
Reputation: 0

Joined: 19 Mar 2009
Posts: 30
Location: 0001001100110111

PostPosted: Sat Mar 21, 2009 7:40 pm    Post subject: Reply with quote

Don't know if this will be marked as spam but look up "BigInteger".

Also according to your goal, I would deem it impractical to "un-hash" hash functions because hashing is not encrypting, encryption would recover the original information after decryption. But the hash itself would "most likely not" contain any useful information of any means regarding the original information.

Hope it helps.
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
Page 1 of 1

 
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