L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 01:16:55 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Helpful posts > Topic: AOChat: not expecting login.
Pages: 1 2 [3] 4 5 6   Go Down
« previous next »
Print
Author Topic: AOChat: not expecting login.  (Read 8597 times)
0 Members and 1 Guest are viewing this topic.
Lucid
Freshman
*
Offline Offline

Gender: Male
Posts: 6



Re: AOChat: not expecting login.
« Reply #30 on: June 30, 2006, 10:54:11 PM »

Instead of being lazy I turned a little proactive and added some debug statments on the in and out packets with tags around the data as such.
Code:
echo "In Packet:\n<".$data.">\n";
This resulted in the following output.
Code:
[2006-07-01 03:06:44]   [LOGIN] [STATUS]        Connecting
In Packet:
< 35199d1cdb4a38d35250fd19883a6773>
[2006-07-01 03:06:45]   [LOGIN] [STATUS]        Authenticateing
Debug key:
<35199d1cdb4a38d35250fd19883a6773>
<#Acount#>
<#Password#>
Out Packet:
<
#String removed cause it's got encrypted info about my account (^_^)#>
In Packet:
<0Authentication failed: Illegal alias or password>
[2006-07-01 03:06:47]   [LOGIN] [RESULT]        Error
[2006-07-01 03:06:47]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.
So if it's to be believe it is rejecting my alias or password though I know both are fine.  I ran the same debuging AOChat in windows and the output is pretty much similar only with funky characters in place of whitespace.
Code:
[2006-07-01 03:13:59]   [LOGIN] [STATUS]        Connecting
In Packet:
<  dd59447eca221ac62c2bbebfc5a08233>
[2006-07-01 03:14:00]   [LOGIN] [STATUS]        Authenticateing
Debug key:
<dd59447eca221ac62c2bbebfc5a08233>
<#Account#>
<#Password#>
Out Packet:
< ☻☺ô
#ConnectionString#>
In Packet:
< ☺f÷Xx #BotName# ☺   ♂ ☺    >
[2006-07-01 03:14:00]   [LOGIN] [STATUS]        Logging in
Out Packet:
< ♥ ♦f÷Xx>
In Packet:
<>
[2006-07-01 03:14:01]   [LOGIN] [RESULT]        OK
I also have just tried the modified AOChat that Icidw posted and came up with the same error, that AOChat also works on the windows box.  The only other thing I can think of is the locales, my box is fully utf8 unicode based and php is also compiled with the unicode flag.
Logged
Lucid
Freshman
*
Offline Offline

Gender: Male
Posts: 6



Re: AOChat: not expecting login.
« Reply #31 on: July 01, 2006, 12:32:08 AM »

I recompiled php without the hardening patches and it worked fine.  This is a pitty since I'd prefer to have a hardenedphp running on the server.
Logged
laen
Rookie
**
Offline Offline

Posts: 21


Re: AOChat: not expecting login.
« Reply #32 on: July 01, 2006, 08:25:01 AM »

Damn, and i have hardware here planned to become a hardened webserver..

I guess we could use a complete rewrite of AOChat compliant to hardened php.
Logged
Mossi
Freshman
*
Offline Offline

Gender: Male
Posts: 3


Re: AOChat: not expecting login.
« Reply #33 on: August 21, 2006, 07:33:58 PM »

I have a similar problem with AOChat and aokex. I tried running it on an Ubuntu machine with following versions installed:

PHP 5.1.2 / Zend Engine v2.1.0
MySql 5.0.22

The following modules are installed:

- bcmath
- sockets
- gmp
- bz2
- mysql
... (and many more)

I activated the debug functionality in AOChat.php and found the following error message from server:

Code:
)'Authentification failed: Challenge failed

Now I have no idea where to continue with my search. The config files seems to be correct, because with the same files the Bot runs on a windows machine.

Can anyone help?
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: AOChat: not expecting login.
« Reply #34 on: August 21, 2006, 10:54:13 PM »

I'm going to add some debug statements to make it easier to distinguish which method is being used to generate the login hash. Check back later today.

The main problem right now is that the php methods are highly unreliable due to changes in PHP, and updates are badly needed to the hash generation code in the AOChat php library. However that requires good maths skills aswell as php knowledge, which puts it a bit out of my league Sad
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Mossi
Freshman
*
Offline Offline

Gender: Male
Posts: 3


Re: AOChat: not expecting login.
« Reply #35 on: August 22, 2006, 09:07:28 AM »

