Game Development Community

CPU Usage

by Andrew Mac · in Site Feedback · 03/13/2014 (3:13 pm) · 19 replies

So I've noticed my google chrome CPU usage has been skyrocketing so I began investigating. It lead to me chrome's task manager that showed the GG website and forums are what's using all the CPU. I tracked it down to this script:

<!-- Experimental -->
<script src="/static/js/bcclient.js"></script>

Here's a pastebin of the script in case someone alters it (I'm paranoid):
pastebin.com/Srku5DmA

At first I thought it was just an AJAX script, but after I looked more closely it looks like it's running some kind of hash and sending the results to "ws://ronsTestMachine.cloudapp.net:80/"

Am I crazy or is this malicious?

#1
03/13/2014 (3:24 pm)
That's very weird. Chrome has 10 processes open on my machine right now (I have nine tabs open) and none of them register higher than 2% usage and about 100KB memory - most of the time they're "0%". That's an interesting bit of script, but I'm not seeing anything in there that actually "gets" data - only hashes or sends it. So another process would have to be collecting the data to send, I'd think....
#2
03/13/2014 (3:27 pm)
Well at the very least it's a good benchmark for different browsers javascript engines. Here's the results I get:

Chrome - 99% CPU Usage
IE - 60% CPU Usage
Firefox - 20% CPU Usage

It's making me unable to keep the forums open while working on anything though, it's killing my FPS. Even if it's not malicious I'd still like to know what it is and what it's doing.
#3
03/13/2014 (3:35 pm)
Here's the script with the work in it:
pastebin.com/jJkEgAq4

Originally found here:
garagegames.com/static/js/sha.js
#4
03/13/2014 (3:53 pm)
Hmm - might be a left-over from the 3SS update system. I can't imagine what else it'd be doing there.
#5
03/13/2014 (4:26 pm)
Thanks for bringing this to our attention, this has been removed from the site.
#6
03/13/2014 (4:32 pm)
Now if only we could get GG to fix editing of posts causing escaped character garbage as fast. ;)
#7
03/13/2014 (5:11 pm)
If only that were a simple fix... lol

Hey, did you guys ever manage to find a second web guy or are you still whipping Zach to death?
#8
03/13/2014 (6:01 pm)
@Nathan,
This is a partial fix:
www.garagegames.com/community/resources/view/21864

I no longer fear editing posts, resources, or blogs.
#9
03/13/2014 (6:45 pm)
Haha, I was wondering what was going on these past couple days. My cpu usage was really high when I was on this website. Thanks for fixing this.
#10
03/14/2014 (11:05 am)
Actually I think you guys just thwarted SkyNet from using computer resources from GG users.
#11
03/14/2014 (11:24 am)
You're welcome.
#12
03/14/2014 (11:30 am)
lol, that is just Awesome!
#13
03/14/2014 (11:34 am)
You know what's not awesome?

1.bp.blogspot.com/-pcjhLf-M7dA/UnM49KEHfRI/AAAAAAABHKo/nF4Hqu-NYDk/s400/nuke.png
Judgement Day is nothing to joke about.
#14
03/14/2014 (11:54 am)
Someone used people here to mine bitcoins.
#15
03/14/2014 (5:00 pm)
Well, they failed to get any from me... the only virtual currency I own is in U.S. Dollars and SWTOR Credits.... lol
#16
03/14/2014 (5:27 pm)
@Richard - You do not need your currency. Maybe you should hand it off to me.

img1.wikia.nocookie.net/__cb20120623145334/starwars/images/c/c9/1000Credits.jpg
#17
03/15/2014 (9:14 am)
@Mich - Is it just me, or does that image of Kaas City look like the Disney Castle just a little? Oh, and this is not the mark you are looking for. lol
#18
03/15/2014 (2:15 pm)
The question is: If you could send an email back in time to yourself to try and prevent a future disaster would it end up marked as SPAM? Seriously we could have future warning being sent to ourselves every day and we would not know it...

Edit:
Ooh, make a movie like that and call it "SPAM".