Bugs item #1239, was opened at 2010-01-13 04:58
Status: Open
Priority: 3
Submitted By: Leigh Purdie (redphoenix)
Assigned to: Nobody (None)
Summary: openvas-client will terminate without scanning/reporting, in batch 
mode, after re-writing the configuration file. 
Architecture: 32 Bit
Resolution: None
Severity: normal
Version: v2.0.2
Component: openvas-client
Operating System: Linux
Product: OpenVAS
Hardware: All
URL: 


Initial Comment:
Not certain at this stage, whether this is a bug, or merely something 
fundamental I have missed in the documentation, however, the same syntax worked 
nicely on an older version of openvas.

To reproduce:

* Create a password-authenticated user using openvas-adduser
* echo "localhost" > /tmp/targetsystem
* touch /tmp/OPENVASRC

Copy a working openvasrc from a normal run from the openvas-client GUI
* cp ~/.openvas/TASK/SCOPE/openvasrc /tmp/OPENVASRC)
(where TASK and SCOPE are appropriate for your install)

Now, attempt a batch-mode scan:
* openvas-client -V -T xml -c /tmp/OPENVASRC -qx localhost 9390 USERNAME 
PASSWORD /tmp/targetsystem /tmp/output.xml

The process will terminate fairly quickly, with the following line in 
/var/log/openvas/openvasd.messages:

Stopping the whole test (requested by client)

The OPENVASRC file will be overwritten by a new version.

A hack to force openvas to work:
* chown root: /tmp/OPENVASRC
* chmod 444 /tmp/OPENVASRC

* Run openvas as above, as a normal (non-root) user.

An strace on that process indicates that openvas-client could not open 
/tmp/OPENVASRC in write-only mode, but the normal scan completes successfully.

----------------------------------------------------------------------

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=220&aid=1239&group_id=29
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-devel

Reply via email to