an0nlk / 1XBET_Crash_CF_Capture

Capture the CF Value of 1XBET Crash game using Puppeteer
29 stars 38 forks source link

error in the data, the websocket was updated, fix included #4

Open davidadriel64 opened 6 months ago

davidadriel64 commented 6 months ago

Hello, I leave the fix for the new data in the js that is executed with node (1xbet_crash_cf_capture.js) : the code is the following:

line 31 a 37

   if (payloadString.includes('"target":"OnCrash"')) {
          payloadString = payloadString.replace(/[^\x20-\x7E]/g, "");
          const payload = JSON.parse(payloadString);

          const { l, f, ts } = payload.arguments[0];
          console.log(f, l, ts);
          const csvData = `${f},${l},${ts}\n`;