I'm trying to write an aim bot in php, and I've had NO trouble at all with anything except this one little thing.. try to encode ("roast") a password so that the aim toc server will accept it...
"Passwords are roasted when sent to the host. This is done so they aren't sent in 'clear text' over the wire, although they are still trivial to decode. Roasting is performed by first xoring each byte in the password with the equivalent modulo byte in the roasting string. The result is then converted to ascii hex, and prepended with '0x'. So for example the password 'password' roasts to '0x2408105c23001130'" - PROTOCOL.txt (I think theres a copy at http://www.student.carleton.edu/s/straitm/final/PROTOCOL)
Well, I've been trying to write a roast_pass() function in php for the last two days.... Ive attempted converting functions I've found in other languages to php (Perl, Tcl, C) but so far it hasnt really worked..... before that I had a good go at writing my own and I still couldnt do it.... and I cant find anyone else who's written a function to do that in php....
Could anyone possibly help write a roast() function? Or if you know of one that someone else has written _ I cant find ANY aim stuff in php.... who knows... theres probably a heap on phpbuilder that I didnt bother to look for.... goes to look now