Thanks in advance
//Jens
00000000 2A04 3D02 0125 0001 0008 3131 3531 3036 *.=..%....115106
00000010 3335 0005 0011 3230 352E 3138 382E 392E 35....205.188.9.
00000020 3338 3A35 3139 3000 0601 0073 4BAD 20DC 38:5190....sK. .
00000030 7D23 F618 6712 534C DEF3 E815 6CB5 2D2B }#..g.SL....l.-+
00000040 C51B FF65 C7CA C0E4 90B8 3029 8BEF 8829 ...e......0)...)
00000050 5F1E A0F8 CDEC 731A 2501 4B62 1E3D 4B76 _.....s.%.Kb.=Kv
00000060 31F4 6542 5196 C515 5AFD 347D 1279 0E47 1.eBQ...Z.4}.y.G
00000070 4467 BBFC 47BC 5C99 373D 9B54 BBBF 97CD Dg..G.\.7=.T....
00000080 6333 FBCA F576 8CF9 4A13 510C 2D7A 716E c3...v..J.Q.-zqn
00000090 72A1 C146 3A22 9544 FC89 6366 E6E1 F431 r..F:".D..cf...1
000000A0 0CD5 1C1A EBE6 58C6 280F 5026 5D97 F0BC ......X.(.P&]...
000000B0 60C6 5FBD 6C20 F9D1 D922 B044 0CB4 4B54 `._.l ...".D..KT
000000C0 4E65 4366 28B6 D109 5DA5 E0A1 EA71 E249 NeCf(...]....q.I
000000D0 CB0B 1C33 A6F2 B9CD DEAC 446F 6330 A842 ...3......Doc0.B
000000E0 30EA C4FF BC61 AAA0 0B0B 1447 AEFE 33EA 0....a.....G..3.
000000F0 00C7 85DF EF6C CFC1 0017 8819 A301 3029 .....l........0)
00000100 FE7F C1E3 F3E3 B848 0EAD 0673 9F19 7CF8 .......H...s..|.
00000110 31FF E810 FCEC B6A6 6EDF 6C55 A852 EF3D 1.......n.lU.R.=
00000120 39CD 91CC 8F62 FBB2 57A9 E22D 9....b..W..
0000013B 2A04 3D02 0125 0001 0008 3131 3531 3036 *.=..%....115106
0000014B 3335 0005 000E 3132 372E 302E 302E 313A 35....127.0.0.1:
0000015B 3531 3930 0006 0100 734B AD20 DC7D 23F6 5190....sK. .}#.
0000016B 1867 1253 4CDE F3E8 156C B52D 2BC5 1BFF .g.SL....l.-+...
0000017B 65C7 CAC0 E490 B830 298B EF88 295F 1EA0 e......0)...)_..
0000018B F8CD EC73 1A25 014B 621E 3D4B 7631 F465 ...s.%.Kb.=Kv1.e
0000019B 4251 96C5 155A FD34 7D12 790E 4744 67BB BQ...Z.4}.y.GDg.
000001AB FC47 BC5C 9937 3D9B 54BB BF97 CD63 33FB .G.\.7=.T....c3.
000001BB CAF5 768C F94A 1351 0C2D 7A71 6E72 A1C1 ..v..J.Q.-zqnr..
000001CB 463A 2295 44FC 8963 66E6 E1F4 310C D51C F:".D..cf...1...
000001DB 1AEB E658 C628 0F50 265D 97F0 BC60 C65F ...X.(.P&]...`._
000001EB BD6C 20F9 D1D9 22B0 440C B44B 544E 6543 .l ...".D..KTNeC
000001FB 6628 B6D1 095D A5E0 A1EA 71E2 49CB 0B1C f(...]....q.I...
0000020B 33A6 F2B9 CDDE AC44 6F63 30A8 4230 EAC4 3......Doc0.B0..
0000021B FFBC 61AA A00B 0B14 47AE FE33 EA00 C785 ..a.....G..3....
0000022B DFEF 6CCF C100 1788 19A3 0130 29FE 7FC1 ..l........0)...
0000023B E3F3 E3B8 480E AD06 739F 197C F831 FFE8 ....H...s..|.1..
0000024B 10FC ECB6 A66E DF6C 55A8 52EF 3D39 CD91 .....n.lU.R.=9..
0000025B CC8F 62FB B257 A9E2 5581 2093 94A6 051C ..b..W..U. .....
0000026B E769 .
-----------
Remove _spamno_ from my e-mail address if you like to reply via e-mail
mailto:%6A%65%6E%73%40%7A%65%6B%72%61%2E%73%65
The OS Journal
--------------
www.osjournal.hopto.org - Main URL
www.osjournal.tk - Backup URL
www.cyberscriptorium.com/osjournal/cgi-bin/index.pl?action=home
My personal page
----------------
jenssoftware.hopto.org (NO WWW.!!!)
jens_s...@zekra.se (Jens Olsson) wrote in message news:<3e1897b3...@News.CIS.DFN.DE>...
> Ok, here it goes... I am trying to create a proxy for ICQ to
> run on the same computer as ICQ. The reason is that I want to
> add some extra functionality too it.
For questions related to developing ICQ functionalities in your own
programs, you should consider subscribing to the ICQ-Devel mailing
list, http://www.d.kth.se/~d95-mih/icq/icq-devel/
> I have made it listen and forward all data to login.icq.com
> however login.icq.com redirects the client to another server....
> I have that package below and what I am trying to do is to modify
> the target server to my localhost... It wonät work however...
> don't know why.... Maybe someone can explain it to me? Below
> is first the original package... then the one my proxy modifies
> it to before sending it
The original packet contains a block of data known as a "cookie".
That cookie gets passed to the second server as part of the login.
Your modified packet, however, has extra bytes at the end which are
not part of the original packet. As such, after the cookie packet is
processed, the server will attempt to read the next packet and fail
because the packet header is not valid and it will deny you access.
You'll find documentation about the cookie packet here:
SRV_COOKIE
http://www.stricq.com/icqv8/Command_view.cfm?ID=10
CLI_COOKIE
http://www.stricq.com/icqv8/Command_view.cfm?ID=11
Gambit
That seem to be the thing I missed, those extra bytes at the end...
don't know where they come from... I didn't see them there before:)
I still got some problems but this may be the main couse:)
Anyway, I maybe sort it out now, Thanks you very mych for your help!
//Jens
Hmm.... I have now looked very hard trying to figure out where these
extra bytes came from... And I realised that it was my logging and hex
program that did it wrong....
So, I am trying to explain what I want to do once again.
First I attempted to just make the proxy forward traffic between icq
and the icq server. Doing this by running my "proxy" on 127.0.0.1 and
setting 127.0.0.1 in ICQ settings instead of login.icq.com.
This would be how it is connected:
ICQ(127.0.0.1) <<-->> Proxy(127.0.0.1) <<-->> ICQSERVER(login.icq.com)
Anyway... the ICQSERVER sends a redirect so that ICQ connects to
another server instead (205.188.10.* or something).
My thoughts was then to catch the package containing the redirect in
my Proxy after it is sent from the ICQSERVER and then modify the
redirect from 205.188.10.* to 127.0.0.1 before sending it threw to
ICQ. This however does not seem to work. ICQ refuses to answer to the
package, and it doesn't try to open a new connection either.
I have attached the packages at the end of this message (They should
be correct this time at least).
Maybe someone can take another look at this?
Thanks
//Jens
00000000 2A04 FF78 0128 0001 0009 3137 3637 3237 *..x.(....176727
00000010 3233 3000 0500 1332 3035 2E31 3838 2E31 230....205.188.1
00000020 302E 3138 323A 3531 3930 0006 0100 2B31 0.182:5190....+1
00000030 51DD D9D8 64A7 AE85 7FB0 1D6E 5E9F C79D Q...d......n^...
00000040 BDBE 26B8 C736 78E1 240F 256D B64A E4A8 ..&..6x.$.%m.J..
00000050 E86B 463E 9569 6C3A B029 CC12 E8D9 083D .kF>.il:.).....=
00000060 88AB 377F 018E A1BC E961 1D6A 6C89 C8EC ..7......a.jl...
00000070 8254 B364 E5FB 80DF 978F 1349 2A2A 74FB .T.d.......I**t.
00000080 AC1F 087C 3F58 7B7D C9AD D76A 6EEF CA55 ...|?X{}...jn..U
00000090 42F7 C226 F775 B9F3 2FA1 775B 0202 4824 B..&.u../.w[..H$
000000A0 4ED0 5442 0BD5 10BF C7EF 8EB1 9FB1 3176 N.TB..........1v
000000B0 F456 DB38 C50C D1F8 C2EB 2FBF A7B0 84C0 .V.8....../.....
000000C0 CE67 7723 77CF A032 F23F 6CEA 3F5A 08FB .gw#w..2.?l.?Z..
000000D0 0AFC 5DFA DA41 55E5 D8C2 744D CC2B 7EBA ..]..AU...tM.+~.
000000E0 2B26 FFA4 0719 6FA0 F53A FC6B 7832 38FC +&....o..:.kx28.
000000F0 7F6F AC1B 0C97 1D1B 72E9 0E80 F0CF 8606 .o......r.......
00000100 6E85 B2E1 9363 72A1 7E1A DB16 1B20 954A n....cr.~.... .J
00000110 89FD 622E 2AC9 F98E F685 4BB8 EE93 3D41 ..b.*.....K...=A
00000120 0390 3E13 96DF A858 F05C 8F64 3779 ..>....X.\.d7y
00000000 2A04 FF78 0128 0001 0009 3137 3637 3237 *..x.(....176727
00000010 3233 3000 0500 0E31 3237 2E30 2E30 2E31 230....127.0.0.1
00000020 3A35 3139 3000 0601 002B 3151 DDD9 D864 :5190....+1Q...d
00000030 A7AE 857F B01D 6E5E 9FC7 9DBD BE26 B8C7 ......n^.....&..
00000040 3678 E124 0F25 6DB6 4AE4 A8E8 6B46 3E95 6x.$.%m.J...kF>.
00000050 696C 3AB0 29CC 12E8 D908 3D88 AB37 7F01 il:.).....=..7..
00000060 8EA1 BCE9 611D 6A6C 89C8 EC82 54B3 64E5 ....a.jl....T.d.
00000070 FB80 DF97 8F13 492A 2A74 FBAC 1F08 7C3F ......I**t....|?
00000080 587B 7DC9 ADD7 6A6E EFCA 5542 F7C2 26F7 X{}...jn..UB..&.
00000090 75B9 F32F A177 5B02 0248 244E D054 420B u../.w[..H$N.TB.
000000A0 D510 BFC7 EF8E B19F B131 76F4 56DB 38C5 .........1v.V.8.
000000B0 0CD1 F8C2 EB2F BFA7 B084 C0CE 6777 2377 ...../......gw#w
000000C0 CFA0 32F2 3F6C EA3F 5A08 FB0A FC5D FADA ..2.?l.?Z....]..
000000D0 4155 E5D8 C274 4DCC 2B7E BA2B 26FF A407 AU...tM.+~.+&...
000000E0 196F A0F5 3AFC 6B78 3238 FC7F 6FAC 1B0C .o..:.kx28..o...
000000F0 971D 1B72 E90E 80F0 CF86 066E 85B2 E193 ...r.......n....
00000100 6372 A17E 1ADB 161B 2095 4A89 FD62 2E2A cr.~.... .J..b.*
00000110 C9F9 8EF6 854B B8EE 933D 4103 903E 1396 .....K...=A..>..
00000120 DFA8 58F0 5C8F 6437 79 ..X.\.d7y
Gambit
jens_s...@zekra.se (Jens Olsson) wrote in message news:<3e1a08a9...@News.CIS.DFN.DE>...
Thanks
//Jens
-----------
Gambit
jens_s...@zekra.se (Jens Olsson) wrote in message news:<3e1b592b...@News.CIS.DFN.DE>...