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 


And this is my first C# program

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Crackmes
View previous topic :: View next topic  
Author Message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Jul 24, 2007 8:08 am    Post subject: And this is my first C# program Reply with quote

I was thinking what I would make with C# and this came up.

I know this is not a hard crackme to crack, but can those who crack it explain how they did it? (this is how I learn)




ps i dont see shit in notepad.

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Tue Jul 24, 2007 9:28 am    Post subject: Reply with quote

sure ill crack it and tell u.

edit:omg whats the deal with crackme if u give the source?!
edit2: lol that is net programmed?!
cracking net progs is realy easy.
edit3: heres ur code, now i only need to understand it and i will crack ur crackme.
Code:
Private Shared Sub Main(ByVal args As String())
    Dim flag As Boolean = False
    Dim text As String = ""
    Do
        Console.WriteLine("Have a guess:")
        Dim text2 As String = Console.ReadLine
        [text] = ""
        Dim i As Integer
        For i = 65 To 70 - 1
            [text] = ([text] & DirectCast(i, Char))
        Next i
        flag = (text2 Is [text])
    Loop While Not flag
    Console.WriteLine(("The password is """ & [text] & """"))
    Console.ReadLine
End Sub


edit 4: ur pass is in this line:
[text] = ([text] & DirectCast(i, Char))
whats directcast?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Tue Jul 24, 2007 4:27 pm    Post subject: Reply with quote

My policy is "always give the source" and the password for the source file is identical to the crackme password, thus the source...

and yeah that's dot net programmed because that's at most, what the book starts with.

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Wed Jul 25, 2007 12:31 am    Post subject: Reply with quote

welll im realy bad at net programming and i read at the web that DirectCast convert an int\char\etc. to another format, but it work only if the data thats inside is at that format alredy, if not the program will crash.
for example if u got an int, but the data of this int is "a" so u can convert it to char with directcast. but if theres an int "i" that contain a number (i=65;i<70-1;i++) (im converting this to c cause thats the closest language to ur example that i know) and u directcast it to char, the program suppose to crash. i know that in c convering will int to char will make the char with the acsii value of the int.
for example i think 83 or around is the letter D
so lets say at the first time u open the program, i is 65,passowrd is nothing, and now
password=old pass(means nothing) &(& mean +?) convert i(i=int) to char (wich is illegal to be done with directcast, in this case Ctype should be used)
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 25, 2007 6:30 am    Post subject: Reply with quote

stacks string in a format which: "chr(65) + chr(66)..." until chr(70), which makes up an obvious password.


interestingly, since your decompiler shows stuff in VB.net, I actually understand your code more than mine...

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Wed Jul 25, 2007 6:39 am    Post subject: Reply with quote

.net decompilers can show the code in VB\c\c++\Jscript
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 25, 2007 6:48 am    Post subject: Reply with quote

I want that... lemme google
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Wed Jul 25, 2007 11:19 am    Post subject: Reply with quote

google "reflector"
its free, u only have to register some name (i just used "asd asd" cause it has to be 2 words)
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Jul 25, 2007 6:10 pm    Post subject: Reply with quote

Neat! it looks like i can learn delphi from this too by decompiling from VC# to Delphi...
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
haha01haha01
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Jun 2007
Posts: 1233
Location: http://www.SaviourFagFails.com/

PostPosted: Sun Jul 29, 2007 9:05 am    Post subject: Reply with quote

from all these talkings... i still dont know whats the pass!
can some1 teach me how that thing work and how to get the pass?

edit: ohhhh ok i got da passs....
so the thing was reading my input wasnt the for() it was the do while, and the for() was mixing up the characters that their ACSII value is 65,66,67,68,69,70 to a string wich is ABCDE
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Crackmes 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 cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites