Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Following the advise of an answer in Ask Ubuntu, I downloaded and ran a script with a URL starting by http://goo.gl/

Is it risky to use such file? could it be a virus or something else?

If yes, what should I do?

Some details:
I followed this answer, and did

    wget -O amd-driver-installer-12-4-x86.x86_64.run http://goo.gl/VGYWP
    chmod +x amd-driver-installer-12-4-x86.x86_64.run 
    ./amd-driver-installer-12-4-x86.x86_64.run --extract driver
share|improve this question
2  
Is it risky to download a script with a "http://" link? Well, it's the Internet, so it is possibly harmful. On the other hand, not everyone has malicious intentions. –  Lekensteyn May 6 '12 at 21:14
    
right, but I usually check the address, at least with WOT addons.mozilla.org/fr/firefox/addon/wot-safe-browsing-tool . That time I forget, so I worry –  Boris May 6 '12 at 21:16
3  
curl -I http://goo.gl/VGYWP shows Location: http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run. Although the use of a URL shortener looks suspicious, it seems to be your expected link? –  Lekensteyn May 6 '12 at 21:19
    
good news, I was expecting to run a script to install the ATI driver for my graphic card - so it sounds good. I install curl for next time ... –  Boris May 6 '12 at 21:24
1  
I guess it was about shortening the command, which is too long indeed. Nothing insecure nor risky and of course, not suspicious in that link/command. You can also check that link on any browser and see where does it send you to. WOT is a great advice but even WOT can't be noticed of all threats. –  Geppettvs D'Constanzo May 6 '12 at 21:24

4 Answers 4

http://goo.gl/ is a url shortener service. You aren't downloading a file from that link, but it is redirecting you to somewhere else. It would be useful if you let us know where is the link sending you to, in order to know what happened when you clicked that link.

There are risks involved in downloading files from the net but the majority of the downloaded files get into your computer without execution properties allowed, so you aren't in a risk until you run it.

If you already run it, you should add to your question what did you do, this way people will be able to give you a warning or a solution.

Good luck!

share|improve this answer
    
I added the script link in my question –  Boris May 6 '12 at 21:17

Extremely risky.

First you need to find what the original link of the shortened link is.

To do that add a + to the end of the goo.gl link like this (do not follow the link straight, because there is no way to know where it leads from just the address):

http://goo.gl/VGYWP+

This shows us the stats of who has clicked on it, and where they are located (it collects extra information, not just "link shortening") and shows that the real link is:

http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run

and the command you should use on that step is:

wget -O amd-driver-installer-12-4-x86.x86_64.run http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run

This also shows that a lot of people are "copy and pasting" same outdated answers from certain sites, and some are not citing where they got the information from.

share|improve this answer

http://goo.gl/ is a URL shortener, that is it is creating short URLs that redirect you to other, usually longer, URLs. As it can be used to create a redirect to any URL out there a goog.le link it may point to malicious or otherwise unwanted software.

In general you should never run any code if you are not sure that you can trust the source you got in from.

Maybe you could show us the script you run so we could tell you it it did any harm.

share|improve this answer
    
I added the script link in my question –  Boris May 6 '12 at 21:17
up vote 2 down vote accepted

I just create this answer to mark that I get the answer to my question in your answers and comments.

To sum up:

  • yes a http://goo.gl/something can be risky, especially if then you run the downloaded script.
  • to know what is behind such link, 2 solutions :

    • curl -I http://goo.gl/something
      in my case:

      curl -I http://goo.gl/VGYWP
      Location: http://www2.ati.com/drivers/linux/amd-driver-installer-12-4-x86.x86_64.run
      
    • or do not download with wget but with Firefox and open your eyes enter image description here enter image description here

  • then you can evaluate the risk knowing the location of the file to be downloaded.

Thank you all for your quick answers and comments.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.