ckalgos / FUT-Auto-Buyer

Fifa UT AutoBuyer / Snipping Bot for fifa ultimate team web app with captcha solver
ISC License
643 stars 199 forks source link

Decript ocompiled.js #142

Closed totti240282 closed 3 years ago

totti240282 commented 3 years ago

How decript https://www.ea.com/fr-fr/fifa/ultimate-team/web-app/js/ocompiled.js?_=188971 ?

WildCard1 commented 3 years ago

Took a quick look.

The first part is base64, e.g. the first one "Z2V0U0JDSW1hZ2VVUkk=" = "getSBCImageURI"

The second part looks like hex (e.g. 0x5303).

You can convert base64 pretty easily in several ways/language. I guess you want to stick with JS, this should then be of help for b64 decode (from https://www.digitalocean.com/community/tutorials/how-to-encode-and-decode-strings-with-base64-in-javascript)

// Define the string
var string = 'Hello World!';

// Encode the String
var encodedString = btoa(string);
console.log(encodedString); // Outputs: "SGVsbG8gV29ybGQh"

// Decode the String
var decodedString = atob(encodedString);
console.log(decodedString); // Outputs: "Hello World!"
totti240282 commented 3 years ago

Ok for base64, but for code in hex ?

were you able to compile it?

totti240282 commented 3 years ago

How did you come to understand that inside that code there are the services classes etc?