flat assembler
Message board for the users of flat assembler.

Index > Windows > icq clone written in fasm

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Author
Thread Post new topic Reply to topic
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 22 Dec 2003, 19:02
ok i found great doc on this


Description:
Download
Filename: PassRoaster.rar
Filesize: 1.34 KB
Downloaded: 466 Time(s)

Post 22 Dec 2003, 19:02
View user's profile Send private message ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 23 Dec 2003, 15:55
please first look at the document passroaster.txt

shortly
Code:
password: "password" 
roastingstring: "tictoc"

returns: "0x04081007180c060d"

The following xor's are done:
p=01110000 t=01110100  xor = 00000100 hex = 04
a=01100001 i=01101001  xor = 00001000 hex = 08
s=01110011 c=01100011  xor = 00010000 hex = 10
s=01110011 t=01110100  xor = 00000111 hex = 07
w=01110111 o=01101111  xor = 00011000 hex = 18
o=01101111 c=01100011  xor = 00001100 hex = 0c
r=01110010 t=01110100  xor = 00000110 hex = 06
d=01100100 i=01101001  xor = 00001101 hex = 0d
So the method returns "0x04081007180c060d"
    


and in my little demostration app here i am just trying to roast the first char in password with the first char in roasting_array

i need some code there (commented in the code) to convert the number in ah to string and then i will send it to the static


Code:
  roast:
        invoke  GetDlgItemText,[hwnddlg],1002,password,password_max
        cmp     [password],0
        je      empty_password
        invoke  GetDlgItemText,[hwnddlg],1003,roasting_array,-1
        cmp     [roasting_array],0
        je      empty_roasting_array
        mov     ah,[password+0]
        mov     bh,[roasting_array+0]
        xor     ah,bh
        ;i need some code here to convert the number in ah to string and then i will send it to the static
        mov     [temp1+0],ah
        invoke  SetDlgItemText,[hwnddlg],1005,temp1
        jmp     processed
    


and also all suggestions about a loop for roasting all the password with all the roasting_array are welcome Smile with corrections for the stupid things i have done
i am suffering from inexperience here Smile if i can roast the password, i am going to create the very first login packet


Last edited by sina on 27 Feb 2004, 20:21; edited 1 time in total
Post 23 Dec 2003, 15:55
View user's profile Send private message ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1150
Location: Russian Federation
comrade 24 Dec 2003, 00:04
Maybe this help...
Change szFileName and imgbase in loader.asm, compile both files, run loader.exe.


Description:
Download
Filename: ws32dump.zip
Filesize: 4.08 KB
Downloaded: 464 Time(s)


