5 AnswersNew Answer
File bomb in C++, corresponding to @MrCoder's Ruby code: https://code.sololearn.com/cGmaciug1dkk/?ref=app You can also check out @Luka's codes for more power of the Dark Side. :>
I've made a file bomb virus in Ruby, I'll do it even more dangerous on Python.
You can create a virus by pretty much any object-oriented programming language if you know what you're doing. if u want something disturbing pack a file that plays a loud noise or smth for quite a while, do it only for fun and messing around with friends tho. Happy coding! xD
It depends of what you want of your virus to do. Ruby and Python are interpreted languages, which "destructive" abilities are hardly restricted by its runtime environment. For really menacing viruses you should use some compiled language with ability to low level memory manipulation, which code also can be compiled in small standalone executable files. It is languages like C or C++ or even Assembly if you know what you do. Also you should have decent programming skill and understanding of computer systems at all to be able to code such scripts in proper way. If you are beginner its better to start learning from less complicated tasks.