HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: SCANIMAGE
PostPosted: 23 Jan 2007 22:46 
Offline

Joined: 02 Nov 2006 11:17
Posts: 7
540 //Scan JPG? GIF? PNG?
if ( Params::GetConfigBool("SCANIMAGES") == false
&& ToServer.ContentImage()
&& ( MatchBegin( BodyTemp, "\255\216\255\224", 4 ) <---- (1)
|| MatchBegin( BodyTemp, "GIF8", 4 )
|| MatchBegin( BodyTemp, "\137PNG", 4 )
)
)
{
ScannerOff = true;
}

Are also "ff d8 ff e0" the value for JPG image?


Top
 Profile  
 
 Post subject:
PostPosted: 24 Jan 2007 00:02 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
I don't understand your question? That's the most common signature. I guess you could strip the last byte away, to match some more.


Top
 Profile  
 
 Post subject:
PostPosted: 24 Jan 2007 11:47 
Offline

Joined: 02 Nov 2006 11:17
Posts: 7
Sorry !! A little conversion error :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group