[Openvas-discuss] Can't use SMB credentials

Matthew Mundell matthew.mundell at greenbone.net
Thu Aug 26 13:13:36 CEST 2010


> Oops, I meant omp as in openvas-cli, sorry about that, I did use the right
> thing.
>
> As for the exact OMP commands I use, I start the scanner and the manager as
> usual and then :
> (note : I do a | sed to get the ids generated by each command)

Doing a | xmlstarlet will probably be easier.

>
> omp -p 9391 -X "<create_target><name>my target</name><hosts>[my targets
> here]</hosts></create_target>"
>
> omp -p 9391 -X "<create_config><name>[my config
> name]</name><get_configs_response status=\"200\" status_text=\"OK\">

You could leave out the <name>, because the Manager will use the name in
the get_configs_response.

[...]
> <config id=\"baba56c8-73ec-11df-a475-002264764cea\"><name>[my config
> name]</name>
> [...]
> <preference><nvt
> oid=""><name/></nvt><name>port_range</name><type/><value>[my ports
> here]</value></preference>
> [...]
> <preference><nvt oid="1.3.6.1.4.1.25623.1.0.90023"><name>SMB
> Authorization</name></nvt><name>SMB domain
> (optional):</name><type>entry</type><value>[my domain
> here]<value/></preference>
> <preference><nvt oid="1.3.6.1.4.1.25623.1.0.90023"><name>SMB
> Authorization</name></nvt><name>SMB
> login:</name><type>entry</type><value>[my login here]<value/></preference>
> <preference><nvt oid="1.3.6.1.4.1.25623.1.0.90023"><name>SMB
> Authorization</name></nvt><name>SMB
> password:</name><type>entry</type><value>[my password
> here]<value/></preference>

This should be of type password.

Note also that if the target has a credential associated with it, then the
Manager will also send those credentials.  This could override the values
you sent here.



More information about the Openvas-discuss mailing list