"Fossies" - the Fresh Open Source Software Archive

Member "gvmd-9.0.0/report_formats/sourcefire/create_report_import" (11 Oct 2019, 875 Bytes) of package /linux/misc/openvas/gvmd-9.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 NAME="Sourcefire"
    2 UUID=`uuid`
    3 EXTENSION=csv
    4 CONTENT_TYPE="text/csv"
    5 SUMMARY="Sourcefire Host Input Import."
    6 DESCRIPTION="Scan results in Host Input Import format for Sourcefire DC."
    7 # Names must be in alphabetical order.
    8 FNAME1=generate
    9 FILE1=`base64 -w 0 generate`
   10 FNAME2=sourcefire.xsl
   11 FILE2=`base64 -w 0 sourcefire.xsl`
   12 
   13 echo ${UUID}${EXTENSION}${CONTENT_TYPE}0${FNAME1}${FILE1}${FNAME2}${FILE2}> ${UUID}
   14 gpg --detach-sign --armor ${UUID}
   15 rm ${UUID}
   16 
   17 echo '<get_report_formats_response status="200" status_text="OK"><report_format id="'$UUID'"><name>'$NAME'</name><extension>'$EXTENSION'</extension><content_type>'$CONTENT_TYPE'</content_type><summary>'$SUMMARY'</summary><description>'$DESCRIPTION'</description><global>0</global><file name="'$FNAME1'">'$FILE1'</file><file name="'$FNAME2'">'$FILE2'</file></report_format></get_report_formats_response>' > sourcefire.xml