Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Is this code malicious?


  • Please log in to reply

#16
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Well I try to explain it then :whistling:

The first few lines just sets some variables.

if(plugin) I think is testing if the variable does not equal null, because that would be the case if the objects it is string to access don't exist.

It then gets a number or else write some bad html. document.write() gets the document object and writes something to it.

This it does the if thing again, why not just do it once? and write some more html.

I suppose it is trying to write some ads.
  • 0

Advertisements


#17
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
Oh, I trust you when you say it's pointless code. I didn't mean to try and get you to explain it, just justifying why I'm asking silly questions (because I'm a bit embarrassed to have asked them... :whistling: ) :blink:

Yeah, it was an ad (although my Norton must have blocked the majority of it from appearing on screen) that takes you to a sponsor site before redirecting to the site one originally wanted to visit.
  • 0

#18
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
If you use Firefox you can use http://adblockplus.org/ to prevent all ads you don't want to see from showing.
  • 0

#19
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
Ok, thanks. I currently use AdBlock and have a number of filters that I added over time, but I'll check out Adblock plus.
  • 0

#20
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
Oh, then I not sure you need adblock plus. I don't think there is too much difference.

DON'T INSTALL BOTH AT THE SAME TIME!
  • 0

#21
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
Yeah, together they give less protection than each does individually, just like anti-virus programs.
  • 0

#22
Michael

Michael

    Retired Staff

  • Retired Staff
  • 1,869 posts
No if you have both install, you might need to find out how to manually uninstall an extension. They don't like each other.
  • 0

#23
CelestialTeardrop

CelestialTeardrop

    Member

  • Topic Starter
  • Member
  • PipPipPip
  • 262 posts
I only have adblock installed at the moment. I will uninstall it (and delete it from the extensions folder in my firefox profile) before getting adblock plus (if I decide to switch).

Thanks :whistling:
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP