I am really not sure, it sounds like a lock on the sqlite databases perhaps.
Post by Tom PowersSound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
OKâŠhere's what I tried
omp
--xml="<create_lsc_credential><name>testcreds</name><login>DOWNTOWN\test</login><password>12345</password></create_lsc_credentials>"
--username=admin --password=password
And it just hangs there.
And yesâŠright now the admin user is admin with a password of password.
The Credential I am trying to make is an smb login to a windows domain
Ideas?
TP
*Sent:* Thursday, August 14, 2014 1:34 PM
*To:* Tom Powers
*Subject:* Re: [Openvas-discuss] GSAD on Openvas 7 doesn't take
credentials, hosts or tasks
Yes, you would use that exact XML command to create your credentials.
Sound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
Might have spoken too soonâŠ
Looks like I can create targets just fineâŠbut CredentialsâŠare a no goâŠ.it
sits and hangs on the credentials
Would I use the create_lsc_credentials manually in omp to check this?
TP
*Sent:* Wednesday, August 13, 2014 3:48 PM
*To:* Tom Powers
*Subject:* Re: [Openvas-discuss] GSAD on Openvas 7 doesn't take
credentials, hosts or tasks
Glad to help!
Sound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
OKâŠthatâs what I did and I got a successful response.
When I listed out the âget-targets omp command, I actually saw the ones I
tried to create in GSAD.
So I go back into GSAD and it shows my targets and my credentials that I
tried to create before.
Thatâs interesting. NonethelessâŠit seems to be working nowâŠitâs taking
tasks through the GSADâŠso whatever was hung up is OK now.
Must have been the OMP commands because I restarted this thing a truck
load of times trying to see if it clears up.
Thanks for all your help
TP
*Sent:* Wednesday, August 13, 2014 3:41 PM
*To:* Tom Powers
*Subject:* Re: [Openvas-discuss] GSAD on Openvas 7 doesn't take
credentials, hosts or tasks
You can pass -u and -w (username and password, respectively) as arguments as well.
Sound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
I just restarted all the services as you asked that. They all came back up
fineâŠand it now says âFailed to authenticateâ
Do I need a username and password in this XML string to correctly Identify myself?
TP
*Sent:* Wednesday, August 13, 2014 3:36 PM
*To:* Tom Powers
*Subject:* Re: [Openvas-discuss] GSAD on Openvas 7 doesn't take
credentials, hosts or tasks
Is openvasmd running?
Sound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
OKâŠtried thatâŠand it came back and asked for a password. I entered the
admin one (as thatâs the only one I have setup) and it said ": Failed to
Acquire socket."
*Sent:* Wednesday, August 13, 2014 3:27 PM
*To:* Tom Powers
*Subject:* Re: [Openvas-discuss] GSAD on Openvas 7 doesn't take
credentials, hosts or tasks
This will basically tell you whether the manager or GSA is the issue.
Yep, you will need to build a small XML snippet to create a target, then
omp --xml="<create_target><name>All GNU/Linux machines</name><hosts>192.168.1.0/24</hosts></create_target>"
omp --get-targets
Sound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
Looks promisingâŠbut I must be stuck on a syntax error or something. The
commands on the OMP site documentation don't match what I get when I tryp
omp --help
I get this for optionsâŠand all I see is create task, no create credentials or targets
omp [OPTION...] - OpenVAS OMP Command Line Interface
-?, --help Show help options
-h, --host=<host> Connect to manager on host <host>
-p, --port=<number> Use port number <number>
-V, --version Print version.
-v, --verbose Verbose messages (WARNING: may reveal passwords).
--use-certs Use client certificates to authenticate
-u, --username=<username> OMP username
-w, --password=<password> OMP password
--config-file=<config-file> Configuration file for connection parameters.
-P, --prompt Prompt to exit.
-O, --get-omp-version Print OMP version.
-n, --name=<name> Name for create-task.
-C, --create-task Create a task.
-m, --comment=<name> Comment for create-task.
-c, --config=<config> Config for create-task.
-r, --rc Create task with RC read from stdin.
-t, --target=<target> Target for create-task.
-E, --delete-report Delete one or more reports.
-D, --delete-task Delete one or more tasks.
-R, --get-report Get report of one task.
-F, --get-report-formats Get report formats. (OMP 2.0 only)
-f, --format=<format> Format for get-report.
-G, --get-tasks Get status of one, many or all tasks.
-g, --get-configs Get configs.
-T, --get-targets Get targets.
-i, --pretty-print In combination with -X, pretty print the response.
-S, --start-task Start one or more tasks.
-M, --modify-task Modify a task.
--file Add text in stdin as file on task.
-X, --xml=<command> XML command (e.g. "<help/>""). "-" to read from stdin.
*Sent:* Wednesday, August 13, 2014 3:05 PM
*To:* Tom Powers
*Subject:* Re: [Openvas-discuss] GSAD on Openvas 7 doesn't take
credentials, hosts or tasks
You can use the 'omp' utility to talk with the openvas manager directly,
either with some of the prebuilt arguments, or with explicit XML.
http://www.openvas.org/protocol-doc.html
Sound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
Not sureâŠhow does one try that in the OpenVas 7? I made the jump from 3
to 7 hereâŠso Iâm sure Iâve missed some of the commands along the way
All insight is appreciated
Thanks
TP
*Sent:* Wednesday, August 13, 2014 2:52 PM
*To:* Tom Powers
*Subject:* Re: [Openvas-discuss] GSAD on Openvas 7 doesn't take
credentials, hosts or tasks
Can you create targets with raw OMP?
Sound Solutions, Inc.
8400 Highland Dr.
Wausau, WI 54401
Tel: 715-842-7665
Fax: 715-842-7620
Hello Openvas..
I have a fresh build of Open Vas 7 running on Ubuntu 14.04. Installed from
sources. Install went great.
Libraries 7.01
Scanner 4.01
Manager 5.0
GSAD 5.0
CLI 1.30
Openvas-check comes back perfectly clean.
I can log into the Greenbone web console. When I try to add a target, or a
credential, the site simply sits there. it doesnât time out, it doesnât
fail, and itâs not frozen because I can navigate to other parts of the GSAD
siteâŠ.yet the credential or the target, or whatever, never gets created.
What could be the issue and where can I go to start looking for a problem?
The GSAD, Scanner, and Manager log files are all clean
Thanks
Tom Powers
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.
_______________________________________________
Openvas-discuss mailing list
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.
--
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
------------------------------
Sound Solutions, Inc. - Since 1995
We Appreciate Your Business and Referrals
This message (and any associated files) is intended only for the use of
the individual or entity to which it is addressed and may contain
information that is confidential, subject to copyright or constitutes a
trade secret. If you are not the intended recipient you are hereby notified
that any dissemination, copying or distribution of this message, or files
associated with this message, is strictly prohibited. If you have received
this message in error, please notify us immediately by replying to the
message and deleting it from your computer. Messages sent to and from us
may be monitored.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. Therefore, we do not accept
responsibility for any errors or omissions that are present in this
message, or any attachment, that have arisen as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. Any views or opinions presented are solely those of the author and
do not necessarily represent those of the company.