hmm..lets get started with building our own custom mig33 ..shall we..? if you think its difficult it will be difficult no matter how simple the code is. it is infact easy .....if you atleast have some knowledge about vb then you can do it...
okaie..lets begin...
TRANSACTION BETWEEN YOU AND THE MIG33 SERVER
.......this is it ..this is how you login to the server..
- Code:
you --->> can i come in ?
mig33-->> who are you ? are u a mig33 user ?if so ... Prove it ...here is two pieces of metal , tell me which one is gold and which one is copper .if you can prove it you can come in or else no....
1 =metal A
2 =metal B
you -->>take out a magnifying glass and examine ...metal B is Gold and metal A is copper ..!!hehe i am smart :wink:
mig33-->> wow you are smart..!!! please come in
UNDERSTANDING HEX AND ASCII INPUTS
alrtie now , lets get the above transaction between you and the server into technical terms ..shall we ..?
first of all..understand hex ..hehe ..most of you must be wondering what the f*ck is hex..??
Step 1.
first of all copy and paste this in your module
- Spoiler:
Public Function HextoAscii(inputstr As String) As String
Dim spilter As Variant, i As Integer, finnal As String
If InStr(1, inputstr, " ") <> 0 Then
spilter = Split(inputstr, " ")
For i = 0 To UBound(spilter)
finnal = finnal & Chr(Val("&H" & spilter(i)))
Next i
HextoAscii = finnal
ElseIf Len(inputstr) = 2 Then
finnal = Chr(Val("&H" & inputstr))
HextoAscii = finnal
End If
End Function
Public Function Asciitohex(inputstr As String) As String
On Error Resume Next
Dim spilter As Variant, i As Integer, finnal As String
For i = 1 To Len(inputstr)
finnal = finnal & Hex(Asc(Mid(inputstr, i, 1))) & " "
Next i
Asciitohex = Mid(finnal, 1, Len(finnal) - 1)
End Function
okaie..now lets experiment with it ..
lets take my name choman, lets convert it to hex ..
now create a command and paste this code
you will get the result 63 68 6F 6D 61 6E it means choman = 63 68 6F 6D 61 6E in hex.
- Code:
Private Sub Command1_Click()
MsgBox Asciitohex("choman")
End Sub
now lets convert 63 68 6F 6D 61 6E back to choman..damn..!!! i don't want my name to be bloody numbers
this is the code that will give my name back ..hurray!!!!!!!!
....okaie..now this is very important converting hex to ascii & vice versa ..
- Code:
Private Sub Command2_Click()
MsgBox HextoAscii("63 68 6F 6D 61 6E")
Debug.Print HextoAscii("63 68 6F 6D 61 6E")
End Sub
be 100% sure you know this ..if not go back to step 1
HOW TO BUILD ...WHERE TO START ?
hehe..i know this is the first question that poops up in mind..! okaie ..don't worry..you need to know about winsock control. Learn it yourself...it ain't difficult, google
....hmmm how about taking a look at how to make a project look like for better understanding... ..fasten your seatbelt ladies and gentle men for here i present you choman mig33
- Spoiler:
SENDING THE FIRST PACKET TO THE SERVER TO LOGIN
lets capture a tcp packet sent by the client (your nick) to the mig33 server ...i know you have looked at it a lot of times ..hoping to build a pc executable of mig33 but didn understand it and just gave up ..
don't worry take a deep breath and together lets look at the packets again .
- Code:
02 00 C8 00 01 00 00 00 4A 00 09 00 00 00 04 00
00 00 01 00 08 00 00 00 04 6A 32 6D 65 00 07 00
00 00 09 4A 32 4D 45 76 33 2E 30 32 00 05 00 00
00 0A 6A 65 73 75 73 73 6D 69 6C 65 00 03 00 00
00 02 01 2E 00 02 00 00 00 01 02 00 01 00 00 00
02 00 01
now does it seem familiar..i have already explained how to convert hex into ascii so, if you convert this to ascii you will get some thing like this
jesussmile is my username
- Code:
È J j2me J2MEv3.02
jesussmile .
going back to the first packet ....lets understand what we need to change and omit the rest ,you don't need to understand it deeply ...tcp packet are like a women you will never understand them completely hehe
there are just 3 things you need to understand from this packet
take a look at the 9th byte 4A ..okay lets convert 4A into decimal its 74 how did i do it..? use your damn calculator or do this (4*16+10 =74) .hence we get 74 ..............so what... ..it represent the no of byte from here till the end of the packet ..count from 4A till the end of the packet you will find it out to be 74 ..so, with username of different length this should also change
first of all let's find my username in the above packet ..remeber my username is jesussmile ..okay so, its 6A 65 73 75 73 73 6D 69 6C 65 ..hehe ..if you understood till here..then you are doing good..
if not get a gun and shoot yourself or read it again from the begining
now look at the hex before my username its 0A ..incase you are wondering wtf is it? its the length of my username .the hex for 10 is 0A .. this is important , you have to mention the correct length of your username in hex or else your packet is of no use ..
THE LOGIN RESPONSE PACKET
okay now this is a barrier thats the most challenging ..yet it ain't difficult if you use your correct sense of mind..
let's take a look at the packet sent by the server after we send our first packet i.e the login packet .
- Code:
02 00 C9 00 01 00 00 00 1D 00 02 00 00 00 08 30
68 50 68 74 4A 38 73 00 01 00 00 00 09 4A 59 65 48 6E
38 54 75 35
lets change it to ascii so that we can understand ...damn..! i am geting headache..
- Code:
É 0hPhtJ8s JYeHn8Tu5
remember in my first example i told you the server show's two metal and question's you to prove which one is copper and which one is gold ..the second metal is always gold..
for example
0hPhtJ8s is the first metal its copper ..we don't need it
JYeHn8Tu5 is the second metal ..its gold this is what we need
now comes the part to take out the magnifying glass and check it..in this case the magnifying glass is our mig33 password ..
lets say my password is donkey so we need to concatenate them together for example :JYeHn8Tu5donkey and get the last four bytes.. in this case it was F2 82 11 54 this is called the hash code.now i have to string it with 02 00 CA 00 02 00 00 00 0A 00 01 00 00 00 04 which makes itfor the last part convert it to ascii and send it to the server ..
- Code:
02 00 CA 00 02 00 00 00 0A 00 01 00 00 00 04 F2 82 11 54
don't understand..??? no need to understand ...
there are two ways of geting the hash code ..one converting the login response packet to decimal , then using some f*cked up code and converting back to hex and calling it ...lets omit this too..
lets use a simple approach .dll ...okay , remember the guy who made migpro .luckily he has made a .dll for us which saves a lot of time in coding and overflow and it gives us the desired last four byte....
incase you are wondering how to use dll file just copy it into C:\Windows\system
i have made a application that will give you the hash code in hex the whole string required to login ..LAST BUT NOT THE LEAST
- Spoiler:
i have developed an application ..it log's you in mig33 server and shows all the transaction taking place..i made it extremely easy to understand so, that you will know step by step what is going on ..and how you are logging into the server...
DOWNLOAD A PC EXECUTABLE OF MIG33
this sample shows how you loginto the server and the interaction is in hex
- Code:
http://rapidshare.com/files/117259533/Choman_mig33.rar.html
- Code:
http://www.mediafire.com/?qmy01zpzzwv
this sample shows the raw data exchange between you and the server and how you login
- Code:
http://rapidshare.com/files/117697073/choman_mig33.rar.html
- Code:
http://www.mediafire.com/?n0szmmnid1v
hehe..damn..!!! it took longer to write this tutorial than to create a packet
good luck all...
3 posters
Build your own mig33
desert-_-sniper- Technician
Number of posts : 71
Age : 33
Location : your BIOS
mig33 username : desert-_-sniper & d3s3r7-_-5n1p3r
Registration date : 2008-10-18
- Post n°1
Build your own mig33
un4giv3n-lee- Moderators
Number of posts : 86
Age : 34
Location : South Africa-Johannesburg
mig33 username : un4giv3n-lee
Registration date : 2008-10-17
- Post n°2
Re: Build your own mig33
intereting
excited
serious
drowsy
(no need to explain)
woke up
eh where were we?
excited
serious
drowsy
(no need to explain)
woke up
eh where were we?
x_o_-_absa_-_o_x
Number of posts : 60
Age : 32
Location : In your bl00d vessels
mig33 username : absa_ft_sfiso
Registration date : 2008-11-22
- Post n°3
Re: Build your own mig33
tnx for sharing, tc
|
|