just for fun javaqq. just for fun linux linus torvalds just for fun,

Download Just for fun JavaQQ. Just for fun Linux Linus Torvalds Just for fun,

Post on 26-Mar-2015




0 download

Embed Size (px)


  • Slide 1

Just for fun JavaQQ Slide 2 Just for fun Linux Linus Torvalds Just for fun, Slide 3 : HTTP Get Slide 4 GET / HTTP/1.1 Accept: */* Accept-Language: zh-cn Accept-Encoding: gzip, deflate If-Modified-Since: Fri, 16 Mar 2007 09:02:51 GMT If-None-Match: "aa242be0a967c71:216 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon) Host: ehoo.gfkd.mtn Connection: Keep-Alive Slide 5 HTTP Get Slide 6 HTTP/1.1 404 Not Found Content-Length: 1308 Content-Type: text/html Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Date: Fri, 11 May 2007 15:28:10 GMT.................... BODY( ) Slide 7 :JavaQQ, PDA,, : QQ JavaQQ Where to get it? Slide 8 How to get started? QQ : Iris( ), ? :,.. Slide 9 ,how to get started? QQ java, ***.jar JAR(Java ARchive), java class(java ) ? Slide 10 ! Class class, !, java, BTW: java,. QQ2005? Slide 11 JavaQQ2005 JavaQQ2007 -- winrar qq jar QQ2005 Slide 12 QQ2007 ? Slide 13 QQ2005 ? (C++ ) ( ) Q Slide 14 Get started,. Slide 15 Some tips HttpPoster.java JavaQQ HTTP, POST Server: ) utf-8 ver 1.0(HttpPoster.java), Connection-close: Slide 16 Lets go! VER=1.0&CMD=XXX&SEQ=XXX&UIN=X XX CMD SEQ, JavaQQ,SEQ UIN QQ Slide 17 Login VER=1.0&CMD=Login&SEQ=XXX&UIN= XXX&PS=XXX&M5=1&LG=XXX&LC=932 6B87B234E7235 PS: MD5 LG:, en,cn LC,M5:, /QQ ? Slide 18 Login Reply: VER=1.0&CMD=Login&SEQ=XXX&UIN= XXX&RES=0&RS=0 RES=0: RS=0: VER=1.0&CMD=Login&SEQ=XXX&UIN= XXX&RES=0&RS=1&RA=XXXX RS=1: RA=XXX: Slide 19 Get Friend List: VER=1.0&CMD=List&SEQ=XXX&UIN=XX X&TN=160&UN=0 TN=160&UN=0: Slide 20 Get Friend List Reply: VER=1.0&CMD=LIST&SEQ=XXX&UIN=X XX&RES=0&FN=1&SN=XX&UN=XXX,XX X,XXX,.. FN=1: SN=XX: UN=XX,XX,XX:,, Slide 21 Get Online Friend List: VER=1.0&CMD=Query_Stat&SEQ=XXX& UIN=XXX&TN=50&UN=0 TN=50&UN=0: Slide 22 Get Online Friend List Reply: VER=1.0&CMD=QUERY_STAT&SEQ=XX X&UIN=XXX&RES=0&FC=XXX,XXX,XXX, &FN=1&SN=XX&ST=XX,XX,XX,&UN=XX, XX,XX,&NK=XX,XX,XX, FC=XX:XX id, PC QQ. SN=XX:. ST=XX:,10,20,30 UN=XX: NK=XX: ( utf-8) Slide 23 Get Message: VER=1.0&CMD=GetMsgEx&SEQ=XXX& UIN=XXX Slide 24 Get Message Reply: VER=1.0&CMD=GETMSGEX&SEQ=XXX &UIN=XXX&RES=0&MN=X&MT=X,X,X,& UN=XX,XXX,XXXX,&MG=XXX,XXX,XXX X, MN=X: MT=X:,99,9 UN=X: MG=XX: (utf-8). BTW:MT=99&UN=10000&MG=30 10000.. Slide 25 Send Message: VER=1.0&CMD=CLTMSG&SEQ=XXX&UI N=XXX&UN=XXX&MG=XXX MG=XXX(utf-8) Slide 26 Send Message Reply: VER=1.0&CMD=CLTMSG&SEQ=XXX&UI N=XXX&RES=0 Slide 27 : QQ,, Slide 28 QQ, : POST HTTP/1.1 Content-Type:text/plain;charset=UTF-8 Content-length:100 VER=1.0&CMD=Login&SEQ=413&UIN=4 09621426&PS=21232f297a57a5a743894a 0e4a801fc3&M5=1&LC=9326B87B234E7 235 Slide 29 Other Actions: GetInfo AddToList Ack_AddToList DelFromList Finger Change_Stat Logout Slide 30 ? JavaQQ PC QQ HTTP QQ, server, PC HTTP QQ Server. : JavaQQ, PC server, Slide 31 The End