Hi Matthew

Thanks for your reply.


> <modify_config config_id="[THE CONFIGURATION ID]">
>
>             <preference>
>
>                 <name>vhosts</name>

The name should be like "scanner[scanner]:vhosts".

I have tried the above setting in my query, with no change to the result.

>
>                 <value>[THE TRARGET HOST NAME]</value>

The value must be base64 encoded.

I have also tried to base64 encode the value with no change to the result.

The OMP doc is at

        http://openvas.org/protocol-doc.html

but the only hint at these problems would have been the "Modify a config
preference" example under MODIFY_CONFIG.

>
>             </preference>
>
>             <preference>
>
>                 <name>vhosts_ip</name>
>
>                 <value>[THE TARGET HOST IP ADDRESS]</value>
>
>             </preference>
>
> </modify_config>


This is the query I send to OMP:

/usr/bin/openvas-cli -h localhost -u [MASKED] -w [MASKED] -i -X - << EOF
<modify_config config_id="3e5777fd-91e2-47ed-a7a9-a049d5917a90">
            <preference>
                <name>scanner[scanner]:vhosts</name>
                <value>TG9jYWxob3N0</value>
            </preference>
            <preference>
                <name>scanner[scanner]:vhosts_ip</name>
                <value>MTI3LjAuMC4x</value>
            </preference>
</modify_config>
EOF

This is the Response I get from OMP:

<modify_config_response status="200" status_text="OK"></modify_config_response>

When I download the Config from the server this is the block I see for the 
vhosts and vhosts_ip section:

<preference>
        <nvt oid="">
                <name></name>
        </nvt>
        <name>vhosts</name>
        <type></type>
        <value></value>
</preference>
<preference>
        <nvt oid="">
                <name></name>
        </nvt>
        <name>vhosts_ip</name>
        <type></type>
        <value></value>
</preference>

So in other words what am I doing wrong?


Best regards

Tom Stage

_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to