Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new login from gameforge IKARIAM #19

Open
mvictora opened this issue Jul 31, 2019 · 12 comments
Open

new login from gameforge IKARIAM #19

mvictora opened this issue Jul 31, 2019 · 12 comments

Comments

@mvictora
Copy link

Dear Omri,

please update the way accounts login according to the new update from Ikariam (version 8.0.0) updated 31 Jul 2019.

it is really complicated for me to revise , so pleaseeeeeee do this update, it is a new challenge for you, I hope you have time to do it.

thank you in advance
Regards.

@physics-sec
Copy link

May be i can help to make the implementation a little easier (i don't program in C# or Javascript, so i can't do a PR, sorry)

I will enumerate which requests are needed in order to log in into an account:

  1. POST https://pixelzirkus.gameforge.com/do/simple -> this will assign you a cookie you will need later
  2. POST https://lobby.ikariam.gameforge.com/api/users (whith the email and passwd) -> this will return 400 if the creds are wrong
  3. GET https://lobby.ikariam.gameforge.com/api/users/me/accounts -> this will give you all the accounts available for that email
  4. GET https://lobby.ikariam.gameforge.com/api/servers -> whis will give you info about the servers available (you may not need it)
  5. GET https://lobby.ikariam.gameforge.com/api/users/me/loginLink?id={}&server[language]={}&server[number]={} -> this will return a url
  6. GET - url obtained previously -

I didn't include the parameters of the POSTs requests, but you can find them in the actual implementation in python -> https://github.com/physics-sp/ikabot/blob/5037f83cb9667491756469e1cc34a145e9098553/ikabot/web/sesion.py#L150

Good luck!

@rodrigohunter
Copy link

I didnt understand , Where I need to change or what folder a need to chance with this codes... Pls,
could you please explain better? With more details.... tks

@physics-sec
Copy link

Currently you are logging in using the "old" url: index.php?view=city&action=loginAvatar&function=login
You can find this url in several files in your repo:

  • Programs/IkariamBots/Ikariambots/AutoRegister.cs
  • Programs/IkariamBots/Ikariambots/Ikariam/User.cs
  • Programs/IkariamBots/Ikariambots/Resources/about_blank.html
  • Programs/IkariamBots/Ikariambots/Search.cs

This method does not work any more, so you need to implement the new way
For example, you will need to re implement the Login method/function in Programs/IkariamBots/Ikariambots/Ikariam/User.cs in line 65.
instead of just that POST to view=city&action=loginAvatar&function=login
you will need to make all that requests that i listed before.

@rodrigohunter
Copy link

Thanks for the help dude... But, I couldn't do that.. I just need to change this infomations, right ?

dev

@physics-sec
Copy link

Yep. that is the part you need to change.
But now there are a few more requests needed, not just that POST to that URL.
I'm sorry i can't be more specific, but i don't program in C#.

@Tottixyz
Copy link

Tottixyz commented Aug 9, 2019

Hello
will it be possible to use the program again?
a change is made?
or I need help to get the program running again

You're welcome
greeting

@Tottixyz
Copy link

Tottixyz commented Aug 9, 2019

such a great program

can someone bring it back up please?
this is to be paid, no matter the main thing it is running again
greeting

@mvictora
Copy link
Author

mvictora commented Aug 9, 2019

no one want to work on this project anymore!!!!!

"physics-sp" how to make the login fixed to specific server and delete all unnecessary codes!

what if we need to fix Ikariam US server "Hades "

@Tottixyz
Copy link

Tottixyz commented Aug 9, 2019

Well, why, you could pay it.

so many players want to use it, because I do not understand why because no one wants to work on it anymore.

I would be happy if who accepts the matter

@rodrigohunter
Copy link

Please, update :(

@ik4bot
Copy link

ik4bot commented Jan 30, 2020

@rodrigohunter @mvictora @Tottixyz i think this will be helpful is working great for me https://ik4bot.com/

@rodrigohunter
Copy link

!up...
Anyone who understands and can update this application? We can pay some amount

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants