collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: AOChat: not expecting login.  (Read 124585 times)

0 Members and 3 Guests are viewing this topic.

Offline Lucid

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #30 on: July 01, 2006, 05:54:11 am »
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: [Select]
echo "In Packet:\n<".$data.">\n";This resulted in the following output.
Code: [Select]
[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: [Select]
[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.

Offline Lucid

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #31 on: July 01, 2006, 07: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.

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #32 on: July 01, 2006, 03:25:01 pm »
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.

Offline Mossi

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #33 on: August 22, 2006, 02:33:58 am »
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: [Select]
)'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?

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOChat: not expecting login.
« Reply #34 on: August 22, 2006, 05:54:13 am »
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 :(
BeBot Founder and Fixer Kingpin

Offline Mossi

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #35 on: August 22, 2006, 04:07:28 pm »
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  :-[)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOChat: not expecting login.
« Reply #36 on: August 22, 2006, 05:15:02 pm »
Hrm. I have no idea then :(
BeBot Founder and Fixer Kingpin

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: AOChat: not expecting login.
« Reply #37 on: August 22, 2006, 06:34:38 pm »
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.
Eternalist
General of The Syndicate

Offline Mossi

  • BeBot Rookie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #38 on: August 23, 2006, 08: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.

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #39 on: September 25, 2006, 09: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.
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: AOChat: not expecting login.
« Reply #40 on: September 25, 2006, 02:07:36 pm »
A modified aochat.php never fixed the problem for me. You should use the aokex fix.
Eternalist
General of The Syndicate

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOChat: not expecting login.
« Reply #41 on: September 25, 2006, 06:47:51 pm »
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 :(
BeBot Founder and Fixer Kingpin

Offline paal

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #42 on: October 17, 2006, 04:41:36 am »
tried both openssl and GMP in Ubuntu no luck :§
box runs dual xenon cpu.

Offline Hurtig

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: AOChat: not expecting login.
« Reply #43 on: November 27, 2006, 09: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: [Select]

...

[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  ???
« Last Edit: November 27, 2006, 10:00:02 pm by Hurtig »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOChat: not expecting login.
« Reply #44 on: November 27, 2006, 10: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.

BeBot Founder and Fixer Kingpin

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 139
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal