Hello, are you perhaps mixing up the config files? You refer to a specific UUID in modify_config which must be present in the database.
Have you checked with "omp --get-configs" whether this UUID is present and whether it is the one you intend to change? Best Jan On Montag, 23. Juni 2014, NIKITA JHALA wrote: > 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 > -- Dr. Jan-Oliver Wagner | ++49-541-335084-0 | http://www.greenbone.net/ Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 202460 Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner _______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