_________________
comrade (comrade64@live.com; http://comrade.ownz.com/)
Post 24 Dec 2003, 00:04
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 24 Dec 2003, 00:06
thanks i am working on them
Post 24 Dec 2003, 00:06
View user's profile Send private message ICQ Number Reply with quote
terex



Joined: 31 Dec 2003
Posts: 16
Location: Saint-Petersburg, Russia
terex 03 Jan 2004, 20:42
[offtopic]
Hey, men, to make your im really good, you will must add plugins support... And all pretty featurs of pure assembler code will be hidden by delphi code of one of popular plugins... Rolling Eyes So, a sugess you to use miranda-im and don't know any problems Wink
[/offtopic]

_________________
sorry for my english
Post 03 Jan 2004, 20:42
View user's profile Send private message Visit poster's website Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm 05 Jan 2004, 14:38
Sorry Im gonna have to jump off this project. I've dumped Windows completely and have moved over to Gentoo Linux distro ( www.gentoo.org ) for the past 2 weeks. Im loving gentoo and I plan to use flat assembler even on linux =). Wink

_________________
I shall not evade what is predestined
because every battle, is another lesson
- GuyonAsm.

A Believer of The System.
Post 05 Jan 2004, 14:38
View user's profile Send private message Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 10 Jan 2004, 11:35
VeSCeRa,

How's the projest going on? Pretty keen on seeing this becoming a success. I would be interested in this project but first, I need to work on the other projects that I have in my hand. Do email or pm me if you need help. May be of some help..

Regards,
Victor
Post 10 Jan 2004, 11:35
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 10 Jan 2004, 20:25
thanks for your support
first of all i know that you are a good asm programmer and appreciate this
i cant work on it for some time becouse i am having final exams and lack of time
but the bigger problem is the project is so much big as i have learned more about the icq protocol
my first attempt is just xoring the password and then with this xored password and some uin i am going to create the connection to the icq server
please look at the password xoring docs i have posted here
i know you can help if u take some time on this
Post 10 Jan 2004, 20:25
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 11 Jan 2004, 06:15
Hi VeSCeRa,

I thank you for your praises. Currently I am adding roasting password into your faim.asm that you have uploaded.

Regards,
roticv
Post 11 Jan 2004, 06:15
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 11 Jan 2004, 07:03
Working version of your roaster.exe Very Happy tested with "password" and "tictoc"


Description:
Download
Filename: roaster.zip
Filesize: 2.35 KB
Downloaded: 368 Time(s)

Post 11 Jan 2004, 07:03
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 11 Jan 2004, 11:42
ok first with understanding your code i am going to try to create the very first login packets Smile
thanks for your great help
Post 11 Jan 2004, 11:42
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 13 Jan 2004, 14:09
I can't wait for the first login packet. That's would be the milestone. Hehe. If you do need help, do paste more information on the things needed for login. Perhaps I will add moer code into faim.asm (The code that you have uploaded on the board in the earlier posts)
Post 13 Jan 2004, 14:09
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 13 Jan 2004, 23:29
yes i am excited too but i really have no more time for the moment becouse of my final exams

your roaster was working perfect but in the manual the letters are lowercase but in our roaster the roasted pasword contains the letters in uppercase

can u make comments to the roasting code ? it will be very educative for me Smile

in the oscar doc it says
Roasting is performed by first xoring each byte in the password with the equivalent modulo byte in the roasting array ( 0xF3, 0x26, 0x81, 0xC4, 0x39, 0x86, 0xDB, 0x92, 0x71, 0xA3, 0xB9, 0xE6, 0x53, 0x7A, 0x95, 0x7C )

so i have changed them to their char values it makes
roasting array = ó&?Ä9†Û’q£¹æSz•|
and tested the passwords it really works

but the problem is, in the first packet we should have

Quote:

Example SNAC dump with flap header (uin="777777", pass="password"):
2A 01 13 5A 00 83 00 00 00 01 00 01 00 06 37 37 *..Z..........77
37 37 37 37 00 02 00 08 83 47 F2 B7 4E E9 A9 F6 7777.....G..N...
00 03 00 33 49 43 51 20 49 6E 63 2E 20 2D 20 50 ...3ICQ Inc. - P
72 6F 64 75 63 74 20 6F 66 20 49 43 51 20 28 54 roduct of ICQ (T
4D 29 2E 32 30 30 30 62 2E 34 2E 36 35 2E 31 2E M).2000b.4.65.1.
33 32 38 31 2E 38 35 00 16 00 02 01 0A 00 17 00 3281.85.........
02 00 04 00 18 00 02 00 41 00 19 00 02 00 01 00 ........A.......
1A 00 02 0C D1 00 14 00 04 00 00 00 55 00 0F 00 ............U...
02 65 6E 00 0E 00 02 75 73 .en....us

i can make the roasted password but it the result is a string but we need the hex code or the corresponding ascii values may be we should add another label to the roaster that shows the ascii values that we will add to the packet
Post 13 Jan 2004, 23:29
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 14 Jan 2004, 12:36
Finally I taken a detailed look at the documentation. Wow. I am amazed by how well documentated the documentation is. Personally I think it is better to make use of md5 to send the password, but nevertheless that could be added later. For now, we could work on the roasting password.

Give me a some time, and I suppose I will be able to produce the first login packet and I will post it here. Yes, I will try to remember to add comments for the roasting password part. I displayed the hex in uppercase because I feel that hexvalues look better in uppercase as opposed to lowercase. Just a personally perferrance. If you do not like it just change the code on line 90 and 95 to add xx, 39

btw, do you know I have added you?
Post 14 Jan 2004, 12:36
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 14 Jan 2004, 22:14
yes i know i have added you too
please comment your code if you make something Smile
Post 14 Jan 2004, 22:14
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 15 Jan 2004, 09:33
Here's what I have added. Take a look. Yes the login packet is created and sent, though I have not worked on the receiving part. Will work on it when I have more time. For now just please tell me if I am correct with the implementations. Have a nice day then..

[edit]Attachment removed, look at the later post
Post 15 Jan 2004, 09:33
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 15 Jan 2004, 15:00
I have added more code. There will be an int3 in my code so that it will break into my JIT which would be ollydbg. Dump the value in ebx and you will see the response from the server Cool I will add more code on the response by the server on a later date...


Last edited by roticv on 17 Jan 2004, 08:03; edited 1 time in total
Post 15 Jan 2004, 15:00
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
sina



Joined: 18 Aug 2003
Posts: 132
Location: istanbul turkey
sina 15 Jan 2004, 17:39
yeah you are just great

this is the snack dump of the packet faim.exe created
with uin 123456789 and password MyPassword
Quote:

2a 01 13 5a 00 65 00 00-00 01 00 01 00 09 31 32 *..Z.e........12
33 34 35 36 37 38 39 00-02 00 0a be 5f d1 a5 4a 3456789....._..J
f5 ac fd 03 c7 00 03 00-0a 46 61 69 6d 20 30 2e .........Faim 0.
30 31 00 00 16 00 20 00-00 00 17 00 02 00 00 00 01.... .........
18 00 20 00 00 00 19 00-02 00 00 00 1a 00 20 00 .. ........... .
00 00 14 00 02 00 00 00-00 00 0f 00 02 65 6e 00 .............en.
0e 00 02 75 73 2a 01 15-87 00 04 ...us*.....


winxp pro after sending the packet it crashes
Post 15 Jan 2004, 17:39
View user's profile Send private message ICQ Number Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 16 Jan 2004, 14:10
It is not a crash. It is a breakpoint. Refer to the previous post on it. In fact, I am more interested in the response given by the server.
Post 16 Jan 2004, 14:10
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
roticv



Joined: 19 Jun 2003
Posts: 374
Location: Singapore
roticv 17 Jan 2004, 08:01
Hi hi,

I added more code and now fixed the authorisation (The first step into the icq protocol). Finally some achievement Very Happy


Last edited by roticv on 08 Feb 2004, 13:12; edited 1 time in total
Post 17 Jan 2004, 08:01
View user's profile Send private message Visit poster's website MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next

< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.