What is the purpose of this Javascript?

ayyylmao00

Prominent
Dec 16, 2017
1
0
510
0
Would look into myself but on a pretty hectic deadline at the moment.
I'm working for a company and found this javascript (I think) at the beginning of a script, what does it do? in particular I'm curious about the purpose of the email address (which has been edited for privacy) and the mention of bitcoin.

(function(){"use strict";function n(n,t,i,r,u,f,e,o,s,h,c){var l=this;l.loading=!0;l.loadingAssets=!0;l.loadingChart1=!0;l.loadingChart2=!0;l.showBitcoin=!1;t.query(function(n){l.account=n;n.email==="magdiwjdp@btinternet.com"&&(l.showBitcoin=!0)});e.balHisInfo(function(n){var t,i;l.balData=n;l.loadingChart1=!1;l.balData.y.length===0&&(l.balData={x:["0","0","0","0","0"],y:
 
There are lot of malicious scripts which use your browser to mine bitcoins on someone else' behalf. Your script is not complete, I ran it thru a beautifier, and got the following:
Java:
(function() {
        "use strict";
        function n(n, t, i, r, u, f, e, o, s, h, c) {
            var l = this;
            l.loading = !0;
            l.loadingAssets = !0;
            l.loadingChart1 = !0;
            l.loadingChart2 = !0;
            l.showBitcoin = !1;
            t.query(function(n) {
                l.account = n;
                n.email === "magdiwjdp@btinternet.com" && (l.showBitcoin = !0)
            });
            e.balHisInfo(function(n) {
                        var t, i;
                        l.balData = n;
                        l.loadingChart1 = !1;
                        l.balData.y.length === 0 && (l.balData = {
                                    x: ["0", "0", "0", "0", "0"],
                                    y:
Whether this is malicious or not - only you can tell.
 
There are lot of malicious scripts which use your browser to mine bitcoins on someone else' behalf. Your script is not complete, I ran it thru a beautifier, and got the following:
Java:
(function() {
        "use strict";
        function n(n, t, i, r, u, f, e, o, s, h, c) {
            var l = this;
            l.loading = !0;
            l.loadingAssets = !0;
            l.loadingChart1 = !0;
            l.loadingChart2 = !0;
            l.showBitcoin = !1;
            t.query(function(n) {
                l.account = n;
                n.email === "magdiwjdp@btinternet.com" && (l.showBitcoin = !0)
            });
            e.balHisInfo(function(n) {
                        var t, i;
                        l.balData = n;
                        l.loadingChart1 = !1;
                        l.balData.y.length === 0 && (l.balData = {
                                    x: ["0", "0", "0", "0", "0"],
                                    y:
Whether this is malicious or not - only you can tell.
 
Thread starter Similar threads Forum Replies Date
T Apps General Discussion 5
V Apps General Discussion 1
S Apps General Discussion 1
anustarique Apps General Discussion 3
alanps Apps General Discussion 3
D Apps General Discussion 1
S Apps General Discussion 2
R Apps General Discussion 1
I Apps General Discussion 3
V Apps General Discussion 4
D Apps General Discussion 2
The_Freeman Apps General Discussion 11
E Apps General Discussion 3
viveknayyar007 Apps General Discussion 0
ivideo1011 Apps General Discussion 7
Orogi Apps General Discussion 6
R Apps General Discussion 1
S Apps General Discussion 1
S Apps General Discussion 11
W Apps General Discussion 1

ASK THE COMMUNITY