Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / can i make a virus scanner program in dbc?

Author
Message
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 2nd Aug 2004 23:26
year that is my quistion. .can i make a viruse scanner program in darkbasic classic??

i make games, i play games... But the fun thing is that i like to make them more than play them....
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Aug 2004 23:42
To an extent...

If you have DarkMATTER, then you could get a .dll to scan memory. Really though, DBC is not cut out for tracing program instances.

You could search through files for viruses though, say you knew of a virus that infects executables, and say it's name is 'MOTH' and is 1026 bytes long and contains the header 'MOTHv1EVERYONELIKESCHEESEEVERYONEHATESMICROSOFT'.
You'd open each executable, looking for the header - and from that you could figure out where the virus starts and ends depending on it's size - then perhaps even repair the file by removing the virus and saving out the good bits. All by knowing a header and the length of the virus.

Gathering file information and analysing files is fairly straightforward, although you could probably do more with something like VB (like checking for virus instances in memory for one thing).


Van-B


Muhahahahaha.
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 3rd Aug 2004 00:44
thanks...

i make games, i play games... But the fun thing is that i like to make them more than play them....
nukesoft games
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location:
Posted: 6th Aug 2004 22:27
I was actually going to program one myself but I decided not to dur to the back aching anger work that would cause

Why do I need a signature? :/
code master
21
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 8th Aug 2004 02:27
sure,
just make a list of all the exe's on the pc & their sizes reguarly, then if the sizes change you know the exe is infected

dbc 1.13 non enhanced
www.sgs.dbspot.com (coming soon)
Sir Spaghetti Code
20
Years of Service
User Offline
Joined: 12th Jul 2004
Location: Just left of Hell
Posted: 8th Aug 2004 02:37
Beyond the programming apect, it would be very hard to keep up with all of the new viruses that come out. It would need to auto update for it to be any use, and the commercial anti-virus programs have teams of people working around the clock to discover and nutrealize viruses. If you wanted to make one just for programming's sake, it may be possible.

Fraggles where quite the scary lot...
Krast0r
20
Years of Service
User Offline
Joined: 25th Jun 2004
Location: UK
Posted: 8th Aug 2004 08:05
I was thinking of doing this as well, I decided against it when I realised how hard it would be to obtain all the virus 'signitures' of these viruses, as well as adapt the program to support removal of polymorphic and metamorphic viruses. Even if i did start doing this, the other AV companies are so far ahead (covering all viruses from over 3 years some claim) that there would be no way to catch up on the old viruses as well as analysing the new ones without a team of hundreds.

In theory, theory and practice are the same, but in practice they are not.
[email protected] - That's Right! I'm a Gmail Beta Tester!

Login to post a reply

Server time is: 2025-05-25 17:24:13
Your offset time is: 2025-05-25 17:24:13