Solved

ubuntu script

Posted on 2012-03-16
10
606 Views
Last Modified: 2012-03-20
Can I ask, (ubuntu/linux beginner), this site:
http://www.openvas.org/setup-and-start.html

Asks me to download a script:
https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup

My question is, from firefox, a) how do I save it, as what (file extension etc), and then from the command terminal, how do I run it? Do I need to navigate to the folder its saved in as you would on a windows command prompt, i.e. CD command? Whats the ubuntu equivalent?
0
Comment
Question by:pma111
10 Comments
 
LVL 30

Accepted Solution

by:
IanTh earned 125 total points
Comment Utility
try doing it via a webget from cmd

sudo -s

type admin password to get to root it saves it in you download folder

webget https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup
0
 
LVL 12

Assisted Solution

by:ibrahim52
ibrahim52 earned 125 total points
Comment Utility
0
 
LVL 3

Author Comment

by:pma111
Comment Utility
I entered sudo -s from cmd terminal
entered the password
then entered:
webget https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup

And it doesnt like it.

root@ubuntu:~# webget webget https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup
No command 'webget' found, did you mean:
 Command 'debget' from package 'debian-goodies' (main)
 Command 'debget' from package 'debget' (universe)
 Command 'webgen' from package 'webgen0.4' (universe)
 Command 'webgen' from package 'webgen' (universe)
 Command 'webgen' from package 'webgen0.5' (universe)
webget: command not found
0
 
LVL 3

Author Comment

by:pma111
Comment Utility
Ibrahim Ive followed their guide and it didnt work, so this script is apparently a diagnositc that may give suggestions on why
0
 
LVL 3

Author Comment

by:pma111
Comment Utility
maybe it wget
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 10

Assisted Solution

by:MadShiva
MadShiva earned 125 total points
Comment Utility
Dear Pma111,

It's wget you are right.

With wget you download the file "openvas-check-setup" that is a shell script file (.sh) you don't need to have extension like Windows to run it. This file will be saved from where you run the command, then for example if you are currently in your /home/pma111 folder it will be saved there.

After you only need to set the execution right to the file by doing :
chmod +x openvas-check-setup

And for run it after :
./openvas-check-setup
0
 
LVL 3

Author Comment

by:pma111
Comment Utility
Thanks so much madshiva I will login to the ubuntu and try this and feedback
0
 
LVL 30

Assisted Solution

by:Kerem ERSOY
Kerem ERSOY earned 125 total points
Comment Utility
Hi,

The problem with the site is it presents an invalid certificate ( certificate with wrong  common name) . So that when I tried with wget I've got this error:

wget https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup
--2012-03-17 14:24:25--  https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup
Resolving svn.wald.intevation.org... 78.47.251.62
Connecting to svn.wald.intevation.org|78.47.251.62|:443... connected.
ERROR: cannot verify svn.wald.intevation.org's certificate, issued by `/C=DE/O=Intevation GmbH/CN=Server CA 2010':
  Unable to locally verify the issuer's authority.
ERROR: certificate common name `wald.intevation.org' doesn't match requested host name `svn.wald.intevation.org'.
To connect to svn.wald.intevation.org insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.

Open in new window


So you'd better try it with this instead:

# wget --no-check-certificate https://svn.wald.intevation.org/svn/openvas/trunk/tools/openvas-check-setup

Open in new window


Cheers,
K.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
Comment Utility
The Certificate eror is why can not you get the file. The client aborts with invalid certificate error before it downloads. For the rest you can follow MadShiva's comment. Since this is not a windows system you don2t need definite file extensions. The file you get is a script file so when you assign execution permission it should go and do what is intended for.

Cheers,
K.
0
 
LVL 30

Expert Comment

by:Kerem ERSOY
Comment Utility
But don't forget that this script must be run after you've setup openVAS over your system. So please install the binary for your system here:

http://www.openvas.org/install-packages.html

Select the binary for Ubuntu and install it.

Cheers,
K.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now