Monday, January 30, 2012

Remove the Service fingerprint from nmap xml file

sed 's/servicefp=.*" //g' first-pn.xml > f.xml

simply matches the servicefp (including the tag itself) and replaces it with null, globally.
first-pn.xml is the source file, f.xml is the output

No comments:

Post a Comment