View previous topic :: View next topic |
Author |
Message |
Trow Grandmaster Cheater Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Jul 24, 2007 8:08 am Post subject: And this is my first C# program |
|
|
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 |
|
|
haha01haha01 Grandmaster Cheater Supreme Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Tue Jul 24, 2007 9:28 am Post subject: |
|
|
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 |
|
|
Trow Grandmaster Cheater Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Jul 24, 2007 4:27 pm Post subject: |
|
|
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 |
|
|
haha01haha01 Grandmaster Cheater Supreme Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Wed Jul 25, 2007 12:31 am Post subject: |
|
|
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 |
|
|
Trow Grandmaster Cheater Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Jul 25, 2007 6:30 am Post subject: |
|
|
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 |
|
|
haha01haha01 Grandmaster Cheater Supreme Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Wed Jul 25, 2007 6:39 am Post subject: |
|
|
.net decompilers can show the code in VB\c\c++\Jscript
|
|
Back to top |
|
|
Trow Grandmaster Cheater Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Jul 25, 2007 6:48 am Post subject: |
|
|
I want that... lemme google
_________________
Get kidnapped often. |
|
Back to top |
|
|
haha01haha01 Grandmaster Cheater Supreme Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Wed Jul 25, 2007 11:19 am Post subject: |
|
|
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 |
|
|
Trow Grandmaster Cheater Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Wed Jul 25, 2007 6:10 pm Post subject: |
|
|
Neat! it looks like i can learn delphi from this too by decompiling from VC# to Delphi...
_________________
Get kidnapped often. |
|
Back to top |
|
|
haha01haha01 Grandmaster Cheater Supreme Reputation: 0
Joined: 15 Jun 2007 Posts: 1233 Location: http://www.SaviourFagFails.com/
|
Posted: Sun Jul 29, 2007 9:05 am Post subject: |
|
|
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 |
|
|
|