Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: PaiD on February 15, 2003, 03:55 PM

Title: order in making a bot
Post by: PaiD on February 15, 2003, 03:55 PM
ok i was wondering what is the order in making a bot.
Like right when you open the vb program what do you do?
Title: Re: order in making a bot
Post by: Noodlez on February 15, 2003, 04:30 PM
click file->new project
Title: Re: order in making a bot
Post by: PaiD on February 15, 2003, 04:47 PM
ok i should restate the question. On the connectionions what packets do i send?
Title: Re: order in making a bot
Post by: kows on February 15, 2003, 04:48 PM
Quoteclick file->new project
lol
Title: Re: order in making a bot
Post by: Noodlez on February 15, 2003, 05:16 PM
the first packet you send (assuming your using star/sexp/war3/d2dv/d2xp) would be 0x50
Title: Re: order in making a bot
Post by: PaiD on February 15, 2003, 06:28 PM
k thx i just got a packet sniffer
Title: Re: order in making a bot
Post by: l)ragon on February 15, 2003, 08:16 PM
Quotethe first packet you send (assuming your using star/sexp/war3/d2dv/d2xp) would be 0x50

0x01 8p
Title: Re: order in making a bot
Post by: Atom on February 15, 2003, 08:19 PM
in your case, it would prolly be chr(3)
Title: Re: order in making a bot
Post by: Mesiah / haiseM on February 16, 2003, 12:54 PM
depends on if hes making binary bot or chat bot

if its binarybot, get the socket connected, then send chr(1), then 0x50.

if its chatbot, get the socket connected, then send chr(3) & chr(4) (chr(4) is optional), then username & newline & password, newline.
Title: Re: order in making a bot
Post by: Etheran on February 16, 2003, 06:05 PM
hey! just go look at bnet docs!  ;D
Title: Re: order in making a bot
Post by: Dark-Feanor on February 16, 2003, 06:08 PM
Well it matters if you using WinSocket or BNLS. LoL is BNLS easy.
Title: Re: order in making a bot
Post by: Yoni on February 16, 2003, 10:09 PM
QuoteWell it matters if you using WinSocket or BNLS. LoL is BNLS easy.
/me wonders how you would use BNLS without using sockets
Title: Re: order in making a bot
Post by: Noodlez on February 16, 2003, 10:12 PM
i think he means it matters if your using winsock.ocx or CSB
Title: Re: order in making a bot
Post by: haZe on February 17, 2003, 01:12 AM
whats chr(4)!!
Title: Re: order in making a bot
Post by: tA-Kane on February 17, 2003, 08:22 AM
^D
Title: Re: order in making a bot
Post by: Eibro on February 17, 2003, 10:07 AM
'\4'
Title: Re: order in making a bot
Post by: Banana fanna fo fanna on February 17, 2003, 11:17 AM
ipban perhaps
Title: Re: order in making a bot
Post by: Camel on February 22, 2003, 11:03 AM
Quote0x01 8p
its not actually packet 0x01, its just a single byte
Title: Re: order in making a bot
Post by: Noodlez on February 22, 2003, 08:12 PM
so? its still a packet.
just because if doesnt have the bnet packet header doesn't mean it's not a packet.
Title: Re: order in making a bot
Post by: Camel on February 23, 2003, 05:56 AM
how did i know you were going to say that...

yes, but you wouldnt call it "packet 0x01", because then you would have to call every othe packet "0xFF" or "0xFF 0xwhatever"

[edit] me fail english?
Title: Re: order in making a bot
Post by: Banana fanna fo fanna on February 23, 2003, 06:35 AM
I prefer referring to them as "bnet messages" instead of "packets," because you have no control over the TCP packets when you're using the TCP layer.
Title: Re: order in making a bot
Post by: Yoni on February 23, 2003, 08:56 AM
Quoteno control
Well, technically you have a little control...
Even without using raw sockets, you can change some things in the header with setsockopt.
Title: Re: order in making a bot
Post by: Camel on February 23, 2003, 09:08 AM
if you're handy enough. you could send() some data, and then quicly hack the memory before it gets sent
Title: Re: order in making a bot
Post by: Yoni on February 23, 2003, 09:10 AM
Quoteif you're handy enough. you could send() some data, and then quicly hack the memory before it gets sent
ehh... No, if you really wanted to do something like that, you'd install some kind of API hook/jmp before calling send, not do it "quickly after"!
Title: Re: order in making a bot
Post by: Skywing on February 23, 2003, 10:19 AM
Quoteif you're handy enough. you could send() some data, and then quicly hack the memory before it gets sent
By the way, at least on NT your data is quickly passed on to kernel mode drivers, such as NDIS.SYS.  You'd have a hard time bothering kernel mode memory from user mode.
Title: Re: order in making a bot
Post by: Banana fanna fo fanna on February 25, 2003, 11:11 AM
Yoni: notice how I said TCP layer ;)