4 Replies - 9285 Views - Last Post: 04 July 2008 - 11:13 AM Rate Topic: -----

#1 xarul   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 2
  • Joined: 02-July 08

simple coding for virus detection

Post icon  Posted 03 July 2008 - 08:43 PM

anybody....please help me..how to get simple coding to make virus detection using java...help..help.. :ohno: :ohno: :ohno:

Is This A Good Question/Topic? 1

Replies To: simple coding for virus detection

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6968
  • View blog
  • Posts: 31,958
  • Joined: 10-May 07

Re: simple coding for virus detection

Posted 03 July 2008 - 08:47 PM

There is no such thing as simple virus detection. It either works or it doesn't.

Check Source Forge for an open source project.
Was This Post Helpful? 0
  • +
  • -

#3 pbl   User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8381
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: simple coding for virus detection

Posted 03 July 2008 - 08:58 PM

View Postxarul, on 3 Jul, 2008 - 08:43 PM, said:

anybody....please help me..how to get simple coding to make virus detection using java...help..help.. :ohno: :ohno: :ohno:

Simple coding ? You are dreaming.
And Virus are platform dependant Java is not.
Was This Post Helpful? 0
  • +
  • -

#4 abgorn   User is offline

  • sudo apt install brain -y
  • member icon

Reputation: 31
  • View blog
  • Posts: 1,423
  • Joined: 05-June 08

Re: simple coding for virus detection

Posted 04 July 2008 - 01:26 AM

Dreaming indeed.
Was This Post Helpful? 0
  • +
  • -

#5 perfectly.insane   User is offline

  • D.I.C Addict
  • member icon

Reputation: 70
  • View blog
  • Posts: 644
  • Joined: 22-March 08

Re: simple coding for virus detection

Posted 04 July 2008 - 11:13 AM

Detecting simple virii is probably simple, whereas detecting complex virii is probably complex. For simple virii detection, you could probably implement a simple byte-sequence scanner. You would have a database of sequences of bytes that you are pretty sure only exist in known virii, and then search for them in files. Using a form of regular expression would be a bit more powerful (one that works well with binary sequences).

Again, complex polymorphic virii will be difficult, if not impossible to detect using these methods (possibly through regex, depending on how polymorphic the piece is).

Developing a heuristic scanner is probably very difficult. I don't think any virus scanner is solely dependent on heuristic analysis anyway.

By the way, there are many uses for platform-independent virus scanners though. Automatic scanning of email attachments is one good example.

This post has been edited by perfectly.insane: 04 July 2008 - 11:14 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1