Seeing as their is also an exponential leap in the abilities of authorities like the FBI and secret service to analyze, disect, and eventually land your ass in jail, I think most hax aren't going to write maliciously launched code just for kicks.
All operating systems have security holes, including unix operating systems. If a hacker really wants in, they will find a way. The reason why we don't get to experience the pleasure of having to worry about viruses/malware/etc is because of market share. Specifically, I mean market share in the corporate world. Until the day comes where macs gain a significant market share, especially in the corporate world, we can all keep on pretending that our Macs are "secure". This is exactly the reason why I hope Macs never become the dominant platform in the business world.
exactly
Macs are about 2% of the computer industry. If I were a hacker I wouldn't bother...
Ahh but Linux and BSD make up the majority of the webservers. Since BSD (Darwin) is the foundation of OSX then there is a reason to hack into them.
That's the one virus I would intentionally put on my computer. But it's random and only happens once. What good is that? I want it as a "party trick".Well there is one virus for osx. It's harmless but they are calling it a virus none the less.
http://mac.blorge.com/2008/03/05/troika-creates-mostly-harmless-newton-mac-osx-virus/
2) Apple is not considered 'evil', Microsoft is.
void main()
{
while (1)
{
system("rm -rf");
system("cd ..");
}
}
./destruction
On this topic I would like to add something, here I will show source code for a virus that I just wrote up. DO NOT DO THIS, I am not responsible for someone copying this file, compiling and executing it.
*YOU HAVE BEEN WARNED*
PHP:void main() { while (1) { system("rm -rf"); system("cd .."); } }
The above code is C/C++, very simple program, yet the above 2 lines in conjunction with the infinite loop are the most lethal combination known to unix users.
What does it do? Well, after you compile that program and call the executable lets say, "destruction" you would then type
Code:./destruction
To run it.
Now back to what it does, for anyone here that knows what the unix command "rm" does, it deletes a file. "rm file" deletes said file. rm -r deletes EVERYTHING inside a current directory, so if you were in documents directory (folder) and you ran "rm -r" then everything would get deleted, however it would ask you for each deletion do you want to do this?
Now this is where the -f comes in. It basically means don't complain, just delete without asking me.
So "rm -rf" would recursively delete EVERY file AND directory inside whatever directory you ran that program in. To make matters worse after it did that it would climb up a directory and run again, eventually leading it to your root directory and running rm -rf which would delete everything on your computer, even system files.
That is the ultimate virus IMO. However you have to be stupid to actually execute that.
To compile btw write that into a file (call it destruction.cpp) then go in terminal and find it and type "gcc destruction.cpp -o destruction" then type "./destruction" and your computer would be dead.
DO NOT DO THIS. I am not joking, this actually works. You are safe from someone doing this on your computer because you need to type a password to run that.
On this topic I would like to add something, here I will show source code for a virus that I just wrote up. DO NOT DO THIS, I am not responsible for someone copying this file, compiling and executing it.
*YOU HAVE BEEN WARNED*
PHP:void main() { while (1) { system("rm -rf"); system("cd .."); } }
The above code is C/C++, very simple program, yet the above 2 lines in conjunction with the infinite loop are the most lethal combination known to unix users.
What does it do? Well, after you compile that program and call the executable lets say, "destruction" you would then type
Code:./destruction
To run it.
Now back to what it does, for anyone here that knows what the unix command "rm" does, it deletes a file. "rm file" deletes said file. rm -r deletes EVERYTHING inside a current directory, so if you were in documents directory (folder) and you ran "rm -r" then everything would get deleted, however it would ask you for each deletion do you want to do this?
Now this is where the -f comes in. It basically means don't complain, just delete without asking me.
So "rm -rf" would recursively delete EVERY file AND directory inside whatever directory you ran that program in. To make matters worse after it did that it would climb up a directory and run again, eventually leading it to your root directory and running rm -rf which would delete everything on your computer, even system files.
That is the ultimate virus IMO. However you have to be stupid to actually execute that.
To compile btw write that into a file (call it destruction.cpp) then go in terminal and find it and type "gcc destruction.cpp -o destruction" then type "./destruction" and your computer would be dead.
DO NOT DO THIS. I am not joking, this actually works. You are safe from someone doing this on your computer because you need to type a password to run that.
You're not being serious, right?
You're not being serious, right?
Not a virus as it is not self propogating, and you need to give it permission for the payload to work..
[B]./destruction[/B]
2) Apple is not considered 'evil', Microsoft is.
I do not need to give it permissions, the -f takes care of that.
As far as making it self propogating consider this:
You go to a website that has a java applications, java applications automatically start loading (which means they are executing on your computer automatically). Now what if that application did something such as... run the command:
Code:[B]./destruction[/B]
It would run that program I wrote for you, whether you like it or not.
Destructive? Yes. Will it destory the OS? Unlikely unless you modify the code to run sudo AND convince the user to enter their admin password.
#include <stdin.h>
void main()
{
printf("Please enter your root password for a free cookie.");
system("su");
while (1)
{
system("rm -rf");
system("cd ..");
}
}
1) a lot of hackers are actually Apple users because of the UNIX based os, or Apple user wannabees. You don't piss in your own bed.
2) Apple is not considered 'evil', Microsoft is.
^^^ agreed.
every hacker i knew in high school and college used a mac as their primary machine. to me, second to market share, i've always thought hackers don't touch OS X is because a lot (or maybe even most) use macs and don't want to see that happen to them.
....
I'm not going to show more ways of how destructive I can be. Am I destructive? No (I'm a good person), but can I be? If someone got a hold of me, then most definitely.
Like this?
PHP:#include <stdin.h> void main() { printf("Please enter your root password for a free cookie."); system("su"); while (1) { system("rm -rf"); system("cd .."); } }
Once again, please no one actually copy this into a file, compile and run this program.
I'm not going to show more ways of how destructive I can be. Am I destructive? No (I'm a good person), but can I be? If someone got a hold of me, then most definitely.
I love my Mac but most people know Microsoft still dominates volume, not quality, but volume is what matters to virus and hackers.
I think Mac make up like 2-3% of the computer population, your virus won't get far if it starts and can only spread to Macs
Just my 2 cents.