mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-24 21:03:20 +00:00
144 lines
5 KiB
HTML
144 lines
5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
|
|
original version by: Nikos Drakos, CBLU, University of Leeds
|
|
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
|
|
* with significant contributions from:
|
|
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>Output format</TITLE>
|
|
<META NAME="description" CONTENT="Output format">
|
|
<META NAME="keywords" CONTENT="clamdoc">
|
|
<META NAME="resource-type" CONTENT="document">
|
|
<META NAME="distribution" CONTENT="global">
|
|
|
|
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
|
|
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
|
|
|
|
<LINK REL="STYLESHEET" HREF="clamdoc.css">
|
|
|
|
<LINK REL="next" HREF="node25.html">
|
|
<LINK REL="previous" HREF="node23.html">
|
|
<LINK REL="up" HREF="node18.html">
|
|
<LINK REL="next" HREF="node25.html">
|
|
</HEAD>
|
|
|
|
<BODY >
|
|
|
|
<DIV CLASS="navigation"><!--Navigation Panel-->
|
|
<A NAME="tex2html656"
|
|
HREF="node25.html">
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
|
SRC="/usr/share/latex2html/icons/next.png"></A>
|
|
<A NAME="tex2html652"
|
|
HREF="node18.html">
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
|
SRC="/usr/share/latex2html/icons/up.png"></A>
|
|
<A NAME="tex2html646"
|
|
HREF="node23.html">
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
|
SRC="/usr/share/latex2html/icons/prev.png"></A>
|
|
<A NAME="tex2html654"
|
|
HREF="node1.html">
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
|
SRC="/usr/share/latex2html/icons/contents.png"></A>
|
|
<BR>
|
|
<B> Next:</B> <A NAME="tex2html657"
|
|
HREF="node25.html">Signature Tool</A>
|
|
<B> Up:</B> <A NAME="tex2html653"
|
|
HREF="node18.html">Usage</A>
|
|
<B> Previous:</B> <A NAME="tex2html647"
|
|
HREF="node23.html">Mail files</A>
|
|
<B> <A NAME="tex2html655"
|
|
HREF="node1.html">Contents</A></B>
|
|
<BR>
|
|
<BR></DIV>
|
|
<!--End of Navigation Panel-->
|
|
|
|
<H2><A NAME="SECTION00046000000000000000">
|
|
Output format</A>
|
|
</H2>
|
|
<SPAN CLASS="textit">clamd</SPAN> uses a clamscan compatible output format:
|
|
<PRE>
|
|
zolw@Wierszokleta:~$ telnet localhost 3310
|
|
Trying 127.0.0.1...
|
|
Connected to localhost.
|
|
Escape character is '^]'.
|
|
SCAN /home/zolw/infected
|
|
/home/zolw/infected/sobre.com: W32.Magistr.B FOUND
|
|
Connection closed by foreign host.
|
|
</PRE>
|
|
In the <SPAN CLASS="textbf">SCAN</SPAN> mode it closes the connection when first virus
|
|
is found. In the case of archives the output is exactly the same as
|
|
with normal files because archive support is transparent:
|
|
<PRE>
|
|
SCAN /home/zolw/Clam/test/test2.zip
|
|
/home/zolw/Clam/test/test2.zip: ClamAV-Test-Signature FOUND
|
|
</PRE>
|
|
<SPAN CLASS="textbf">CONTSCAN</SPAN> displays all infected files found.
|
|
<BR>
|
|
Error messages are printed in the following format:
|
|
<PRE>
|
|
SCAN /no/such/file
|
|
/no/such/file: Can't stat() the file ERROR
|
|
</PRE>
|
|
and they can be easily parsed.
|
|
|
|
<P>
|
|
<SPAN CLASS="textit">clamscan</SPAN> writes all messages to <SPAN CLASS="textbf">stderr</SPAN> (only help is
|
|
written to <SPAN CLASS="textbf">stdout</SPAN> by default). You may want to redirect it to
|
|
<SPAN CLASS="textbf">stdout</SPAN> - this is handled with <code>--stdout</code>. An example
|
|
of the clamscan output is:
|
|
<PRE>
|
|
/tmp/test/removal-tool.exe: Worm.Sober FOUND
|
|
/tmp/test/md5.o: OK
|
|
/tmp/test/blob.c: OK
|
|
/tmp/test/message.c: OK
|
|
/tmp/test/error.hta: VBS.Inor.D FOUND
|
|
</PRE>
|
|
When a virus is found its name is printed between the <code>filename:</code> and
|
|
<code>FOUND</code> strings. If a virus is found in an archive that has been
|
|
extracted with an external unpacker it's noticed with
|
|
<code>Infected Archive</code>. "Infected Archives" are not counted as infected
|
|
files - only files within them are. Notice the difference with built-in
|
|
unarchiver - extraction process is realized transparently by libclamav
|
|
and clamscan doesn't know which concrete file is infected - just marks
|
|
whole archives as infected.
|
|
|
|
<P>
|
|
|
|
<DIV CLASS="navigation"><HR>
|
|
<!--Navigation Panel-->
|
|
<A NAME="tex2html656"
|
|
HREF="node25.html">
|
|
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
|
|
SRC="/usr/share/latex2html/icons/next.png"></A>
|
|
<A NAME="tex2html652"
|
|
HREF="node18.html">
|
|
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
|
|
SRC="/usr/share/latex2html/icons/up.png"></A>
|
|
<A NAME="tex2html646"
|
|
HREF="node23.html">
|
|
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
|
|
SRC="/usr/share/latex2html/icons/prev.png"></A>
|
|
<A NAME="tex2html654"
|
|
HREF="node1.html">
|
|
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
|
|
SRC="/usr/share/latex2html/icons/contents.png"></A>
|
|
<BR>
|
|
<B> Next:</B> <A NAME="tex2html657"
|
|
HREF="node25.html">Signature Tool</A>
|
|
<B> Up:</B> <A NAME="tex2html653"
|
|
HREF="node18.html">Usage</A>
|
|
<B> Previous:</B> <A NAME="tex2html647"
|
|
HREF="node23.html">Mail files</A>
|
|
<B> <A NAME="tex2html655"
|
|
HREF="node1.html">Contents</A></B> </DIV>
|
|
<!--End of Navigation Panel-->
|
|
<ADDRESS>
|
|
Tomasz Kojm
|
|
2004-07-22
|
|
</ADDRESS>
|
|
</BODY>
|
|
</HTML>
|