net.sf.jqql.packets.out.disk
Class AuthenticatePacket
java.lang.Object
net.sf.jqql.packets.Packet
net.sf.jqql.packets.OutPacket
net.sf.jqql.packets.DiskOutPacket
net.sf.jqql.packets.out.disk.AuthenticatePacket
public class AuthenticatePacket
- extends DiskOutPacket
network disk login request packet
1. head
2. my QQ number, 4 byte
3. my authentication token, 24 byte
4. unknown 12 byte
5. length of encoded password string, 2 byte
6. encode password string
Note: way of encoding password is: use the leading 16 byte of authToken to encode password's MD5
7. my nick name, 12 byte, feel 0 to fit
8. unknown 20 byte
网络硬盘登录请求包
1. 头部
2. 我的QQå·ï¼Œ4å—节
3. 我的认è¯ä»¤ç‰Œï¼Œ24å—节
4. 未知的12å—节
5. 密ç åŠ å¯†ä¸²é•¿åº¦ï¼Œ2å—节
6. 密ç åŠ å¯†ä¸²
Note: 密ç åŠ å¯†ä¸²çš„ç”Ÿæˆæ–¹æ³•是: 用authTokençš„å‰16个å—èŠ‚ï¼ŒåŠ å¯†å¯†ç çš„MD5
7. 我的昵称,12å—节,ä¸è¶³å¡«0
8. 未知的20å—节
- Author:
- luma
Fields inherited from class net.sf.jqql.packets.Packet |
bodyBuf, bodyDecrypted, command, crypter, ds, duplicated, header, log, sequence, source, user |
Methods inherited from class net.sf.jqql.packets.DiskOutPacket |
decryptBody, encryptBody, equals, getBodyBytes, getCryptographStart, getFamily, getHeadLength, getLength, getLocalIp, getTailLength, hashCode, parseHeader, parseTail, postFill, putHead, putTail, setLocalIp, validateHeader |
Methods inherited from class net.sf.jqql.packets.OutPacket |
dump, fill, getKey, getNextSeq, getSendCount, getTimeout, needAck, needResend, parseBody, setKey, setSendCount, setTimeout |
AuthenticatePacket
public AuthenticatePacket(QQUser user)
AuthenticatePacket
public AuthenticatePacket(ByteBuffer buf,
int length,
QQUser user)
throws PacketParseException
- Throws:
PacketParseException
getPacketName
public String getPacketName()
- Overrides:
getPacketName
in class OutPacket
- Returns:
- descriptive name of packet
包的æè¿°æ€§åç§°
putBody
protected void putBody(ByteBuffer buf)
- Description copied from class:
Packet
- initialize packet body
åˆå§‹åŒ–包体
- Specified by:
putBody
in class Packet
- Parameters:
buf
- ByteBuffer
getNick
public String getNick()
- Returns:
- the nick
setNick
public void setNick(String nick)
- Parameters:
nick
- the nick to set
getPassword
public String getPassword()
- Returns:
- the password
setPassword
public void setPassword(String password)
- Parameters:
password
- the password to set