This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HOWTO submit virus sample via CLI script

The easiest way I found was to use mutt to send the files directly to mx1.sophos.com.

Step 1: create a muttrc file with only two lines:

 set from = 'XXXXX@XYXYXY.me'
 set smtp_url = 'smtp://mx1.sophos.com:25'

Step 2: use this mutrc file to send virus sample:

 mutt -F sophos-mutrc samples@sophos.com -s "Virus sample I found" -a firus_file.zip

:57313


This thread was automatically locked due to age.
Parents
  • I agree that having an hard-coded mail server is not the best thing.

    Submitting samples via the online form is very, very difficult to do if the linux computer doesn't have an X server on it. I tried scripting this via CURL but the javascript was to much for me.

    A small script from Sophos wil be nice, especially since such a script could send other usefull information, like the serial number, linux version, sophos-av version, database version etc.

    Clamav already has clamsubmit and is opensource.

    :57335
Reply
  • I agree that having an hard-coded mail server is not the best thing.

    Submitting samples via the online form is very, very difficult to do if the linux computer doesn't have an X server on it. I tried scripting this via CURL but the javascript was to much for me.

    A small script from Sophos wil be nice, especially since such a script could send other usefull information, like the serial number, linux version, sophos-av version, database version etc.

    Clamav already has clamsubmit and is opensource.

    :57335
Children
No Data