-2

I'm doing a simple project where I read an exe file and if I find a virus that I already know, I erase it from the file. I have to test it with a virus (I'm looking for something harmless) that insert itself into a file but I haven't found anything. Right now i am using an already infected file but i do not have the file that infects other files. The virus I do not already know just pass thru :S but i was asked to detect a virus that i do already know and that does something you can see (like a message).

6
  • 1
    Why not a coded string? Why does it have to be an actual virus?
    – schroeder
    Nov 4, 2015 at 22:21
  • Have you seen the EICAR file?
    – schroeder
    Nov 4, 2015 at 22:21
  • 1
    Do you want a virus or a harmless file? How are you "removing a virus from a file"? That may make the file useless (not that it was too useful being infected, though).
    – Ángel
    Nov 4, 2015 at 22:21
  • Viruses aren't bombs about to go off at a moments notice. As long as you don't execute the code, nothing bad will happen. Nov 4, 2015 at 22:27
  • What are you doing with a virus you didn't know before? Let him pass thru?
    – ott--
    Nov 4, 2015 at 22:47

2 Answers 2

3

Metasploit has ways to embed executables in other files. You can use it to launch calc.exe, for your example.

The full detailed manual is here, but it might take a while for you to get the hang of it.

0

A harmless executable that copies (at least part of it) would be a zipper tool that creates an self-unzipping executable archive.

These tools are not so much en vogue today as the have been for obvious reasons.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .