• Welcome to Valhalla Legends Archive.
 

Possibility Putting A Bot On A Website

Started by UnderCover, August 24, 2003, 07:16 AM

Previous topic - Next topic

UnderCover

thx alot :) i will start to work on that

UnderCover

wut type of socket would i use to connect to battle.net?



socket_connect(AF_INET, useast.battle.net, 0)



I tried that one but i don't think it worked...

Camel

#17
Well, you could start by putting quotes around useast.battle.net.
Additionally, you'll need to connect on port 6112, not port 0.

PHP could not possibly be documented more thoroughly.

UnderCover

ok thx i will put another forum here if i need help lol :)

Adron

Does php have functions suited for processing binary data? Or will it mostly be a hack?

Adron

Quote from: Camel on August 24, 2003, 06:11 PM
Well if it doesnt, one could use the Winsock control. Even then, I seriously doubt that flash would be able to perform a checksum, decode a cd key, or hash anything.

If you're using controls, why not use csb?

I'm pretty sure Flash could perform checksums, decode cd keys and hash things. Mathematical algorithms shouldn't be a problem, I recall the engine being rather capable.

What I don't know is how to solve the communications with the outside world, and converting binary data to data that Flash can understand.


Camel

#21
Quote from: Adron on August 25, 2003, 02:42 PM
Does php have functions suited for processing binary data? Or will it mostly be a hack?

At the very least it has chr() and ord() which are enough to at least get going on "number"<-->"string" conversion.
www.php.net/strings

[edit] Even better, check out pack().

Adron

I suppose, assuming that it can handle strings with the full range of char codes (especially \0) in them.

Camel

#23
Quote from: Adron on August 25, 2003, 03:12 PM
I suppose, assuming that it can handle strings with the full range of char codes (especially \0) in them.

The only thing it can't do is output \0 to the browser.

[edit] Well, it can *do* it, but...well, try it yourself.

Adron

Quote from: Camel on August 25, 2003, 03:23 PM
The only thing it can't do is output \0 to the browser.

[edit] Well, it can *do* it, but...well, try it yourself.

Hmm, I have absolutely no experience with php. So, enlighten me, what happens? :)

Camel

At least in my experience, the output is treated as a null terminated string. The rest of the document just stops.

UnderCover

so wut type of socket would bnet run on i see theres so many diff types of sockets to use im not sure whcich one...

Adron


Banana fanna fo fanna


$csb = new Com('CleanSlateBotClassNameWhateverItIs');


Adron

lol, does that actually work when php is running under IIS? I have a feeling it won't work very well under linux/Apache...

|