[Openvas-discuss] openvas-cli:Error in uploading file through modify_config

NIKITA JHALA 12mcei12 at nirmauni.ac.in
Mon Jun 23 13:26:01 CEST 2014


I want to replace the nmap grepaable file in NMAP ( NASL Wrapper). Here is
the code which i tried:

omp --config-file="auth.xml" --xml=' <modify_config
config_id="47852b54-8294-4adf-83a8-db1c34cc5db3">
<preference>
<nvt oid="1.3.6.1.4.1.25623.1.0.14259"/>
<name>Nmap (NASL wrapper):File containing grepable results</name>
<value>
IyBObWFwIDYuNDAgc2NhbiBpbml0aWF0ZWQgTW9uIEp1biAyMyAxNDo1ODowNyAyMDE0IGFzOiBubWFwIC1vQSBubWFwL25tYXBfb3V0cHV0LzFzd2l0Y2ggLS1zdHlsZXNoZWV0IC4uL25tYXAvbm1hcC54c2wgMTAuMTAuNC4zMCBIb3N0OiAxMC4xMC40LjMwICgpIFN0YXR1czogVXAgSG9zdDogMTAuMTAuNC4zMCAoKSBQb3J0czogMjIvb3Blbi90Y3AvL3NzaC8vLywgMjMvb3Blbi90Y3AvL3RlbG5ldC8vLywgODAvb3Blbi90Y3AvL2h0dHAvLy8gSWdub3JlZCBTdGF0ZTogY2xvc2VkICg5OTcpICMgTm1hcCBkb25lIGF0IE1vbiBKdW4gMjMgMTQ6NTg6MTEgMjAxNCAtLSAxIElQIGFkZHJlc3MgKDEgaG9zdCB1cCkgc2Nhbm5lZCBpbiA0LjI2IHNlY29uZHMg
</value>
</preference>
</modify_config>'

I have converted the content of gnmap file to base64.Here is the response
that i get:
<modify_config_response status_text="OK"
status="200"></modify_config_response>

But when i checked, there is no change in file. Please tell me what is
wrong with above command? Is there any different way to upload & replace
file using omp?

My gnmap file contains:
# Nmap 6.40 scan initiated Mon Jun 23 14:58:07 2014 as: nmap -oA
nmap/nmap_output/1switch --stylesheet ../nmap/nmap.xsl 10.10.4.30 Host:
10.10.4.30 () Status: Up Host: 10.10.4.30 () Ports: 22/open/tcp//ssh///,
23/open/tcp//telnet///, 80/open/tcp//http/// Ignored State: closed (997) #
Nmap done at Mon Jun 23 14:58:11 2014 -- 1 IP address (1 host up) scanned
in 4.26 seconds
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wald.intevation.org/pipermail/openvas-discuss/attachments/20140623/b4dca502/attachment.html>


More information about the Openvas-discuss mailing list