I've already a debug message to see if the correct key generation is used and it uses the aokex_generate_key

So. This seems to be ok.

I've also tested if there could be a problem with my firewall, but there are no messages in the log file.

is it possible, that there are problems with the language environment? I'm not sure, but as I know, my system is configured using UTF-8. Perhaps this could cause a problem. I will check this when I'm at home (if I will find the commands to configure this  Embarrassed)
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: AOChat: not expecting login.
« Reply #36 on: August 22, 2006, 10:15:02 AM »

Hrm. I have no idea then Sad
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: AOChat: not expecting login.
« Reply #37 on: August 22, 2006, 11:34:38 AM »

I run Ubuntu and had a similar issue though with php4.4+. I couldn't get openssl to work but GMP worked eventually after following the instructions correctly.
Logged

Eternalist
General of The Syndicate
Mossi
Freshman
*
Offline Offline

Gender: Male
Posts: 3


Re: AOChat: not expecting login.
« Reply #38 on: August 23, 2006, 01:45:08 PM »

Yeahhh... I've fixed the problem

I got the tip, that on Ubuntu sometimes the libraries libgmp3c2 and libgmpxx3 are installed with unresolved dependencies. But these packages are needed for aokex to work correctly.

I've removed the packages and compiled them by myself (downloaded on http://www.swox.com/gmp/#DOWNLOAD). It's recommened to use the 'make check' command as described in the install instructions.
After installing the new library, I compiled again the aokex module against these library and now it works

Afterwards I saw, that it's possible to switch the compilation of aokex to openssl (I should learn to read the manuals more exactly). Perhaps this would also be a possible way to solve the problem.
Logged
kuznechik
BeBot Contributor
Rookie
*******
Offline Offline

Gender: Male
Posts: 60



Re: AOChat: not expecting login.
« Reply #39 on: September 25, 2006, 02:54:04 AM »

Hi all, I've tested it once more.
FreeBSD 6.1
php5 5.1.6
bebot 2.8 and 3.3
with and w/o Aokex, with modified AOChat that was posted here.

Still: AOChat: not expecting login.

Did I did something wrong? Or I'm missing something? WTB fix, my php 4.3.7 computer will be shutted down soon, need to transfer my bots to other computer with up-to-date php.
Logged

Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: AOChat: not expecting login.
« Reply #40 on: September 25, 2006, 07:07:36 AM »

A modified aochat.php never fixed the problem for me. You should use the aokex fix.
Logged

Eternalist
General of The Syndicate
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: AOChat: not expecting login.
« Reply #41 on: September 25, 2006, 11:47:51 AM »

Unfortunately it appears that even aokex generates wrong keys on some systems according some tests i have done.
Auno however is no longer active in AO and currently we have no other alternatives Sad
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
paal
Freshman
*
Offline Offline

Posts: 2


Re: AOChat: not expecting login.
« Reply #42 on: October 16, 2006, 09:41:36 PM »

tried both openssl and GMP in Ubuntu no luck :§
box runs dual xenon cpu.
Logged
Hurtig
Freshman
*
Offline Offline

Posts: 4


Re: AOChat: not expecting login.
« Reply #43 on: November 27, 2006, 03:44:51 PM »

Hi,

I have been trying to get BeBot to work on Ubuntu 6.10 (Edgy) to with the aokex solution.

So far I have compiled and installed aokex and AOChat now loads it.

However I'm getting an error when I try to run start.php.

Code:

...

[2006-11-27 20:09:37]   [LOGIN] [STATUS]        Connecting
/usr/bin/php5-cgi: symbol lookup error: /usr/lib/php5/ext/aokex.so:undefined symbol: __gmp_set_memory_functions
[2006-11-27 20:09:37]   [LOGIN] [STATUS]        Authenticating
Using AOKex for login key generation
X-Powered-By: PHP/5.1.2
Content-type: text/html

The script just restarts after this  Huh
« Last Edit: November 27, 2006, 04:00:02 PM by Hurtig » Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: AOChat: not expecting login.
« Reply #44 on: November 27, 2006, 04:38:52 PM »

Hurtig, this is indicating that you are missing parts of the GMP library, possibly the actual library itself.
You could also try the OpenSSL method instead of GMP.

Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Pages: 1 2 [3] 4 5 6   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Helpful posts > Topic: AOChat: not expecting login.
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 16
Total: 16

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.249 seconds with 28 queries. (Pretty URLs adds 0.032s, 4q)
Loading...