hi,
since some days our OFFICESCAN antivirus finds the TROJ_BLASTER.C when I
compile with LCC some C programs, for example the following
(it also modifies the .exe being it now not more executable ! ! !)
the strange thing is that on onother PC with AVAST as antivirus I can
get .exe file without any virus!
It seems no virus attached my LCC environment.
I think after newest updating OFFICESCAN wrongly detrects such
TROJ_BLASTER.C
Any idea?
********
#include<stdio.h>
#include<ctype.h>
#include<stdlib.h>
#define MAX 20
struct nomeC {
int esito1;
char vett1[2];
int esito2;
char vett2[2];
}
C1,C2,C3,C4;
struct nomeC4 {
int esito;
char vett[4];
}
C5;
void char2ex(struct nomeC *C);
void char4ex(struct nomeC4 *C);
main()
{
int esa;
int c;
int i=0;
int aa;
int esito=0;
// H'6472 H'6c74 H'6173 H'6b31 H'0d1f H'040b H'160b H'0e1f
// f i l e riga d a t a
printf("insert the first FER octect row\n\n");
char2ex(&C1);
char2ex(&C2);
char2ex(&C3);
char2ex(&C4);
char4ex(&C5);
/*
char2ex(&C5);
char2ex(&C6);
char2ex(&C7);
char2ex(&C8);
*/
printf("FILENAME ");
printf("%c%c%c%c%c%c%c%c
",C1.esito1,C1.esito2,C2.esito1,C2.esito2,C3.esito1,C3.esito2,C4.esito1,C4.esito2);
printf(" LINE %d\n",C5.esito);
}
void char2ex(struct nomeC *C)
{
char c;
int i=0;
while ( c = getchar() )
{
if (c=='\'')
{
c = getchar();
C->vett1[i]=c ;
c = getchar();
C->vett1[i+1]=c ;
C->esito1 = strtol(C->vett1,(char **) NULL, 16);
c = getchar();
C->vett2[i]=c ;
c = getchar();
C->vett2[i+1]=c ;
C->esito2 = strtol(C->vett2,(char **) NULL, 16);
break;
}
else ;
}
}
void char4ex(struct nomeC4 *C)
{
char c;
int i=0;
while ( c = getchar() )
{
if (c=='\'')
{
c = getchar();
C->vett[i]=c ;
c = getchar();
C->vett[i+1]=c ;
c = getchar();
C->vett[i+2]=c ;
c = getchar();
C->vett[i+3]=c ;
C->esito = strtol(C->vett,(char **) NULL, 16);
break;
}
else ;
}
}
********


|