Valhalla Legends Forums Archive | Battle.net Bot Development | Can Anyone Help?

AuthorMessageTime
TriCk
[3:41:14 PM] Account Created: 10/6/2003, 09:08:51 (Battle.net time)
[3:41:14 PM] Last Logon: 10/26/2003, 05:35:43 (Battle.net time)
[3:41:14 PM] Last Logoff: 10/25/2003, 09:00:30 (Battle.net time)
[3:41:14 PM] Time Logged: 0 days, 11 hours, 20 minutes and 1 second
On StealthBot 2.2R4

Does anyone know how he gets that information?

What Packets...
I've PacketLogged it
and it looks like he sends...

System\Account Created
System\LastLogon
System\Last Logoff
System\Time Logged

But Trying this was unsuccessful, is there a packet i need to send with it?

Any help will be appreciated. Thanks
October 26, 2003, 6:02 AM
K
Those are profile keys. You will need to request those keys using SID_READUSERDATA (0x26). You can find the format for this packet (where else?) in Arta's BnetDocs.
October 26, 2003, 6:05 AM
TriCk
Another Question :-/

Ok i havent been there in so long... whats the url for bnetdocs ?
October 26, 2003, 6:11 AM
UserLoser
Edit your posts instead of replying 3 times which could have all been put into 1 post
October 26, 2003, 6:34 AM
TriCk
My bad ???
Umm

1 more thing is annoying me...

If anyone knows what packet i need to send, because (0x26) seems to get me ipbanned... when i request the info...


Like this ....

[code]
Public Sub ReqSysInfo(strUser As String, Game As String)
Dim lngKey As Long
lngKey = GetTickCount()
Dim PBuf As New PacketBuffer
With PBuf
.InsertDWORD 1
.InsertDWORD 18
.InsertDWORD lngKey
.InsertNTString strUser
.InsertNTString "System\Account Created"
.InsertNTString "System\LastLogon"
.InsertNTString "System\Last Logoff"
.InsertNTString "System\Time Logged"
.SendPacket &H26
End With
SysUsrVar = strUser
SysName = strUser
End Sub
[/code]
October 26, 2003, 6:43 AM
Soul Taker
The format is:
[quote](DWORD)       Number of Accounts
(DWORD)       Number of Keys
(DWORD)       Request ID
(STRING[])    Requested Accounts
(STRING[])    Requested Keys
(STRING)       Unknown (Empty)[/quote]
You are requesting four keys, yet your second DWORD is 0x18 (24). I believe you should have the second DWORD be 0x05, because IIRC, the amount of keys always was one lower than the amount shown in the second DWORD (I don't know if it counts the account as a key or what, maybe someone else could explain why).

Edit: while re-reading everything, I noticed you are not sending the final empty string either (I just send an extra null byte cause I'm a horrible programmer like that =P)
October 26, 2003, 7:02 AM
TriCk
[code]
Public Sub ReqSysInfo(strUser As String, Game As String)
Dim lngKey As Long
lngKey = GetTickCount()
Dim PBuf As New PacketBuffer
With PBuf
.InsertDWORD 1
.InsertDWORD 4 ???????
.InsertDWORD lngKey
.InsertNTString strUser
.InsertNTString "System\Account Created"
.InsertNTString "System\LastLogon"
.InsertNTString "System\Last Logoff"
.InsertNTString "System\Time Logged"
.SendPacket &H26 ( WILL I NEED TO SEND THIS? )
End With
SysUsrVar = strUser
SysName = strUser
End Sub
[/code]
October 26, 2003, 7:44 AM
UserLoser
Yes you need to send it, duh, how else are you going to tell the server you want certain information? Also, you said you packet logged it, so go off of what you packet logged
October 26, 2003, 7:49 AM
TriCk
Is the 4 part in
[code]
.InsertDWORD 4
[/code]

Correct?
For The Amount Of Keys?
October 26, 2003, 7:59 AM
UserLoser
[quote author=TriCk link=board=17;threadid=3267;start=0#msg25776 date=1067154295]
.InsertNTString "System\Account Created"
.InsertNTString "System\LastLogon"
.InsertNTString "System\Last Logoff"
.InsertNTString "System\Time Logged"
[/quote]

Well, let's pull out those algebra skills that you should have learned in school.

System\Account Created 1
System\LastLogon +1
System\Last Logoff +1
System\Time Logged +1
--------------------------------------
= 4
October 26, 2003, 8:06 AM
TriCk
LoL ..
Thanks for your smartass answer :-\


Anyway +1 to all of u


THERES SOME MATHS FOR U UserLoser ;D
October 26, 2003, 8:10 AM
iago
0x26 is quite possibly the easiest packet to decypher. I figured out the whole thing in about 20 mins by packetloggings..
October 26, 2003, 12:55 PM
Kp
[quote author=Soul Taker link=board=17;threadid=3267;start=0#msg25768 date=1067151777]
The format is:
[quote](DWORD) Number of Accounts
(DWORD) Number of Keys
(DWORD) Request ID
(STRING[]) Requested Accounts
(STRING[]) Requested Keys
(STRING) Unknown (Empty)[/quote]
... the amount of keys always was one lower than the amount shown in the second DWORD (I don't know if it counts the account as a key or what, maybe someone else could explain why).[/quote]It has always been my theory that the final empty string is included in the key count because it is part of the Requested Keys set of strings. Why they have an empty string in there if they already reference counted it, I'm uncertain. Possibly they wrote their parser code to depend on one, then later realized that the counter field was better. *shrug*
October 26, 2003, 1:54 PM
Soul Taker
It's frustrating for me to write up a paragraph telling you how to fix your problem, even including what to send as a DWORD fo the amount of keys, and then seeing you ask what to send for the amount of keys :-\

Kp: yea, that would make sense.
October 26, 2003, 3:50 PM

Search