PHP-FUT-API icon indicating copy to clipboard operation
PHP-FUT-API copied to clipboard

FIFA 18

Open JKetelaar opened this issue 7 years ago • 14 comments

Let's see if this is possible

JKetelaar avatar Oct 03 '17 10:10 JKetelaar

That would be great. Any news?

suckedjs avatar Oct 04 '17 16:10 suckedjs

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

nco-webdev avatar Oct 04 '17 20:10 nco-webdev

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.

JKetelaar avatar Oct 04 '17 20:10 JKetelaar

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.

maxruppel avatar Oct 08 '17 13:10 maxruppel

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

JKetelaar avatar Oct 08 '17 17:10 JKetelaar

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 avatar Oct 13 '17 19:10 suckedjs

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 avatar Oct 13 '17 20:10 suckedjs

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

suckedjs avatar Oct 14 '17 15:10 suckedjs

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.

JKetelaar avatar Oct 14 '17 15:10 JKetelaar

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 avatar Oct 16 '17 10:10 suckedjs

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.

suckedjs avatar Oct 17 '17 15:10 suckedjs

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

JKetelaar avatar Oct 19 '17 17:10 JKetelaar

any updates?

suckedjs avatar Oct 30 '17 00:10 suckedjs

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

futdev avatar Oct 30 '17 12:10 futdev