Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 20th, 2005, 9:47 PM   #1
pizzaboy14x
Newbie
 
Join Date: Sep 2005
Posts: 3
Rep Power: 0 pizzaboy14x is on a distinguished road
Creating a spyware removal app

This is for a school project. The project is to create a product and present it to the class. My idea is just to load a crap computer with nasty programs and then make my own basic application to seek out the programs I loaded it up with. I am currently working with C++. I want to create a Spyware/adware removal application similar to the spybot s&d system (searches for specific files). Obviously it won't be the same, nor as efficient. I am a beginner at C++ because I just started learning this language a few months ago. I would like to know where I could obtain a basic layout of an C++ application code that searches for specific programs on your computer. If I can obtain the code, I'll be able to take it from there. I'm not sure where to start though, so I could use some help.

Thanks,
Andrew
pizzaboy14x is offline   Reply With Quote
Old Sep 20th, 2005, 10:33 PM   #2
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
What've you got so far? Ideas? Code? References?
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Sep 20th, 2005, 11:18 PM   #3
2roll4life7
Programmer
 
2roll4life7's Avatar
 
Join Date: Aug 2005
Location: 0x0010 * 0x0091 + 0x0004
Posts: 65
Rep Power: 4 2roll4life7 is on a distinguished road
Quote:
Originally Posted by pizzaboy14x
This is for a school project. The project is to create a product and present it to the class. My idea is just to load a crap computer with nasty programs and then make my own basic application to seek out the programs I loaded it up with. I am currently working with C++. I want to create a Spyware/adware removal application similar to the spybot s&d system (searches for specific files). Obviously it won't be the same, nor as efficient. I am a beginner at C++ because I just started learning this language a few months ago. I would like to know where I could obtain a basic layout of an C++ application code that searches for specific programs on your computer. If I can obtain the code, I'll be able to take it from there. I'm not sure where to start though, so I could use some help.

Thanks,
Andrew
I'm not trying to put you down here, but I think you bit off a little more than you can chew.
__________________
#if 0 /* in case someone actually tries to compile this */
- libpng version 1.2.8 (example.c)

<Jim_McNeat> Is there like a way to put a compiler in "Just trust me on that one" mode?
2roll4life7 is offline   Reply With Quote
Old Sep 21st, 2005, 2:00 AM   #4
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
i think he's right, for a beginner this might be a little overwhelming.

but then again...maybe not. if you can use library functions to search and remove programs, then it'll only be as difficult as the gui you wanna create (and the research you wanna do).

if all you're doing is looking for specific exe's, then i can't see this as being an insurmountable task. although the problem lies here...

those applications are dependant upon an update system to keep in touch with new viruses, spyware etc. this is probably where everything will turn into crap. if you create an app that works great on november 11th, 2005, then bollocks to you. after that, you might as well wipe your ass with your source code.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Sep 27th, 2005, 3:52 PM   #5
pizzaboy14x
Newbie
 
Join Date: Sep 2005
Posts: 3
Rep Power: 0 pizzaboy14x is on a distinguished road
lol, well i agree on the part of "biting off more than i can chew" I'm just learning how to code in c++.

I do have a program to work with. You might be familiar with it. Dev C++, by a company called Bloodshed. It finds mistakes, gives suggestions, etc. I can run the program and it runs in DOS. Thats the ugly part i suppose. But i dont need it to be pretty and i don't need it to update. I just needed it to search for specific programs i put onto a computer and then give me the option of deleting them. I could even cheat with this. Heres my idea:
-load up the computer with nasty programs
-find the programs a day before i go into repair it in front of the classroom
-take the file names and exes, registry keys, cookies, etc and tell my program to find those specific files in front of me.

So it would technically be cheating because i already know which files i need it to find and i could just make a simple program to search for those files. However, i am a beginner and i do need help on this. this program would only be used once to wow a teacher and get an A so it wouldn't have to be fancy or anything technical. So, any suggestions?
pizzaboy14x is offline   Reply With Quote
Old Sep 27th, 2005, 5:11 PM   #6
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 641
Rep Power: 4 Jessehk is on a distinguished road
Quote:
Originally Posted by pizzaboy14x
lol, well i agree on the part of "biting off more than i can chew" I'm just learning how to code in c++.

I do have a program to work with. You might be familiar with it. Dev C++, by a company called Bloodshed. It finds mistakes, gives suggestions, etc. I can run the program and it runs in DOS. Thats the ugly part i suppose. But i dont need it to be pretty and i don't need it to update. I just needed it to search for specific programs i put onto a computer and then give me the option of deleting them. I could even cheat with this. Heres my idea:
-load up the computer with nasty programs
-find the programs a day before i go into repair it in front of the classroom
-take the file names and exes, registry keys, cookies, etc and tell my program to find those specific files in front of me.

So it would technically be cheating because i already know which files i need it to find and i could just make a simple program to search for those files. However, i am a beginner and i do need help on this. this program would only be used once to wow a teacher and get an A so it wouldn't have to be fancy or anything technical. So, any suggestions?
Either I have misunderstood you, or you don't know what a compiler is.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Old Sep 27th, 2005, 7:24 PM   #7
pizzaboy14x
Newbie
 
Join Date: Sep 2005
Posts: 3
Rep Power: 0 pizzaboy14x is on a distinguished road
Quote:
Originally Posted by Jessehk
Either I have misunderstood you, or you don't know what a compiler is.

You must have misunderstood. What don't you understand?


I know what a compiler is, which is why I named the type of compiler I have.

Dev C++, by Bloodshed.


Here, I even took a screen shot for you.



All i'm asking for is help designing an application that searches for programs i tell it to.
pizzaboy14x is offline   Reply With Quote
Old Sep 27th, 2005, 8:14 PM   #8
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Quote:
wow a teacher and get an A so it wouldn't have to be fancy or anything technical.


Quote:
I know what a compiler is, which is why I named the type of compiler I have.

Dev C++, by Bloodshed.


Here, I even took a screen shot for you.
Well, Dev-C++ is an IDE; GCC is the compiler And just about everything you said in post #5 is incorrect, but that's all right for now I suppose.

If you want to search for all programs that are spyware, you need the definitions or at least the hashes for the files in order to locate the correct files. If you just want to delete specific filenames to turn it in quickly, then that's another idea. This project is big, there is a lot more to searching for spyware than you've alluded to in your posts.

It seems like you only want to delete the files based on their filenames, which is simply searching for files and deleting them, and not something that would impress anyone (I hope). Just explain more about your plan of action.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Sep 27th, 2005, 8:16 PM   #9
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,835
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
I don't think it's possible for a program itself to detect evil programs by looking at them, but instead by looking at the list of "un-safe programs"... am I right?
Sane is offline   Reply With Quote
Old Sep 27th, 2005, 8:25 PM   #10
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Quote:
Originally Posted by Sane
I don't think it's possible for a program itself to detect evil programs by looking at them, but instead by looking at the list of "un-safe programs"... am I right?
Basically; just like an Anti-Virus it needs a definitions list for what to remove. Heuristics are all well and good, but that's the gist of it.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:40 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC