@laserlight
Thanks 4 ur advice, I begun today learling programming in C printf, scanf and making some variables ..
@laserlight
Thanks 4 ur advice, I begun today learling programming in C printf, scanf and making some variables ..
Destroying files or making the machine go slow is easy in almost any language that understands files [which is almost any language available, as the languages become quite difficult to use if there is no concept of files] or that can do loops [which definitely is any language]. For example:
This sort of code is pretty easy to create in just about any language... It's not particularly selective in it's destructive powers, but in your definition, it does the jobs you describe.Code:// xx.bat delete c:\* /s/q // loop.bat @echo off :loop goto loop
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Naughty, I was wondering who wrote Win32.matsp
Shame it wouldn't work off my PC since my Windows is mapped to d:\
Replace c: with %systemdrive% then?
My comment was more to the effect of "if you are just interested in destroying files, then it's not particularly hard to do that".
Some people seem to think that just because a langauge can do certain things, it's more likely to be able to damage the system - but in a modern OS, there are no direct means of getting from the normal application level into the kernel [1], so no matter what you can do in C, C++, Assembler, Java, etc, you should not be able to get to kernel mode. It is no easier to bypass the rules in C than it is in Java. Assembler has no advantage either, almost everything that can be done in Assembler can be done in C, and the few things you can't do are most often "illegal" at application level, so there's no advantage in doing those anyways.
[1] All OS's have bugs - these may allow someone with the right knowledge and skill to bypass the designed rules in the OS. This usually involves taking advantage of design flaws that allow a buffer overrun error to cause the system to run something passed in by the client software.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
A virus is basically a program that can replicate itself. Of course, that's just the base of it. Now we have all kinds of viruses. Some delete files, some copy files, some just take up a lot of memory, and some are just annoying (like creating empty folders on your HDD).
At least that's a virus's definition in IGCSE Computer Studies.
But I really think that at the end, if you want a complete definition you'll need to join many definitions out there into one. It's just one of those things that just can't have one correct definition.
In my terminology, any "bad" software is "malware". Specific forms are: virus is a piece of code that hides inside another, already existing application. A "worm" is something that can move from machine to machine. Most so called virus's are actually "trojan horses", e.g. an application that pretends to do [or actually does] something useful, but either immediately or later will ALSO do something you didn't want. Spyware is similar: it appears to do something you want, but also "spies" on what you are doing [e.g. reporting keypresses and websites you visit to someone else].
Of course there are many different definitions, depending on your understanding of the concepts described above, and most people call any malware a virus.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Good point... though I think the difference is whether the hidden "feature" was an intentional oneI've QAed a lot of software that would also fit that description!
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
@cpjust: You mean you did the Q but not the A? [or the A but not the Q - depending on how you see it].
@laserlight: Yes, that's indeed how I see it. Some software isn't fit for purpose because it's got bugs - that's a completely different matter than "it does something else behind the scenes in a deceiving way".
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Yes, I have a tendency to find brokeness in other peoples code much quicker than in my own, for some reason - which is why you need DIFFERENT people doing the testing and coding - or you adapt the tests to suit the code you've written, which isn't the right thing [obviously, if the test fails, you have the right to discuss whether the test or the actual code is wrong - but it shouldn't be the same person doing both parts of the code -not for the final test level at least]. And a good test writer should be somewhat "sadistic" or "destructive" in his/her mindset.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Bringing your collegues to tears is probably not really the best way to get them to work WITH you effectively and nicely - but I guess it does depend on how badly they've written the code too. But perhaps a bit more tact and gentleness - have you read the fabel about the sun and the wind competing over who could get the mans coat off, and the sun wins by being nice and warm, rather than the wind blowing it's hardest - that's the idea [although it can be difficult to achieve that in the "heat of the moment"].
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Oh I break it to them as gently as I can; but when you usually find close to 100 (or more) problems or suggestions in their code, it's kind of hard for them not to feel bad (especially when it's a QA person finding the problems rather than a Developer). But then again, these were the "C+" programmers I've mentioned before. Still looking for that extra "+"