JKetelaar / PHP-FUT-API

The perfect PHP FUT 17 API
GNU General Public License v3.0
17 stars 5 forks source link

FIFA 18 #54

Open JKetelaar opened 6 years ago

JKetelaar commented 6 years ago

Let's see if this is possible

suckedjs commented 6 years ago

That would be great. Any news?

nco-webdev commented 6 years ago

I'm interested to contribute. May be you can give more info about how you did this for the 2017 version ?

JKetelaar commented 6 years ago

It’s probably just a matter of changing the Api values. Just as the change from 16 to 17.

Most of it is stored in Configuration I think, but this project has been a while ago for me.

maxruppel commented 6 years ago

I checked some of the URLs and fixed them locally to see if it works as well for fut18. Seems to me like they changed the login-page containing some random-key in the URL so it might get a little tricky.

JKetelaar commented 6 years ago

Thanks for the update @maxruppel, I'll take that in mind. It's probably generated content that can be grabbed from another page.

suckedjs commented 6 years ago

I tried to update the URLs and config files but I got stucked here

Fatal error: Uncaught JKetelaar\fut\api\errors\login\MainLogin: Unable to login with unknown response With the following message: Unknown error/page occurred (Invalid Request) With error code: 281752 in \src\JKetelaar\fut\api\user\Login.php:416 Stack trace: #0 \src\JKetelaar\fut\api\user\Login.php(98): JKetelaar\fut\api\user\Login->postTwoFactorForm('https://signin....') #1 \src\JKetelaar\fut\api\API.php(270): JKetelaar\fut\api\user\Login->login() #2 index.php(10): JKetelaar\fut\api\API->login() #3 {main} thrown \src\JKetelaar\fut\api\user\Login.php on line 416

suckedjs commented 6 years ago

The signin link is now generated by a javascript now in order to beat tools like this. As I know php is not able to process javascript code

suckedjs commented 6 years ago

The web-app stopped working on my Firefox and I had no clue way. I just noticed that it now detects the Firefox addon that I had installed: HTTP LIVE HEADERS and it stops working. As soon as disabled the add-on, it started working again. Another protection

JKetelaar commented 6 years ago

Thanks for the investigation @suckedjs, though we'll need to see what the JavaScript actually generates then, as that could possibly be faked with any other programming language.

suckedjs commented 6 years ago

Looks like someone posted a new php project with the code we are after: https://github.com/InkedCurtis/FUT18-WebApp-Connector/blob/master/traits/Login.php

suckedjs commented 6 years ago

Looks like the postTwoFactorForm() is broken, returns invalid request. Can you have a look @JKetelaar ?

Returns Invalid request. I changed the token variable to OneTimeCode as they renamed it.

JKetelaar commented 6 years ago

Thanks, I'll take a look at it this weekend. Will keep you updated!

suckedjs commented 6 years ago

any updates?

futdev commented 6 years ago

@suckedjs - take a look here : https://github.com/InkedCurtis/FUT-API