Closed cr4zyfish closed 3 months ago
I changed the address and request format several times because I was fighting a bad guy who was stealing my investment data. At some point, I just added the same request signing mechanism that is used for the game, so as not to invent something new. There is nothing about Api-Key, the set_sign_headers function uses Api-Time and Api-Hash. Api-Hash is just a request signature, which is md5(time_json). And on the server I use them for verification:
Maybe a setting to disable investment is also needed in .env file.
I changed the address and request format several times because I was fighting a bad guy who was stealing my investment data. At some point, I just added the same request signing mechanism that is used for the game, so as not to invent something new. There is nothing about Api-Key, the set_sign_headers function uses Api-Time and Api-Hash. Api-Hash is just a request signature, which is md5(time_json). And on the server I use them for verification:
ummm but why do u need to store this data on your own site? this seems really suspicious
@axeed11 What are you talking about? I don't store anything on the site. The Api-Time and Api-Hash headers are only used to sign the request that comes to the script. There is no value in these headers to store them anyway. How did you even come up with this?
Now you can set INVEST_ENABLED=False in your .env
file to disable this functionality. But first, update the bot.
Why are you sending api-hash and api-key to your own server at https://alexell.pro/crypto/x-empire/data/ ?
file: bot.py
line:
await self.set_sign_headers(data=json_data)