Implementing Pushwoosh on Electron

Comments

1 comment

  • Avatar
    Danilo

    Ok I finally was able to read the code.

    So the hwid on chrome is actually:

    this, to generate a 'fake token':

    for (var fake_token = "", r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n = 0; n < 32; n++)
    {
      fake_token += r.charAt(Math.floor(Math.random() * r.length));
    }
    

    and then this, to make the generated 'fake token' hexadecimal i guess

       for (var t = "0123456789abcdef", hwid = "", n = 0; n < 32; n++) {
            var i = fake_token .length - n - 1, s = 0;
            0 > i || (s = fake_token .charCodeAt(i)),
            hwid += t.substr(s % t.length, 1)
        }
    

    console.log(hwid);

    so, hwid is a 32 position random A-z and number string converted to hexadecimal. And saved in the localStorage for all eternity... well or until cookies are cleared.

    in other words.. its just a random generated string. Answer 1 is cleared!

Please sign in to leave a comment.